Examples of DefaultComboBoxModel


Examples of javax.swing.DefaultComboBoxModel

            monthBox = ComponentFactory.getComboBox();
            monthBox.addActionListener(this);
            monthBox.setActionCommand("monthChanged");
        }
       
        monthBox.setModel(new DefaultComboBoxModel(months));
        monthBox.setSelectedIndex(c.get(Calendar.MONTH));
    }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

            yearBox = ComponentFactory.getComboBox();
            yearBox.addActionListener(this);
            yearBox.setActionCommand("yearChanged");
        }
       
        yearBox.setModel(new DefaultComboBoxModel(years));
        yearBox.setSelectedItem(years[50]);
    }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

    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.DefaultComboBoxModel

        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

Examples of javax.swing.DefaultComboBoxModel

      final Object[] data = {
          getResources().getString("pdfsavedialog.option.noprinting"), //$NON-NLS-1$
          getResources().getString("pdfsavedialog.option.degradedprinting"), //$NON-NLS-1$
          getResources().getString("pdfsavedialog.option.fullprinting") //$NON-NLS-1$
      };
      printingModel = new DefaultComboBoxModel(data);
    }
    return printingModel;
  }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

   
    private void build() {
        setLayout(Layout.getGBL());
       
        // create the comboboxes
        comboFields = ComponentFactory.getComboBox(new DefaultComboBoxModel());
        comboOperators = ComponentFactory.getComboBox(new DefaultComboBoxModel());
        comboModules = ComponentFactory.getComboBox(new DefaultComboBoxModel());
        comboAndOr = ComponentFactory.getComboBox(new DefaultComboBoxModel());
       
        comboAndOr.addItem(DcResources.getText("lblAnd"));
        comboAndOr.setEnabled(false);
       
        comboModules.addItem(module);
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

    btnFitWidth = new javax.swing.JToggleButton();
    pnlSep03 = new javax.swing.JPanel();
    btnZoomIn = new javax.swing.JButton();
    btnZoomOut = new javax.swing.JButton();
    cmbZoom = new javax.swing.JComboBox();
    DefaultComboBoxModel model = new DefaultComboBoxModel();
    for(int i = 0; i < zooms.length; i++)
    {
      model.addElement("" + zooms[i] + "%");
    }
    cmbZoom.setModel(model);
   
    setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 0, 2));
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

        if(_editor!=null){
            _editor.removeListener(this);
        }
        _editor= (EnumEdit<T>) editor;
        if(_editor!=null){
            setModel(new DefaultComboBoxModel(_editor.getEntries()));
            _editor.addListener(this);
            setSelectedItem(_editor.getEntry());
        }
    }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

    super();
    if (useSharedModel && s_sharedDataModel == null)
    {
      throw new IllegalStateException("Shared instance has not been initialized");
    }
    _dataModel = useSharedModel ? s_sharedDataModel : new DefaultComboBoxModel();
  }
View Full Code Here

Examples of javax.swing.DefaultComboBoxModel

    {
      s_log.error("Shared data model has already been initialized");
    }
    else
    {
      s_sharedDataModel = new DefaultComboBoxModel(data);
    }
  }
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.