Based on SynthBorder by Scott Violet.
313314315316317318319320
int style = root.getWindowDecorationStyle(); if (style == JRootPane.NONE) { LookAndFeel.uninstallBorder(root); } else { root.setBorder(new SeaGlassBorder(this, new Insets(0, 1, 1, 1))); } }
292293294295296297298299300301302
if (!context.isSubregion()) { JComponent c = context.getComponent(); Border border = c.getBorder(); if (border == null || border instanceof UIResource) { c.setBorder(new SeaGlassBorder(ui, getInsets(context, null))); } } installDefaults(context); }
102103104105106107108109110111112