net.shredzone.ifish.gui
Class MyTitledBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
net.shredzone.ifish.gui.MyTitledBorder
- All Implemented Interfaces:
- Serializable, Border
public class MyTitledBorder
- extends TitledBorder
Purpose of this class is to have all TitledBorder tied together in one
single class so it can easily be configured.
- Version:
- $Id: MyTitledBorder.java 291 2009-04-28 21:29:27Z shred $
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.border.TitledBorder |
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING |
| Methods inherited from class javax.swing.border.TitledBorder |
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getBorderInsets, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyTitledBorder
public MyTitledBorder(String title)
- My own TitledBorder.
- Parameters:
title - Titel
getFont
protected Font getFont(Component c)
- Override getFont() to correct the font size.
- Overrides:
getFont in class TitledBorder
- Parameters:
c - Component to be painted
- Returns:
- Font for this component
Copyright © 2007-2011
shredzone.org. All Rights Reserved.