JList in Java Swing

Home  »  Java  »  Advance Java »  »  Swing »  JList

A JList presents the user with a group of items, displayed in one or more columns, to choose from. Lists can have many items, so they are often put in scroll panes.

Example:

The following example displayed simple JList.



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

"Output of JList.class"


Download Complete Program

  -  




Java Swing-1


JFrame JPanel JApplet
JButtons JLabels JTextFields
JPasswordField JTextAreas JCheckBoxes
JRadioButtons JList JComboBox




No comments:

Post a Comment