if (getStyle().isHidden()) {
if (! getStyle().isVisible()) {
    public void paintBorder(RenderingContext c) {        if (getStyle().isHidden()) {            return;        }                Rectangle borderBounds = getPaintingBorderEdge(c);        if (getState() != Box.DONE) {            borderBounds.height += c.getCanvas().getHeight();        }            BorderPainter.paint(borderBounds, getBorderSides(),                getStyle().getCalculatedStyle(), c.getGraphics(), c, 0);    }