public SynthStyle getStyle(JComponent c, Region id) { SynthStyle s = wrappedFactory.getStyle(c, id); if (id == Region.INTERNAL_FRAME) { s = new TranslucentSynthSytle(s); } return s; } }
UIManager.setLookAndFeel(new NimbusLookAndFeel()); final SynthStyleFactory styleFactory = SynthLookAndFeel.getStyleFactory(); SynthLookAndFeel.setStyleFactory(new SynthStyleFactory() { @Override public SynthStyle getStyle(JComponent c, Region id) { c.putClientProperty("JComponent.sizeVariant", "large"); return styleFactory.getStyle(c, id); } });
/** * Returns the style for this component from the style factory. * @return */ private SynthStyle getStyle() { return SynthLookAndFeel.getStyleFactory().getStyle(list, getRegion()); }
/** * Returns the style for this component from the style factory. * @return */ private SynthStyle getStyle() { return SynthLookAndFeel.getStyleFactory().getStyle(list, getRegion()); }
/** * Returns the style for this component from the style factory. * @return */ private SynthStyle getStyle() { return SynthLookAndFeel.getStyleFactory().getStyle(list, getRegion()); }
/** * Returns the style for this component from the style factory. * @return */ private SynthStyle getStyle() { return SynthLookAndFeel.getStyleFactory().getStyle(list, getRegion()); }
SynthStyle style = delegate.getStyle(c, id);
SynthStyle s = wrappedFactory.getStyle(c, id); if (id == Region.TREE_CELL) { s = new TranslucentSynthSytle(s);