Package java.awt

Examples of java.awt.Checkbox$State


    Panel p = new Panel(new GridLayout(hand.size(), 1));
    checks = new Checkbox[hand.size()];
    okButton = new Button("O.K.");
    okButton.setEnabled(false);
    for (int i = 0; i < hand.size(); i++) {
      p.add(checks[i] = new Checkbox(hand.get(i).toString(), false));
      checks[i].addItemListener(this);
    }
    checked = 0;
    add(p, "Center");
    add(okButton, "South");
View Full Code Here


  public ChooseModelToSaveDialog(Window owner, List<IModel> availableModels) {
    super(owner);
    availModels = availableModels;

    for (IModel mw : availModels) {
      Checkbox newBox = new Checkbox(mw.getName(), null, true);
      modelCheckMap.put(mw, newBox);
      modelSaveMap.put(mw, true);
      selectionPanel.add(newBox);
    }
View Full Code Here

   * Tests which models have been checked by the user, writes results to
   * {@link ChooseModelToSaveDialog#results}.
   */
  private void retrieveResults() {
    for (IModel key : modelCheckMap.keySet()) {
      Checkbox tempBox = modelCheckMap.get(key);
      modelSaveMap.put(key, tempBox.getState());
    }

    Iterator<IModel> mwi = modelSaveMap.keySet().iterator();
    int i = 0;
    while (mwi.hasNext()) {
View Full Code Here

        tDestAlter = new TextField();

        tDestAlter.addActionListener(this);

        cTransfer = new Checkbox("Transfer to destination table", true);

        cTransfer.addItemListener(this);

        cDrop = new Checkbox("Drop destination table (ignore error)", true);

        cDrop.addItemListener(this);

        cCreate = new Checkbox("Create destination table", true);

        cCreate.addItemListener(this);

        cDropIndex = new Checkbox("Drop destination index (ignore error)",
                                  true);

        cDropIndex.addItemListener(this);

        cIdxForced = new Checkbox("force Idx_ prefix for indexes names",
                                  false);

        cIdxForced.addItemListener(this);

        cCreateIndex = new Checkbox("Create destination index", true);

        cCreateIndex.addItemListener(this);

        cDelete = new Checkbox("Delete rows in destination table", true);

        cDelete.addItemListener(this);

        cInsert = new Checkbox("Insert into destination", true);

        cInsert.addItemListener(this);

        cFKForced = new Checkbox("force FK_ prefix for foreign key names",
                                 false);

        cFKForced.addItemListener(this);

        cAlter = new Checkbox("Alter destination table", true);

        cAlter.addItemListener(this);
        p.add(createLabel("Source table"));
        p.add(tSourceTable);
        p.add(cTransfer);
View Full Code Here

        gAllWords = new CheckboxGroup();

        Checkbox[] checkboxes = new Checkbox[2];

        checkboxes[0] = new Checkbox("all", gAllWords, true);
        c.gridx       = 1;

        pEntry.add(checkboxes[0], c);

        checkboxes[1] = new Checkbox("any ", gAllWords, false);
        c.gridx       = 2;

        pEntry.add(checkboxes[1], c);

        // ignore case
        c.gridy = 3;
        c.gridx = 0;

        pEntry.add(new Label("Ignore case"), c);

        gIgnoreCase = new CheckboxGroup();

        Checkbox[] checkboxes1 = new Checkbox[2];

        checkboxes1[0] = new Checkbox("yes", gIgnoreCase, true);
        c.gridx        = 1;

        pEntry.add(checkboxes1[0], c);

        checkboxes1[1] = new Checkbox("no", gIgnoreCase, false);
        c.gridx        = 2;

        pEntry.add(checkboxes1[1], c);

        // Match column exactly
        c.gridy = 4;
        c.gridx = 0;

        pEntry.add(new Label("Match whole col"), c);

        gNoMatchWhole = new CheckboxGroup();

        Checkbox[] checkboxes2 = new Checkbox[2];

        checkboxes2[0] = new Checkbox("no", gNoMatchWhole, true);
        c.gridx        = 1;

        pEntry.add(checkboxes2[0], c);

        checkboxes2[1] = new Checkbox("yes ", gNoMatchWhole, false);
        c.gridx        = 2;

        pEntry.add(checkboxes2[1], c);
        pForm.add("search", pEntry);
        pFormButs.add("Center", pForm);
View Full Code Here

  buildConstraints(_constraints, 0, 1, 2, 1, 1, 1);
  _constraints.fill = GridBagConstraints.HORIZONTAL;
  _interval_gbl.setConstraints(m_interval_tf, _constraints);
  _interval_panel.add(m_interval_tf);

  m_disable_box = new Checkbox("Disable automatic refresh");
  m_disable_box.setState(m_model.m_refresh_disabled);
  buildConstraints(_constraints, 0, 2, 2, 1, 1, 1);
  _constraints.fill = GridBagConstraints.HORIZONTAL;
  _interval_gbl.setConstraints(m_disable_box, _constraints);
  _interval_panel.add(m_disable_box);
View Full Code Here

    public static void main(final String[] args) throws Exception {
        final Frame frame = new Frame();
        final Panel panel = new Panel();
        panel.setLayout(new RadialLayout());

        panel.add(new Checkbox("One"));
        panel.add(new Checkbox("Two"));
        panel.add(new Checkbox("Three"));
        panel.add(new Checkbox("Four"));
        panel.add(new Checkbox("Five"));
        panel.add(new Checkbox("One"));
        panel.add(new Checkbox("Two"));
        panel.add(new Checkbox("Three"));
        panel.add(new Checkbox("Four"));
        panel.add(new Checkbox("Five"));

        frame.add(panel);
        frame.setSize(300, 500);
        frame.setVisible(true);
    }
View Full Code Here

          runSuite();
        }
      }
    );
    boolean useLoader= useReloadingTestSuiteLoader();
    fUseLoadingRunner= new Checkbox("Reload classes every run", useLoader);
    if (inVAJava())
      fUseLoadingRunner.setVisible(false);

    //---- second section
    fProgressIndicator= new ProgressBar();
View Full Code Here

TOP

Related Classes of java.awt.Checkbox$State

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.