< prev index next >

src/java.desktop/share/classes/javax/swing/border/CompoundBorder.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  31 
  32 /**
  33  * A composite Border class used to compose two Border objects
  34  * into a single border by nesting an inside Border object within
  35  * the insets of an outside Border object.
  36  *
  37  * For example, this class may be used to add blank margin space
  38  * to a component with an existing decorative border:
  39  *
  40  * <pre>
  41  *    Border border = comp.getBorder();
  42  *    Border margin = new EmptyBorder(10,10,10,10);
  43  *    comp.setBorder(new CompoundBorder(border, margin));
  44  * </pre>
  45  * <p>
  46  * <strong>Warning:</strong>
  47  * Serialized objects of this class will not be compatible with
  48  * future Swing releases. The current serialization support is
  49  * appropriate for short term storage or RMI between applications running
  50  * the same version of Swing.  As of 1.4, support for long term storage
  51  * of all JavaBeans&trade;
  52  * has been added to the <code>java.beans</code> package.
  53  * Please see {@link java.beans.XMLEncoder}.
  54  *
  55  * @author David Kloba
  56  */
  57 @SuppressWarnings("serial")
  58 public class CompoundBorder extends AbstractBorder {
  59     /**
  60      * The outside border.
  61      */
  62     protected Border outsideBorder;
  63     /**
  64      * The inside border.
  65      */
  66     protected Border insideBorder;
  67 
  68     /**
  69      * Creates a compound border with null outside and inside borders.
  70      */
  71     public CompoundBorder() {




  31 
  32 /**
  33  * A composite Border class used to compose two Border objects
  34  * into a single border by nesting an inside Border object within
  35  * the insets of an outside Border object.
  36  *
  37  * For example, this class may be used to add blank margin space
  38  * to a component with an existing decorative border:
  39  *
  40  * <pre>
  41  *    Border border = comp.getBorder();
  42  *    Border margin = new EmptyBorder(10,10,10,10);
  43  *    comp.setBorder(new CompoundBorder(border, margin));
  44  * </pre>
  45  * <p>
  46  * <strong>Warning:</strong>
  47  * Serialized objects of this class will not be compatible with
  48  * future Swing releases. The current serialization support is
  49  * appropriate for short term storage or RMI between applications running
  50  * the same version of Swing.  As of 1.4, support for long term storage
  51  * of all JavaBeans
  52  * has been added to the <code>java.beans</code> package.
  53  * Please see {@link java.beans.XMLEncoder}.
  54  *
  55  * @author David Kloba
  56  */
  57 @SuppressWarnings("serial")
  58 public class CompoundBorder extends AbstractBorder {
  59     /**
  60      * The outside border.
  61      */
  62     protected Border outsideBorder;
  63     /**
  64      * The inside border.
  65      */
  66     protected Border insideBorder;
  67 
  68     /**
  69      * Creates a compound border with null outside and inside borders.
  70      */
  71     public CompoundBorder() {


< prev index next >