protected static boolean isStrokePainted(AbstractButton b) { Boolean t = (Boolean) b.getClientProperty(STROKE_PAINTED); if (t != null) return t; return b.isBorderPainted(); }