git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit '9e7330d793887fe9ee378ca1413141d7761e76ca'
[fanfix.git]
/
src
/
jexer
/
backend
/
SwingBackend.java
diff --git
a/src/jexer/backend/SwingBackend.java
b/src/jexer/backend/SwingBackend.java
index d6e07422d467f0cbe867ed5f755b38ac3357e4ad..8a342b604f8d438988df943c741b91f0d54b2f06 100644
(file)
--- a/
src/jexer/backend/SwingBackend.java
+++ b/
src/jexer/backend/SwingBackend.java
@@
-3,7
+3,7
@@
*
* The MIT License (MIT)
*
*
* The MIT License (MIT)
*
- * Copyright (C) 201
7
Kevin Lamonte
+ * Copyright (C) 201
9
Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@
-35,7
+35,7
@@
import javax.swing.JComponent;
* This class uses standard Swing calls to handle screen, keyboard, and mouse
* I/O.
*/
* 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 -----------------------------------------------------------
// ------------------------------------------------------------------------
// Constructors -----------------------------------------------------------
@@
-155,4
+155,13
@@
public final class SwingBackend extends GenericBackend {
return ((SwingTerminal) terminal).getBlinkMillis();
}
return ((SwingTerminal) terminal).getBlinkMillis();
}
+ /**
+ * Getter for the underlying Swing component.
+ *
+ * @return the SwingComponent
+ */
+ public SwingComponent getSwingComponent() {
+ return ((SwingTerminal) terminal).getSwingComponent();
+ }
+
}
}