Uses of Class
javax.swing.JLabel
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces for dealing with
javax.swing.JTree
.-
Uses of JLabel in javax.swing
Modifier and TypeClassDescriptionclass
Renders an item in a list.static class
A subclass of DefaultListCellRenderer that implements UIResource. -
Uses of JLabel in javax.swing.plaf.basic
Modifier and TypeClassDescriptionclass
ComboBox rendererstatic class
A subclass of BasicComboBoxRenderer that implements UIResource.Modifier and TypeMethodDescriptionprotected void
BasicLabelUI.installComponents(JLabel c)
Registers components.protected void
BasicLabelUI.installDefaults(JLabel c)
Installs default properties.protected void
BasicLabelUI.installKeyboardActions(JLabel l)
Registers keyboard actions.protected void
BasicLabelUI.installListeners(JLabel c)
Registers listeners.protected String
BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
Forwards the call to SwingUtilities.layoutCompoundLabel().protected void
BasicLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
Paint clippedText at textX, textY with background.lighter() and then shifted down and to the right by one pixel with background.darker().protected void
BasicLabelUI.paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)
Paint clippedText at textX, textY with the labels foreground color.protected void
BasicLabelUI.uninstallComponents(JLabel c)
Unregisters components.protected void
BasicLabelUI.uninstallDefaults(JLabel c)
Uninstalls default properties.protected void
BasicLabelUI.uninstallKeyboardActions(JLabel c)
Unregisters keyboard actions.protected void
BasicLabelUI.uninstallListeners(JLabel c)
Unregisters listeners. -
Uses of JLabel in javax.swing.plaf.metal
Modifier and TypeClassDescriptionprotected class
Deprecated.As of JDK version 9.class
Render different type sizes and styles.Modifier and TypeMethodDescriptionprotected void
MetalLabelUI.paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color. -
Uses of JLabel in javax.swing.table
Modifier and TypeClassDescriptionclass
The standard class for rendering (displaying) individual cells in aJTable
.static class
A subclass ofDefaultTableCellRenderer
that implementsUIResource
. -
Uses of JLabel in javax.swing.tree