799 |
} |
} |
800 |
|
|
801 |
/** |
/** |
802 |
|
* Returns the minimum size for text components. This returns the size |
803 |
|
* of the component's insets. |
804 |
|
* |
805 |
|
* @return the minimum size for text components |
806 |
|
*/ |
807 |
|
public Dimension getMinimumSize(JComponent c) |
808 |
|
{ |
809 |
|
Insets i = c.getInsets(); |
810 |
|
return new Dimension(i.left + i.right, i.top + i.bottom); |
811 |
|
} |
812 |
|
|
813 |
|
/** |
814 |
* Paints the text component. |
* Paints the text component. |
815 |
* |
* |
816 |
* @param g the <code>Graphics</code> context to paint to |
* @param g the <code>Graphics</code> context to paint to |