466 |
|
|
467 |
return new Dimension((int) w, (int) h); |
return new Dimension((int) w, (int) h); |
468 |
} |
} |
469 |
|
|
470 |
|
/** |
471 |
|
* Returns the maximum size for text components that use this UI. |
472 |
|
* |
473 |
|
* This returns (Integer.MAX_VALUE, Integer.MAX_VALUE). |
474 |
|
* |
475 |
|
* @return the maximum size for text components that use this UI |
476 |
|
*/ |
477 |
|
public Dimension getMaximumSize(JComponent c) |
478 |
|
{ |
479 |
|
// Sun's implementation returns Integer.MAX_VALUE here, so do we. |
480 |
|
return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); |
481 |
|
} |
482 |
|
|
483 |
public final void paint(Graphics g, JComponent c) |
public final void paint(Graphics g, JComponent c) |
484 |
{ |
{ |
485 |
paintSafely(g); |
paintSafely(g); |