174 |
System.out.println("UIManager.getDim"); |
System.out.println("UIManager.getDim"); |
175 |
return new Dimension(200,100); |
return new Dimension(200,100); |
176 |
} |
} |
177 |
static Font getFont(Object key) |
|
178 |
// Returns a drawing font from the defaults table. |
|
179 |
{ |
/** |
180 |
return (Font) getLookAndFeel().getDefaults().get(key); |
* Retrieves a font from the defaults table of the current |
181 |
} |
* LookAndFeel. |
182 |
|
* |
183 |
|
* @param key an Object that specifies the font. Typically, |
184 |
|
* this is a String such as |
185 |
|
* <code>"TitledBorder.font"</code>. |
186 |
|
*/ |
187 |
|
public static Font getFont(Object key) |
188 |
|
{ |
189 |
|
return (Font) getLookAndFeel().getDefaults().get(key); |
190 |
|
} |
191 |
|
|
192 |
static Icon getIcon(Object key) |
static Icon getIcon(Object key) |
193 |
// Returns an Icon from the defaults table. |
// Returns an Icon from the defaults table. |
194 |
{ |
{ |