JComponents Flashcards
All Swing components that start with J descend from the JComponent class except…
…JFrame, JDialog, JApplet
setToolTipText
Hover over component –> specified string is displayed in a small window that appears near the component
setBorder
Allows for setting the border displayed around its edges
Paint the inside of a component
Override the paintComponent method
ComponentUI
For JComponents, performs all the drawing, event handling, size determination, etc so JComponent is relative to the current look and feel
Set using UIManager.setLookandFeel method
putClientProperty and getClientProperty methods
Associating one or more properties with any JComponent
JComponent Support for Layout
setMinimumSize, setMaximumSize, setAlignmentX, and setAlignmentY
JComponent Support for Accessability
Provides API and basic functionality to help assistive technologies like screen readers getting information from Swing components
JComponent Support for Drag and Drop
Provides API to set a component’s transfer handler, which is the basis for Swing’s drag and drop support
Double Buffering
Smooths on-screen painting
Key Bindings
Makes components reach when the user presses a key on the keyboard
Swing text components
JTextField JFormattedTextField JPasswordField JTextArea JEditorPane JTextPane