Package javax.swing

Examples of javax.swing.JCheckBox$AccessibleJCheckBox


    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


  /**
   * Initializes the Swing components of this dialog.
   */
  private void initialize()
  {
    cbxWriteStateColumns = new JCheckBox
        (getResources().getString("csvexportdialog.write-state-columns")); //$NON-NLS-1$
    cbxColumnNamesAsFirstRow = new JCheckBox
        (getResources().getString("cvsexportdialog.export.columnnames")); //$NON-NLS-1$

    getFormValidator().registerButton(cbxColumnNamesAsFirstRow);
    cbxEnableReportHeader =
        new JCheckBox(getResources().getString("csvexportdialog.enable-report-header")); //$NON-NLS-1$
    cbxEnableReportFooter =
        new JCheckBox(getResources().getString("csvexportdialog.enable-report-footer")); //$NON-NLS-1$
    cbxEnableItemband =
        new JCheckBox(getResources().getString("csvexportdialog.enable-itemband")); //$NON-NLS-1$
    cbxEnableGroupHeader =
        new JCheckBox(getResources().getString("csvexportdialog.enable-group-header")); //$NON-NLS-1$
    cbxEnableGroupFooter =
        new JCheckBox(getResources().getString("csvexportdialog.enable-group-footer")); //$NON-NLS-1$

    getFormValidator().registerButton(cbxEnableGroupFooter);
    getFormValidator().registerButton(cbxEnableGroupHeader);
    getFormValidator().registerButton(cbxEnableItemband);
    getFormValidator().registerButton(cbxEnableReportFooter);
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().registerComboBox(cbEncoding);
View Full Code Here

    txSeparatorOther = new JTextField();
    txSeparatorOther.setDocument(new LengthLimitingDocument(1));
    txSeparatorOther.setColumns(5);
    getFormValidator().registerTextField(txSeparatorOther);

    cbxStrictLayout = new JCheckBox(getResources().getString("csvexportdialog.strict-layout")); //$NON-NLS-1$
    getFormValidator().registerButton(cbxStrictLayout);

    txFilename = new JTextField();
    txFilename.setColumns(30);
    encodingModel = EncodingComboBoxModel.createDefaultModel(Locale.getDefault());
View Full Code Here

    txUserPassword = new JPasswordField();
    txConfUserPassword = new JPasswordField();
    txOwnerPassword = new JPasswordField();
    txConfOwnerPassword = new JPasswordField();

    cxAllowCopy = new JCheckBox(getResources().getString("pdfsavedialog.allowCopy")); //$NON-NLS-1$
    cbAllowPrinting = new JComboBox(getPrintingComboBoxModel());
    cxAllowScreenReaders =
        new JCheckBox(getResources().getString(
            "pdfsavedialog.allowScreenreader")); //$NON-NLS-1$

    cxAllowAssembly = new JCheckBox(getResources().getString(
        "pdfsavedialog.allowAssembly")); //$NON-NLS-1$
    cxAllowModifyContents =
        new JCheckBox(getResources().getString(
            "pdfsavedialog.allowModifyContents")); //$NON-NLS-1$
    cxAllowModifyAnnotations =
        new JCheckBox(getResources().getString(
            "pdfsavedialog.allowModifyAnnotations")); //$NON-NLS-1$
    cxAllowFillIn = new JCheckBox(getResources().getString(
        "pdfsavedialog.allowFillIn")); //$NON-NLS-1$


    txFilename = new JTextField();
    txFilename.setColumns(40);
    statusBar = new JStatusBar();

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

    cbEncoding = new JComboBox(encodingModel);
    cxEmbedded = new JCheckBox(getResources().getString("pdfsavedialog.embedfonts"));

    getFormValidator().registerTextField(txFilename);
    getFormValidator().registerTextField(txConfOwnerPassword);
    getFormValidator().registerTextField(txConfUserPassword);
    getFormValidator().registerTextField(txUserPassword);
View Full Code Here

  }

  private JComponent createDataArea()
  {
    txDataArea = new JTextArea();
    cbxColumnNamesAsFirstRow = new JCheckBox("First Row contains Column-Names");

    final JLabel lbDataArea = new JLabel("CSV-Data");
    final JLabel lbLoadData = new JLabel("Load Data from File");
    final ActionButton btLoadData = new ActionButton(new LoadCSVDataAction());
View Full Code Here

     */
    public void run()
    {
      tableModel.addComponent(new JButton("A button"));
      tableModel.addComponent(new JLabel("A Label"));
      tableModel.addComponent(new JCheckBox("A CheckBox"));
      tableModel.addComponent(new JFileChooser());
      tableModel.addComponent(new JColorChooser());
    }
View Full Code Here

        componentMap = null;
    }   

    public void invertSelection() {
        for (DcField field : componentMap.keySet()) {
            JCheckBox checkBox = componentMap.get(field);
            checkBox.setSelected(!checkBox.isSelected());
        }
    }
View Full Code Here

    }   

    public Collection<DcField> getSelectedFields() {
        Collection<DcField> fields = new ArrayList<DcField>();
        for (DcField field : componentMap.keySet()) {
            JCheckBox checkBox = componentMap.get(field);
            if (checkBox.isSelected())
                fields.add(field);
        }
        return fields;
    }
View Full Code Here

        return fields;
    }

    public void setSelectedFields(int[] fields) {
        for (DcField field : componentMap.keySet()) {
            JCheckBox checkBox = componentMap.get(field);
            if (fields.length == 0) {
                checkBox.setSelected(true);
            } else {
                for (int j = 0; j < fields.length; j++) {
                    if (field.getIndex() == fields[j])
                        checkBox.setSelected(true);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of javax.swing.JCheckBox$AccessibleJCheckBox

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.