JScrollPane in Java Swing

Home  »  Java  »  Advance Java  »  Java Swing II  »  JScrollPane


JScrollPanes are used in GUI development to restrict a widget to a certain size on the screen, then provide a way of scrolling up and down, left and right if the widget becomes any bigger than the 'Viewport' size. This is used primarily in JTextArea, JTable and JList where the data displayed by the widget is changed dynamically and can really affect the size and dimensions of the widget.



C:\>jdk1.4\bin>javac JScrollPaneDemo.java
C:\>jdk1.4\bin>java JScrollPaneDemo



"Output of JScrollPaneDemo.class"


Download Complete Program

  -  



Java Swing-II


JOptionPane Class Input Dialog Boxes JSliders
JProgressBars JTables JTabbedPane
JMenu JPopupMenu JToolBar
JFileChooser JScrollBar JScrollPane
JRootPane JTextPane JTree
JSplitPane JDesktopPane JEditorPane




1 comment: