コード例 #1
0
  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")));
  }
コード例 #2
0
ファイル: CSSApplication.java プロジェクト: semoss/semoss
 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();
   }
 }
コード例 #3
0
ファイル: CSSApplication.java プロジェクト: semoss/semoss
 public CSSApplication(Object object) {
   try {
     Style.apply(object, new Style(getClass().getResource("styles.css")));
   } catch (StyleException e1) {
     // TODO Auto-generated catch block
     e1.printStackTrace();
   }
 }
コード例 #4
0
 static {
   Color c = (Color) UIManager.get("Label.disabledForeground");
   disabledFg = c != null ? c : Color.GRAY;
   Style.registerProcessor(CompactCheckBox.class, new CompactCheckBoxProcessor());
 }