jdk/src/share/classes/javax/swing/border/CompoundBorder.java
changeset 21982 fd6e5fe509df
parent 20458 f2423fb3fd19
child 23010 6dadb192ad81
equal deleted inserted replaced
21981:48b31d370bc9 21982:fd6e5fe509df
    34  * into a single border by nesting an inside Border object within
    34  * into a single border by nesting an inside Border object within
    35  * the insets of an outside Border object.
    35  * the insets of an outside Border object.
    36  *
    36  *
    37  * For example, this class may be used to add blank margin space
    37  * For example, this class may be used to add blank margin space
    38  * to a component with an existing decorative border:
    38  * to a component with an existing decorative border:
    39  * <p>
    39  *
    40  * <pre>
    40  * <pre>
    41  *    Border border = comp.getBorder();
    41  *    Border border = comp.getBorder();
    42  *    Border margin = new EmptyBorder(10,10,10,10);
    42  *    Border margin = new EmptyBorder(10,10,10,10);
    43  *    comp.setBorder(new CompoundBorder(border, margin));
    43  *    comp.setBorder(new CompoundBorder(border, margin));
    44  * </pre>
    44  * </pre>