#33 expose SwingComponent
[fanfix.git] / src / jexer / backend / SwingBackend.java
index d6e07422d467f0cbe867ed5f755b38ac3357e4ad..797caa821fbe9f14e1e8259fef86f1abc2368182 100644 (file)
@@ -35,7 +35,7 @@ import javax.swing.JComponent;
  * This class uses standard Swing calls to handle screen, keyboard, and mouse
  * I/O.
  */
-public final class SwingBackend extends GenericBackend {
+public class SwingBackend extends GenericBackend {
 
     // ------------------------------------------------------------------------
     // Constructors -----------------------------------------------------------
@@ -155,4 +155,13 @@ public final class SwingBackend extends GenericBackend {
         return ((SwingTerminal) terminal).getBlinkMillis();
     }
 
+    /**
+     * Getter for the underlying Swing component.
+     *
+     * @return the SwingComponent
+     */
+    public SwingComponent getSwingComponent() {
+        return ((SwingTerminal) terminal).getSwingComponent();
+    }
+
 }