public EditEmitterDialog(javax.swing.JFrame parent) { super(parent, true); setContentPane(new PaintedPanel()); initComponents(); okBtn.addActionListener( new ActionListener() { @Override public void actionPerformed(ActionEvent e) { okClicked = true; dispose(); } }); cancelBtn.addActionListener( new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dispose(); } }); nameField.requestFocusInWindow(); Style.registerCssClasses(getContentPane(), ".rootPanel", ".configPanel"); Style.apply(getContentPane(), new Style(Res.getUrl("css/style.css"))); }
public CSSApplication(Object object, String cssLine) { try { Style.unregisterTargetClassName(object); Style.registerTargetClassName(object, cssLine); Style.apply(object, new Style(getClass().getResource("styles.css"))); } catch (StyleException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } }
public CSSApplication(Object object) { try { Style.apply(object, new Style(getClass().getResource("styles.css"))); } catch (StyleException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } }
static { Color c = (Color) UIManager.get("Label.disabledForeground"); disabledFg = c != null ? c : Color.GRAY; Style.registerProcessor(CompactCheckBox.class, new CompactCheckBoxProcessor()); }