Update lanterna, fix bugs, implement save...
[jvcard.git] / src / com / googlecode / lanterna / terminal / swing / SwingTerminal.java
index 459722275b77c334e8ff53bb4908dc33070ffb6b..3470b643c6c22a6ab6e028a69ac46ed3da378c3b 100644 (file)
@@ -145,16 +145,27 @@ public class SwingTerminal extends JComponent implements IOSafeTerminal {
                 scrollController);
     }
 
+    /**
+     * Overridden method from Swing's {@code JComponent} class that returns the preferred size of the terminal (in
+     * pixels)
+     * @return The terminal's preferred size in pixels
+     */
     @Override
     public synchronized Dimension getPreferredSize() {
         return terminalImplementation.getPreferredSize();
     }
 
+    /**
+     * Overridden method from Swing's {@code JComponent} class that is called by OS window system when the component
+     * needs to be redrawn
+     * @param {@code Graphics} object to use when drawing the component
+     */
     @Override
     protected synchronized void paintComponent(Graphics componentGraphics) {
         terminalImplementation.paintComponent(componentGraphics);
     }
 
+    ////////////////////////////////////////////////////////////////////////////////
     // Terminal methods below here, just forward to the implementation
 
     @Override