| javax.swing.JLabel com.blogofbug.swing.components.StrokedLabel
StrokedLabel | public class StrokedLabel extends JLabel (Code) | | A text label that draws it's text with a fill color and an outline drawn around the outside. Created for DockPanels but useful elsewhere as well
author: nigel |
StrokedLabel | public StrokedLabel()(Code) | | Creates a new instance of stroked label with no content
|
StrokedLabel | public StrokedLabel(String text)(Code) | | Creates a new instance of StrokedLabel
Parameters: text - The text to display in the label |
getPreferredSize | public Dimension getPreferredSize()(Code) | | Get the prefered size of the component
The prefered size |
paintComponent | public void paintComponent(Graphics g)(Code) | | Paints the component
Parameters: g - The graphics context |
|
|