Creating a JScrollPane Container : Scrollpane « Swing JFC « Java






Creating a JScrollPane Container

 
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class Main {
  public static void main(String[] argv) throws Exception {

    // Create a scrollable text area
    JTextArea textArea = new JTextArea();
    JScrollPane scrollableTextArea = new JScrollPane(textArea);
  }
}

   
  








Related examples in the same category

1.Create a scrollable list
2.Controlling the scrollbars in a JScrollPaneControlling the scrollbars in a JScrollPane
3.JViewport: Move and View JViewport: Move and View
4.ScrollPane Sample
5.Scrollpane rulerScrollpane ruler
6.Customized ScrollPaneCustomized ScrollPane
7.ScrollPane with imageScrollPane with image
8.Scrolling ProgrammaticallyScrolling Programmatically
9.A simple JScrollPane for a JList componentA simple JScrollPane for a JList component
10.JScrollPane with row and column headersJScrollPane with row and column headers
11.A simple JScrollPane demonstrationA simple JScrollPane demonstration
12.Watermark JScrollPane