Examples of AdvancedLabel


Examples of megamek.client.ui.AWT.widget.AdvancedLabel

        stampFormat = new TextField(15);
        panSetting.add(stampFormat);
        tempPanel.add(panSetting);

        // scrolling options
        tempPanel.add(new AdvancedLabel(Messages
                .getString("CommonSettingsDialog.mapScrollText"))); //$NON-NLS-1$

        rightDragScroll = new Checkbox(Messages
                .getString("CommonSettingsDialog.rightDragScroll")); //$NON-NLS-1$
        tempPanel.add(rightDragScroll);
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

            }
        });

        // Create the help dialog.
        this.setLayout(new BorderLayout());
        lblHelp = new AdvancedLabel(Messages
                .getString("CommonHelpDialog.noHelp.Message")); //$NON-NLS-1$
        ScrollPane scroll = new ScrollPane(
                java.awt.ScrollPane.SCROLLBARS_ALWAYS);
        scroll.add(lblHelp);
        this.add(scroll, BorderLayout.CENTER);
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

     */
    public MineLayingDialog(Frame parent, Entity entity) {
        super(parent, Messages.getString("MineLayingDialog.title"), true); //$NON-NLS-1$
        this.entity = entity;

        labMessage = new AdvancedLabel(
                Messages
                        .getString(
                                "MineLayingDialog.selectMineToLay", new Object[] { entity.getDisplayName() })); //$NON-NLS-1$

        // Walk through the entity's misc equipment, looking for mines.
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

                .append(new Date(megamek.MegaMek.TIMESTAMP).toString()).append(
                        Messages.getString("CommonAboutDialog.javaVendor")) //$NON-NLS-1$
                .append(System.getProperty("java.vendor")) //$NON-NLS-1$
                .append(Messages.getString("CommonAboutDialog.javaVersion")) //$NON-NLS-1$
                .append(System.getProperty("java.version")); //$NON-NLS-1$
        AdvancedLabel lblVersion = new AdvancedLabel(buff.toString());

        AdvancedLabel lblCopyright = new AdvancedLabel(Messages
                .getString("CommonAboutDialog.copyright")); //$NON-NLS-1$
        AdvancedLabel lblAbout = new AdvancedLabel(Messages
                .getString("CommonAboutDialog.about")); //$NON-NLS-1$

        // Add a "Close" button.
        Button butClose = new Button(Messages
                .getString("CommonAboutDialog.Close")); //$NON-NLS-1$
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

     */
    public TriggerAPPodDialog(Frame parent, Entity entity) {
        super(parent, Messages.getString("TriggerAPPodDialog.title"), true); //$NON-NLS-1$
        this.entityId = entity.getId();

        labMessage = new AdvancedLabel(
                Messages
                        .getString(
                                "TriggerAPPodDialog.selectPodsToTrigger", new Object[] { entity.getDisplayName() })); //$NON-NLS-1$

        // AP Pod checkbox panel.
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

        panel.add(new Label(), layout);
        layout.weighty = 0;
        layout.gridy++;

        // Add a label for the "keep old camo" button.
        panel.add(new AdvancedLabel(Messages
                .getString("CamoChoiceDialog.keep_old_camo")), layout); //$NON-NLS-1$
        layout.gridy++;

        // Create the "keep old camo" button.
        keep = new ImageButton();
        keep.setLabel(Messages.getString("CamoChoiceDialog.no_camo")); //$NON-NLS-1$
        keep.setPreferredSize(84, 72);
        keep.addActionListener(new ActionListener() {
            // Pressing this button closes without saving.
            public void actionPerformed(ActionEvent event) {
                close();
            }
        });
        keep.addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent event) {
                // Pressing enter on this button closes without saving.
                if (KeyEvent.VK_ENTER == event.getKeyCode()) {
                    close();
                }
            }
        });
        panel.add(keep, layout);
        layout.gridy++;

        // Add a label for the "select new camo" button.
        panel.add(new AdvancedLabel(Messages
                .getString("CamoChoiceDialog.select_new_camo")), layout); //$NON-NLS-1$
        layout.gridy++;

        // Create the "select new camo" button.
        select = new ImageButton();
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

        addInputs();
        finishSetup(p);
    }

    private void addQuestion(String question) {
        AdvancedLabel questionLabel = new AdvancedLabel(question);
        c.gridheight = 2;
        c.insets = new Insets(5, 5, 5, 5);
        gridbag.setConstraints(questionLabel, c);
        add(questionLabel);
    }
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

    public TriggerBPodDialog(ClientGUI clientgui, Entity entity, String attackType) {
        super(clientgui.frame, Messages.getString("TriggerBPodDialog.title"), true); //$NON-NLS-1$
        entityId = entity.getId();
        this.clientgui = clientgui;

        labMessage = new AdvancedLabel(
                Messages.getString(
                        "TriggerBPodDialog.selectPodsToTrigger",
                        new Object[] { entity.getDisplayName() })); //$NON-NLS-1$

        // Anti-BA Pod checkbox panel.
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

        }

        setLayout(new BorderLayout());
        Panel choicePanel = new Panel();
        choicePanel.setLayout(new GridLayout(pa.length + 1, 0));
        choicePanel.add(new AdvancedLabel(Messages
                .getString("MegaMek.ScenarioDialog.pNameType"))); //$NON-NLS-1$
        choicePanel.add(new Label(Messages
                .getString("MegaMek.ScenarioDialog.Camo"))); //$NON-NLS-1$
        for (int x = 0; x < pa.length; x++) {
            Panel typePanel = new Panel();
View Full Code Here

Examples of megamek.client.ui.AWT.widget.AdvancedLabel

    private AdvancedLabel labMessage;

    public AlertDialog(Frame parent, String title, String message, boolean modal) {
        super(parent, title, modal);

        labMessage = new AdvancedLabel(message);
        butOkay.addActionListener(this);

        // layout
        GridBagLayout gridbag = new GridBagLayout();
        GridBagConstraints c = new GridBagConstraints();
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.