midtems Flashcards
(38 cards)
provides more flexible and powerful alternative to AWT, offering a rich set of components and better UI design
Swing
3 top level containers
JFrame
JDialog
JApplet
top level containers: main application window
JFrame
top level containers: popup window for user interaction
JDialog
top level containers: applet-based UI, legacy not commonly used
JApplet
basic components:
JLabel
JButton
JTextField
JTextArea
JRadioButton
JCheckBox
basic components: clickable button for user actions
JButton
basic components: displays static text or images
JLabel
basic components: single-line input text
JTextField
basic components: multi-line input field
JTextArea
basic components: selectable option with a checkbox
JCheckBox
basic components: selectable option , usually grouped for exclusive selection
JRadioButton
container components:
JPanel
JSplitPane
JTabbedPane
JScrollPane
container components: generic container for organizing components
JPanel
container components: divides window into resizable sections
JSplitPane
container components: organizes content into tabs
JTabbedPane
container components: adds scroll functionality to large components
JScrollPane
advance components:
JTable
JTree
JList
advance components: displays tabular data in a grid format
JTable
advance components: displays hierarchal data (like file explorer)
JTree
advance components: presents list of a selectable items
JList
common layout managers
BorderLayout
FlowLayout
GridLayout
GridBagLayout
BoxLayout
common layout managers: default for JFrame, positions components in 5 areas
BorderLayout
common layout managers: default for JPanel, arranges components in a single row
FlowLayout