jdk/src/share/classes/javax/swing/border/CompoundBorder.java
changeset 1286 2c43fda67ddf
parent 2 90ce3da70b43
child 1639 a97859015238
equal deleted inserted replaced
1285:d2d433263986 1286:2c43fda67ddf
    77         this.outsideBorder = outsideBorder;
    77         this.outsideBorder = outsideBorder;
    78         this.insideBorder = insideBorder;
    78         this.insideBorder = insideBorder;
    79     }
    79     }
    80 
    80 
    81     /**
    81     /**
    82      * Returns whether or not this compound border is opaque.
    82      * Returns whether or not the compound border is opaque.
    83      * Returns true if both the inside and outside borders are
    83      *
    84      * non-null and opaque; returns false otherwise.
    84      * @return {@code true} if the inside and outside borders
       
    85      *         are each either {@code null} or opaque;
       
    86      *         or {@code false} otherwise
    85      */
    87      */
       
    88     @Override
    86     public boolean isBorderOpaque() {
    89     public boolean isBorderOpaque() {
    87         return (outsideBorder == null || outsideBorder.isBorderOpaque()) &&
    90         return (outsideBorder == null || outsideBorder.isBorderOpaque()) &&
    88                (insideBorder == null || insideBorder.isBorderOpaque());
    91                (insideBorder == null || insideBorder.isBorderOpaque());
    89     }
    92     }
    90 
    93