380 |
shadowOuter, shadowInner); |
shadowOuter, shadowInner); |
381 |
} |
} |
382 |
} |
} |
383 |
|
|
384 |
|
|
385 |
|
/** |
386 |
|
* A {@link javax.swing.border.CompoundBorder} that also implements the |
387 |
|
* {@link UIResource} marker interface. This is useful for |
388 |
|
* implementing pluggable look-and-feels: When switching the current |
389 |
|
* LookAndFeel, only those borders are replaced that are marked as |
390 |
|
* {@link UIResource}. For this reason, a look-and-feel should |
391 |
|
* always install borders that implement <code>UIResource</code>, |
392 |
|
* such as the borders provided by this class. |
393 |
|
* |
394 |
|
* @author Brian Jones (cbj@gnu.org) |
395 |
|
* @author Sascha Brawer (brawer@dandelis.ch) |
396 |
|
*/ |
397 |
|
public static class CompoundBorderUIResource |
398 |
|
extends CompoundBorder |
399 |
|
implements UIResource, Serializable |
400 |
|
{ |
401 |
/** |
/** |
402 |
* @serial */ |
* Constructs a CompoundBorderUIResource with the specified inside |
403 |
public static class CompoundBorderUIResource |
* and outside borders. |
404 |
extends CompoundBorder |
* |
405 |
implements UIResource, Serializable |
* @param outsideBorder the outside border, which is painted to the |
406 |
|
* outside of both <code>insideBorder</code> and the enclosed |
407 |
|
* component. It is acceptable to pass <code>null</code>, in |
408 |
|
* which case no outside border is painted. |
409 |
|
* |
410 |
|
* @param insideBorder the inside border, which is painted to |
411 |
|
* between <code>outsideBorder</code> and the enclosed |
412 |
|
* component. It is acceptable to pass <code>null</code>, in |
413 |
|
* which case no inside border is painted. |
414 |
|
*/ |
415 |
|
public CompoundBorderUIResource(Border outsideBorder, |
416 |
|
Border insideBorder) |
417 |
{ |
{ |
418 |
public CompoundBorderUIResource(Border outsideBorder, |
super(outsideBorder, insideBorder); |
|
Border insideBorder) |
|
|
{ |
|
|
super (outsideBorder, insideBorder); |
|
|
} |
|
419 |
} |
} |
420 |
|
} |
421 |
|
|
422 |
|
|
423 |
/** |
/** |
424 |
* @serial |
* @serial |