Title: Java jGrasp - JList Swing Component
Duration: 15:25 min
Description: In this video I start my discussion on Swing components, specifically we will be talking about JList. We will create a ListFrame and build a list and a label within it. The list will contain numbers that represent the font (from 6 to 18). The list will be added to the North portion of the frame and the label will be added to the center portion. When the user selects a font, the label will be redrawn using the font selected by the user. The list is displayed using a HORIZONTAL_WRAP orientation. All the fonts will be displayed (no scrolling is needed). We attach a ListSelectionListener to the list so we can handle the valueChanged event.
Methodology: Good coding standards and simplified design.
Technologies: Abstract Window Toolkit, Java Swing.
Key words: AWT, Swing, JFrame, JList, ListSelectionListener, EventQueue, Runnable.