This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: caption “Greetings”? JLabel myLabel = new JLabel(“Greetings”); o Layout Managers: What do they do? You should be able to distinguish GridLayout, BorderLayout, FlowLayout. GridLayout - Organizes components into a grid of rows and columns BorderLayout - Organizes components into five areas (North, South, East, West, and Center) FlowLayout - Organizes components from left to right, starting new rows as necessary-Chapter 7 o Define an array of type t int scores = new int; o Each array object has a public constant called length that stores the size of the array o It is referenced using the array name o scores.length o Note that length holds the number of elements, not the largest index o scores = 45;-Chapter 8 o...
View Full Document
- Spring '08
- Object-Oriented Programming, Subroutine, Layout manager, new JLabel, Organizes components