Examples of JComboBox


Examples of javax.swing.JComboBox

    txDataFilename.setColumns(40);

    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);
View Full Code Here

Examples of javax.swing.JComboBox

  public LocaleSelectionReportController()
  {
    final UpdateAction updateAction = new UpdateAction();
    localesModel = createLocalesModel();

    final JComboBox cbx = new JComboBox(localesModel);
    setLayout(new GridBagLayout());

    GridBagConstraints gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
View Full Code Here

Examples of javax.swing.JComboBox

      }

      final Object theSource = e.getSource();
      if (theSource instanceof JComboBox)
      {
        final JComboBox theComboBox = (JComboBox) theSource;
        final KeyedComboBoxModel theModel = (KeyedComboBoxModel) theComboBox.getModel();
        updateContext.setParameterValue(key, theModel.getSelectedKey());
      }
    }
View Full Code Here

Examples of javax.swing.JComboBox

    }
  }

  protected JComboBox createZoomSelector(final PreviewPane pane)
  {
    final JComboBox zoomSelect = new JComboBox(pane.getZoomModel());
    zoomSelect.addActionListener(new ZoomSelectAction(pane.getZoomModel(), pane));
    zoomSelect.setAlignmentX(Component.RIGHT_ALIGNMENT);
    return zoomSelect;
  }
View Full Code Here

Examples of javax.swing.JComboBox

    }
  };

  public ComboBox(Widget parent, String name) throws GUIException {
    super(parent, name);
    comboBox = new JComboBox();
    comboBox.setPreferredSize(new Dimension(MAX_WIDTH, DEFAULT_HEIGHT));
    comboBox.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        try {
          MapDataModel model = getDataModel();
View Full Code Here

Examples of javax.swing.JComboBox

    */
    private Component createLogLevelPanel() {
        JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

        logLevelComboBox = new JComboBox(getLogLevelWrappers());

        panel.add(Utility.addLeftJustifiedComponent(new JLabel("Log Level")));
        panel.add(Utility.addLeftJustifiedComponent(logLevelComboBox));

        //initialize our value
View Full Code Here

Examples of javax.swing.JComboBox

                c.add(Calendar.YEAR, 1);
           
            parent.updateScreen(c);
        } else {
            if (e.getActionCommand().equals("monthChanged")) {
                JComboBox cb = (JComboBox)src;
                c.set(Calendar.MONTH, cb.getSelectedIndex());
            }
   
            if (e.getActionCommand().equals("yearChanged")) {
                JComboBox cb = (JComboBox)src;
                c.set(Calendar.YEAR, years[cb.getSelectedIndex()].intValue());
                setYearComboBox(c);
            }
            parent.setMonthPanel(c);
        }
    }
View Full Code Here

Examples of javax.swing.JComboBox

    txDataFilename.setColumns(40);

    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);
View Full Code Here

Examples of javax.swing.JComboBox

    confirmAction = new ConfirmAction();
    final RevalidateListener revalidateListener = new RevalidateListener();

    previewPane = new PageFormatPreviewPane();

    pageFormatBox = new JComboBox(new DefaultComboBoxModel(PageFormatFactory.getInstance().getPageFormats()));
    pageHeightField = new JTextField();
    pageHeightField.setColumns(5);
    pageHeightField.getDocument().addDocumentListener(revalidateListener);
    pageWidthField = new JTextField();
    pageWidthField.setColumns(5);
View Full Code Here

Examples of javax.swing.JComboBox

    messages = new Messages(Locale.getDefault(), PlainTextExportGUIModule.BUNDLE_NAME,
        ObjectUtilities.getClassLoader(PlainTextExportGUIModule.class));
    epson9Printers = loadEpson9Printers();
    epson24Printers = loadEpson24Printers();

    cbEpson9PrinterType = new JComboBox(epson9Printers);
    cbEpson9PrinterType.addActionListener(new SelectEpsonModelAction());

    cbEpson24PrinterType = new JComboBox(epson24Printers);
    cbEpson24PrinterType.addActionListener(new SelectEpsonModelAction());

    statusBar = new JStatusBar();

    final Float[] lpiModel = {
        PlainTextExportDialog.LPI_6,
        PlainTextExportDialog.LPI_10
    };

    final Float[] cpiModel = {
        PlainTextExportDialog.CPI_10,
        PlainTextExportDialog.CPI_12,
        PlainTextExportDialog.CPI_15,
        PlainTextExportDialog.CPI_17,
        PlainTextExportDialog.CPI_20
    };

    cbLinesPerInch = new JComboBox(new DefaultComboBoxModel(lpiModel));
    cbCharsPerInch = new JComboBox(new DefaultComboBoxModel(cpiModel));

    final String plainPrinterName = getResources().getString(
        PlainTextExportDialog.PRINTER_NAMES[PlainTextExportDialog.TYPE_PLAIN_OUTPUT]);
    final String epson9PrinterName = getResources().getString(
        PlainTextExportDialog.PRINTER_NAMES[PlainTextExportDialog.TYPE_EPSON9_OUTPUT]);
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.