Package megamek.client.ui.AWT.widget

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


        imgButton.setImage(Toolkit.getDefaultToolkit().getImage(
                "data/images/camo/Wood1.jpg"));
        panel.add(imgButton);

        // Create a "no camo" button on the panel.
        color = new SizedButton("No Camo", new Dimension(84, 72));
        color.setBackground(Color.green);
        color.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                camo.setBackground(color.getBackground());
                camo.setLabel(color.getLabel());
View Full Code Here

TOP

Related Classes of megamek.client.ui.AWT.widget.SizedButton

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.