Package java.awt

Examples of java.awt.Choice$State


            int column = 0;
            int row = 0;
            for(int type = 0; type < BombType.B_NUM; type++) {

                b_labels[type] = new Label();
                b_choices[type] = new Choice();

                for (int x = 0; x <= Math.max(Math.round(availBombPoints / BombType.getBombCost(type)),
                        bombChoices[type]); x++) {
                    b_choices[type].add(Integer.toString(x));
                }
View Full Code Here


            // adding Ammo choice + label

            wAmmo = new TransparentLabel(
                    Messages.getString("MechDisplay.Ammo"), fm, clr, TransparentLabel.LEFT); //$NON-NLS-1$
            m_chAmmo = new Choice();
            m_chAmmo.addItemListener(this);
            m_chAmmo.addKeyListener(client.menuBar);

            wBayWeapon = new TransparentLabel(
                    Messages.getString("MechDisplay.Weapon"), fm, clr, TransparentLabel.LEFT); //$NON-NLS-1$
            m_chBayWeapon = new Choice();
            m_chBayWeapon.addItemListener(this);
            m_chBayWeapon.addKeyListener(client.menuBar);

            c.insets = new Insets(1, 9, 1, 1);
            c.gridwidth = 1;
View Full Code Here

            final Player curPlayer = m_players[x];
            curPlayer.setColorIndex(x);

            m_labels[x] = new Label(pa[x].getName(), Label.LEFT);

            m_typeChoices[x] = new Choice();
            m_typeChoices[x].add(Messages
                    .getString("MegaMek.ScenarioDialog.me")); //$NON-NLS-1$
            m_typeChoices[x].add(Messages
                    .getString("MegaMek.ScenarioDialog.otherh")); //$NON-NLS-1$
            m_typeChoices[x].add(Messages
View Full Code Here

        private Choice m_choice;
        private Mounted m_mounted;

        public MineChoicePanel(Mounted m) {
            m_mounted = m;
            m_choice = new Choice();
            m_choice.add(Messages.getString("CustomMechDialog.Conventional")); //$NON-NLS-1$
            m_choice.add(Messages.getString("CustomMechDialog.Vibrabomb")); //$NON-NLS-1$
            m_choice.add(Messages.getString("CustomMechDialog.Active")); //$NON-NLS-1$
            m_choice.add(Messages.getString("CustomMechDialog.Inferno")); //$NON-NLS-1$
            // m_choice.add("Messages.getString("CustomMechDialog.Command-
View Full Code Here

                if (!editable)
                    checkbox.setEnabled(false);

                break;
            case IOption.CHOICE:
                choice = new Choice();

                choice.addMouseListener(this);
                label = new Label(option.getDisplayableName());
                label.addMouseListener(this);
                add(label, BorderLayout.WEST);
View Full Code Here

        editPanel.add(new Label("-----"));
        editPanel.add(this.farbeB1);
        editPanel.add(this.farbeB2);
        editPanel.add(this.farbeB3);

        this.grAuswahl = new Choice();
        choiPan.add(this.grAuswahl);
        this.grAuswahl.addItemListener(this);

        b = new Button("11");
        b.addActionListener(this);
View Full Code Here

        this.ktAlter = new TextField("", 35);
        this.kantenEinstell.add(this.beding);
        this.kantenEinstell.add(this.folgeZust);
        this.kantenEinstell.add(this.ktAlter);

        this.grAuswahl = new Choice();
        choiPan.add(this.grAuswahl);
        this.grAuswahl.addItemListener(this);

        b = new Button(Messages.getString("SteuerFenster.GraphLoeschen"));
        b.addActionListener(this);
View Full Code Here

        this.farbeA2.setText("((x/y*180) mod 30 + 3)*2");
        // this.farbeA2.setText("(((x - x mod 1250)*5 / y + 1) * 30)*(x /
        // y)+10");
        editPanel.add(new Label("-----"));

        this.grAuswahl = new Choice();
        choiPan.add(this.grAuswahl);
        this.grAuswahl.addItemListener(this);

        b = new JButton("11");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("12");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("13");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("14");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("15");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("16");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("17");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("18");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("19");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("20");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("21");
        b.addActionListener(this);
        buttonPanel3.add(b);

        p.add(buttonPanel);
        p.add(listPanel);
        p.add(labelPanel);
        p.add(editPanel);
        p.add(buttonPanel2);
        p.add(choiPan);
        p.add(buttonPanel3);
        p.add(buttonPanel4);

        Panel pp = new Panel(new GridLayout(2, 1));
        this.pfeilAnfang = new Choice();
        this.pfeilEnde = new Choice();
        this.pfeilAnfang.addItemListener(this);
        this.pfeilEnde.addItemListener(this);
        this.pfeilAnfFakt = new JTextField();
        this.pfeilEndFakt = new JTextField();
        pp.add(this.pfeilAnfang);
View Full Code Here

        this.ktAlter = new TextField("", 35);
        this.kantenEinstell.add(this.beding);
        this.kantenEinstell.add(this.folgeZust);
        this.kantenEinstell.add(this.ktAlter);

        this.grAuswahl = new Choice();
        choiPan.add(this.grAuswahl);
        this.grAuswahl.addItemListener(this);

        b = new Button(Messages.getString("SteuerFenster.GraphLoeschen"));
        b.addActionListener(this);
View Full Code Here

//        this.farbeA2.setText("((x/y*180) mod 30 + 3)*2");
        // this.farbeA2.setText("(((x - x mod 1250)*5 / y + 1) * 30)*(x /
        // y)+10");
        editPanel.add(new Label("-----"));

        this.grAuswahl = new Choice();
        choiPan.add(this.grAuswahl);
        this.grAuswahl.addItemListener(this);

        b = new JButton("11");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("12");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("13");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("14");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("15");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("16");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("17");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("18");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("19");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("20");
        b.addActionListener(this);
        buttonPanel3.add(b);
        b = new JButton("21");
        b.addActionListener(this);
        buttonPanel3.add(b);

        p.add(buttonPanel);
        p.add(listPanel);
        p.add(labelPanel);
        p.add(editPanel);
        p.add(buttonPanel2);
        p.add(choiPan);
        p.add(buttonPanel3);
        p.add(buttonPanel4);

        Panel pp = new Panel(new GridLayout(2, 1));
        this.pfeilAnfang = new Choice();
        this.pfeilEnde = new Choice();
        this.pfeilAnfang.addItemListener(this);
        this.pfeilEnde.addItemListener(this);
        this.pfeilAnfFakt = new JTextField();
        this.pfeilEndFakt = new JTextField();
        pp.add(this.pfeilAnfang);
View Full Code Here

TOP

Related Classes of java.awt.Choice$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.