Package javax.swing

Examples of javax.swing.JComboBox$AccessibleJComboBox$AccessibleJComboBoxListSelectionListener


  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


      }

      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

    }
  }

  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

    }
  };

  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

    */
    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

                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

    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

    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

    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

    txFilename = new JTextField();
    txFilename.setColumns(30);
    encodingModel = EncodingComboBoxModel.createDefaultModel(Locale.getDefault());
    encodingModel.sort();
    cbEncoding = new JComboBox(encodingModel);

    final JPanel exportPane = createExportPane();

    final JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(getResources().getString("csvexportdialog.export-settings"), exportPane); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of javax.swing.JComboBox$AccessibleJComboBox$AccessibleJComboBoxListSelectionListener

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.