Examples of ColorWellButton


Examples of org.gjt.sp.jedit.gui.ColorWellButton

   * this method creates and arrange the components of
   * the option pane and initialize the option data displayed to the user.
   */
  protected void _init(){
    JLabel defaultColorLabel = new JLabel(jEdit.getProperty(PROP_DEFAULT_COLOR + ".text"));
    defaultColor = new ColorWellButton(jEdit.getColorProperty(PROP_DEFAULT_COLOR));
    addComponent(defaultColorLabel,defaultColor);

  }
View Full Code Here

Examples of org.gjt.sp.jedit.gui.ColorWellButton

    fgColorCheckBox = new JCheckBox(jEdit.getProperty("style-editor.fgColor"));
    fgColorCheckBox.setSelected(fg != null);
    fgColorCheckBox.addActionListener(this);
    panel.add(fgColorCheckBox);

    fgColor = new ColorWellButton(fg);
    fgColor.setEnabled(fg != null);
    panel.add(fgColor);

    Color bg = style.getBackgroundColor();
    bgColorCheckBox = new JCheckBox(jEdit.getProperty("style-editor.bgColor"));
    bgColorCheckBox.setSelected(bg != null);
    bgColorCheckBox.addActionListener(this);
    panel.add(bgColorCheckBox);

    bgColor = new ColorWellButton(bg);
    bgColor.setEnabled(bg != null);
    panel.add(bgColor);

    content.add(BorderLayout.CENTER,panel);
View Full Code Here

Examples of org.gjt.sp.jedit.gui.ColorWellButton

    statusVisible.addActionListener(new ActionHandler());
    addComponent(statusVisible);

    /* Foreground color */
    addComponent(jEdit.getProperty("options.status.foreground"),
      foregroundColor = new ColorWellButton(
      jEdit.getColorProperty("view.status.foreground")),
      GridBagConstraints.VERTICAL);

    /* Background color */
    addComponent(jEdit.getProperty("options.status.background"),
      backgroundColor = new ColorWellButton(
      jEdit.getColorProperty("view.status.background")),
      GridBagConstraints.VERTICAL);

    /* Caret status */
    showCaretStatus = new JCheckBox(jEdit.getProperty(
      "options.status.show-caret-status"));
    showCaretStatus.setSelected(jEdit.getBooleanProperty(
      "view.status.show-caret-status"));
    addComponent(showCaretStatus);

    /* Edit mode */
    showEditMode = new JCheckBox(jEdit.getProperty(
      "options.status.show-edit-mode"));
    showEditMode.setSelected(jEdit.getBooleanProperty(
      "view.status.show-edit-mode"));
    addComponent(showEditMode);

    /* Fold mode */
    showFoldMode = new JCheckBox(jEdit.getProperty(
      "options.status.show-fold-mode"));
    showFoldMode.setSelected(jEdit.getBooleanProperty(
      "view.status.show-fold-mode"));
    addComponent(showFoldMode);

    /* Encoding */
    showEncoding = new JCheckBox(jEdit.getProperty(
      "options.status.show-encoding"));
    showEncoding.setSelected(jEdit.getBooleanProperty(
      "view.status.show-encoding"));
    addComponent(showEncoding);

    /* Wrap */
    showWrap = new JCheckBox(jEdit.getProperty(
      "options.status.show-wrap"));
    showWrap.setSelected(jEdit.getBooleanProperty(
      "view.status.show-wrap"));
    addComponent(showWrap);

    /* Multi select */
    showMultiSelect = new JCheckBox(jEdit.getProperty(
      "options.status.show-multi-select"));
    showMultiSelect.setSelected(jEdit.getBooleanProperty(
      "view.status.show-multi-select"));
    addComponent(showMultiSelect);

    /* Rect select */
    showRectSelect = new JCheckBox(jEdit.getProperty(
      "options.status.show-rect-select"));
    showRectSelect.setSelected(jEdit.getBooleanProperty(
      "view.status.show-rect-select"));
    addComponent(showRectSelect);

    /* Overwrite */
    showOverwrite = new JCheckBox(jEdit.getProperty(
      "options.status.show-overwrite"));
    showOverwrite.setSelected(jEdit.getBooleanProperty(
      "view.status.show-overwrite"));
    addComponent(showOverwrite);

    /* Line seperator */
    showLineSeperator = new JCheckBox(jEdit.getProperty(
      "options.status.show-line-seperator"));
    showLineSeperator.setSelected(jEdit.getBooleanProperty(
      "view.status.show-line-seperator"));
    addComponent(showLineSeperator);

    /* Memory status */
    showMemory = new JCheckBox(jEdit.getProperty(
      "options.status.show-memory"));
    showMemory.setSelected(jEdit.getBooleanProperty(
      "view.status.show-memory"));
    showMemory.addActionListener(new ActionHandler());
    addComponent(showMemory);

    /* Memory foreground color */
    addComponent(jEdit.getProperty("options.status.memory.foreground"),
      memForegroundColor = new ColorWellButton(
      jEdit.getColorProperty("view.status.memory.foreground")),
      GridBagConstraints.VERTICAL);

    /* Memory background color */
    addComponent(jEdit.getProperty("options.status.memory.background"),
      memBackgroundColor = new ColorWellButton(
      jEdit.getColorProperty("view.status.memory.background")),
      GridBagConstraints.VERTICAL);

    /* Clock */
    showClock = new JCheckBox(jEdit.getProperty(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.