Package java.awt

Examples of java.awt.Checkbox


  }

  class CheckBoxPaymentListener implements ItemListener {

    public void itemStateChanged(ItemEvent e) {
      Checkbox cb = cbg.getSelectedCheckbox();
      if (cb.getLabel().toString().equalsIgnoreCase("No")) {

        txtDeemUsed.setText("0");
        txtDeemUsed.setEnabled(false);

      } else if (cb.getLabel().toString().equalsIgnoreCase("Yes")) {
        if (checkDeemPointValue() == true) {
          txtDeemUsed.setText("0");
          txtDeemUsed.setEnabled(true);
        } else {
          showErrMsgForDeemPoint();
View Full Code Here


  }

  class CheckBoxMemberListener implements ItemListener {

    public void itemStateChanged(ItemEvent e) {
      Checkbox cb = cbgMember.getSelectedCheckbox();
      if (cb.getLabel().toString().equalsIgnoreCase("Member")) {

        txtMemberId.setText("");
        txtMemberId.setEnabled(true);
        chkYes.setEnabled(true);
        lblDiscountValue.setText(discountManager.getMaxMemberDiscount()
View Full Code Here

    add(tServer);
    add(new Label("Port"));
    tPort = new TextField(String.valueOf(serverPort));
    add(tPort);
    add(new Label("Benutze Proxy"));
    tUseProxy = new Checkbox();
    tUseProxy.setState(useProxy);
    add(tUseProxy);
    add(new Label("Proxy-Server"));
    tProxy = new TextField(proxyServer);
    add(tProxy);
View Full Code Here

  private Panel createChkPaymentPanel() {
    Panel p = new Panel();
    p.setLayout(new FlowLayout());
    cbg = new CheckboxGroup();
    chkNo = new Checkbox("No", cbg, true);
    chkYes = new Checkbox("Yes", cbg, false);
    //    ChkCombination=new Checkbox("Combination of Cash and Deem",cbg,false);
    p.add(chkNo);
    p.add(chkYes);
    //    p.add(ChkCombination);
    chkNo.addItemListener(new CheckBoxPaymentListener());
View Full Code Here

  private Panel createMemberPanel() {
    Panel p = new Panel();
    p.setLayout(new FlowLayout());
    cbgMember = new CheckboxGroup();
    chkMember = new Checkbox("Member", cbgMember, true);
    chkNonMember = new Checkbox("Non-Member", cbgMember, false);
    p.add(chkMember);
    p.add(chkNonMember);
    chkMember.addItemListener(new CheckBoxMemberListener());
    chkNonMember.addItemListener(new CheckBoxMemberListener());
    return p;
View Full Code Here

    redOne.add( new Label("Red Boids:"));
    nbRougeText  = new TextField("2",4);
    redOne.add(nbRougeText);
    parametres.add(redOne);
        leMonde.setRatio(20,2);
    regleSeparation = new Checkbox("Separation :"  , true);
    regleSeparation.setName("regleSeparation");
    regleSeparation.addItemListener(this);
    parametres.add(regleSeparation);
    regleCohesion   = new Checkbox("Cohesion :"  , true);
    regleCohesion.setName("regleCohesion");
    regleCohesion.addItemListener(this);
    parametres.add(regleCohesion);
    regleAllignement= new Checkbox("Alignment :"  , true);
    regleAllignement.setName("regleAllignement");
    regleAllignement.addItemListener(this);
    parametres.add(regleAllignement);
    regleRepulsion  = new Checkbox("Repulsion :"  , true);
    regleRepulsion.setName("regleRepulsion");
    regleRepulsion.addItemListener(this);
    parametres.add(regleRepulsion);
    avecMurs        = new Checkbox("Walls :"  , true);
    avecMurs.setName("avecMurs");
    avecMurs.addItemListener(this);
    parametres.add(avecMurs);
    panel.add(parametres,BorderLayout.EAST);
    role   = new Checkbox("Role Changes :"  , false);
    role.setName("role");
    role.addItemListener(this);
    parametres.add(role);

    add(panel);
View Full Code Here

    } else if (c instanceof Label) {
      Label label = (Label) c;
      value = label.getText();
      setValue(name, value);
    } else if (c instanceof Checkbox) {
      Checkbox checkbox = (Checkbox) c;
      Object[] objs = checkbox.getSelectedObjects();
      if (objs != null) {
        int count = objs.length;
        for (int ci = 0; ci < count; ci++) {
          setValue(name, objs[ci].toString());
        }
View Full Code Here

    reverseColor = new JButton();
    reverseColor.setText("Ayna");
    reverseColor.setFont(new Font("Tahoma", Font.BOLD, 10));
    reverseColor.setBounds(9, 90, 70, 23);
    cPanelLabelDuzenle.add(reverseColor);
    drawCross = new Checkbox("Kampanya");
    drawCross.setFont(new Font("Tahoma", Font.BOLD, 10));
    drawCross.setBounds(90, 90, 70, 23);

    cPanelLabelDuzenle.add(drawCross);
View Full Code Here

    cTableBanka = new CTable((String) null, POSBilgileriSatis.class);
    cTableBanka.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    cTableBanka.setRowHeight(30);
    scrollPaneBanka.setViewportView(cTableBanka);

    cCheckBoxParcaliOdeme = new Checkbox("PARÇALI ÖDEME");
    cCheckBoxParcaliOdeme.setFont(new Font("Dialog", Font.BOLD, 12));
    cCheckBoxParcaliOdeme.setBounds(336, 72, 120, 23);
    getContentPane().add(cCheckBoxParcaliOdeme);

    jButtonOdemeKaydet = new JButton("İŞLEM TAMAMLA");
View Full Code Here

        this.target = target;
        setLayout(new FlowLayout());
        setBackground(Color.lightGray);
        target.setForeground(Color.red);
        CheckboxGroup group = new CheckboxGroup();
        Checkbox b;
        add(b = new Checkbox(null, group, false));
        b.addItemListener(this);
        b.setForeground(Color.red);
        add(b = new Checkbox(null, group, false));
        b.addItemListener(this);
        b.setForeground(Color.green);
        add(b = new Checkbox(null, group, false));
        b.addItemListener(this);
        b.setForeground(Color.blue);
        add(b = new Checkbox(null, group, false));
        b.addItemListener(this);
        b.setForeground(Color.pink);
        add(b = new Checkbox(null, group, false));
        b.addItemListener(this);
        b.setForeground(Color.orange);
        add(b = new Checkbox(null, group, true));
        b.addItemListener(this);
        b.setForeground(Color.black);
        target.setForeground(b.getForeground());
        Choice shapes = new Choice();
        shapes.addItemListener(this);
        shapes.addItem("Lines");
        shapes.addItem("Points");
        shapes.setBackground(Color.lightGray);
View Full Code Here

TOP

Related Classes of java.awt.Checkbox

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.