Getting Started with JList and JComboBox

The following tutorial illustrates getting started with two major swing components, the JList and JComboBox. The examples below provide you a basic understanding of what they are.

JComboBox lets the user choose a single item from multiple items. It only displays single item to the user. You can see it in many sites, where they ask you to choose your country.
JList is another light-weight component similar to a JComboBox but with two major differences. The first is that JList shows multiple items (rows) to the user and also it gives an option to let the user select multiple items.

Posted by at on

Tags: Swing Components,