Package javax.swing

Examples of javax.swing.JCheckBox


            filtre();
        } else if ("TYPE".equals(Action)) {
            filtreType = getVal(e);
            filtre();
        } else if ("ARCS".equals(Action)) {
            JCheckBox cb = (JCheckBox) e.getSource();
            ArcVisible = cb.isSelected();
            if (arcs != null)
                arcs.setVisible(ArcVisible);
            repaint();
        } else if ("LABS".equals(Action)) {
            JCheckBox cb = (JCheckBox) e.getSource();
            LabVisible = cb.isSelected();
            if (labs != null)
                labs.setVisible(LabVisible);
            repaint();
        } else if ("TX7".equals(Action)) {
            JCheckBox cb = (JCheckBox) e.getSource();
            Tx7Visible = cb.isSelected();
            if (tx7 != null)
                tx7.setVisible(Tx7Visible);
            repaint();
        }
    }
View Full Code Here


            public void actionPerformed(ActionEvent e) {
                exportFilter();
            }
        });

        filterOutTasksWithNoDescriptionCheckBox = new JCheckBox(new AbstractAction("Hide Tasks With No Description") {
            public void actionPerformed(ActionEvent e) {
                filterOutTasksWithNoDescription();
            }
        });
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                configureFilter();
            }
        });

        showDescriptionCheckBox = new JCheckBox("Description", true);
        showDescriptionCheckBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                resetShowDescription();
            }
        });
View Full Code Here

    private Component createOptionsPanel() {
        JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

        onlyShowOutputOnErrorCheckBox = new JCheckBox("Only Show Output When Errors Occur");

        onlyShowOutputOnErrorCheckBox.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
             updateShowOutputOnErrorsSetting();
             settingsNode.setValueOfChildAsBoolean(SHOW_OUTPUT_ON_ERROR, onlyShowOutputOnErrorCheckBox.isSelected());
View Full Code Here

       outputUILord.setOnlyShowOutputOnErrors(value);
   }

    private Component createCustomExecutorPanel() {
        useCustomGradleExecutorCheckBox = new JCheckBox("Use Custom Gradle Executor");

        customGradleExecutorField = new JTextField();
        customGradleExecutorField.setEditable(false);

        browseForCustomGradleExecutorButton = new JButton(new AbstractAction("Browse...") {
View Full Code Here

    checkBoxInfo.addProperty("text", "istring", "");
  };

  public CheckBox(Widget parent, String name) throws GUIException {
    super(parent, name);
    checkBox = new JCheckBox();
    checkBox.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        try {
          MapDataModel model = getDataModel();
          if (model != null && key != null) {
View Full Code Here

    encodingModel = EncodingComboBoxModel.createDefaultModel(Locale.getDefault());
    encodingModel.sort();

    cbEncoding = new JComboBox(encodingModel);
    cbxStrictLayout = new JCheckBox(getResources().getString("htmlexportdialog.strict-layout")); //$NON-NLS-1$
    cbxCopyExternalReferences = new JCheckBox(getResources().getString(
        "htmlexportdialog.copy-external-references")); //$NON-NLS-1$

    getFormValidator().registerButton(cbxStrictLayout);
    getFormValidator().registerTextField(txFilename);
    getFormValidator().registerTextField(txDataFilename);
View Full Code Here

     final JLabel lblFileName = new JLabel(getResources().getString(
         "rtf-exportdialog.filename")); //$NON-NLS-1$
     final JButton btnSelect = new ActionButton(getActionSelectFile());

     txFilename = new JTextField();
     cbStrictLayout = new JCheckBox(getResources().getString(
         "rtf-exportdialog.strict-layout")); //$NON-NLS-1$

     getFormValidator().registerButton(cbStrictLayout);
     getFormValidator().registerTextField(txFilename);
View Full Code Here

    pageHeightField.getDocument().addDocumentListener(revalidateListener);
    pageWidthField = new JTextField();
    pageWidthField.setColumns(5);
    pageWidthField.getDocument().addDocumentListener(revalidateListener);

    landscapeModeBox = new JCheckBox();
    landscapeModeBox.addActionListener(new OrientationChangeListener());
    portraitModeBox = new JCheckBox();
    portraitModeBox.addActionListener(new OrientationChangeListener());

    preDefinedPageSizeBox = new JCheckBox();
    preDefinedPageSizeBox.addChangeListener(new PageSizeCheckBoxSelectionAction());
    userDefinedPageSizeBox = new JCheckBox();
    userDefinedPageSizeBox.addChangeListener(new PageSizeCheckBoxSelectionAction());

    final ButtonGroup pageSizeGroup = new ButtonGroup();
    pageSizeGroup.add(preDefinedPageSizeBox);
    pageSizeGroup.add(userDefinedPageSizeBox);
View Full Code Here

    final JLabel lblFileName = new JLabel(getResources().getString(
        "excelexportdialog.filename")); //$NON-NLS-1$
    final JButton btnSelect = new ActionButton(getActionSelectFile());

    txFilename = new JTextField();
    cbStrictLayout = new JCheckBox(getResources().getString(
        "excelexportdialog.strict-layout")); //$NON-NLS-1$

    getFormValidator().registerButton(cbStrictLayout);
    getFormValidator().registerTextField(txFilename);
View Full Code Here

TOP

Related Classes of javax.swing.JCheckBox

Copyright © 2018 www.massapicom. 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.