Package edu.mit.blocks.codeblockutil

Examples of edu.mit.blocks.codeblockutil.CBorderlessButton


                this.factorySwicther.add(new CLabel(SUBSETS_NAME));
            }
            this.viewSubsetsDrawers();
        } else if (usingSys) {
            this.factorySwicther.removeAll();
            final CBorderlessButton factoryButton = new CBorderlessButton(STATIC_NAME);
            final CBorderlessButton myblocksButton = new CBorderlessButton(DYNAMIC_NAME);
            ActionListener listener = new ActionListener() {

                public void actionPerformed(ActionEvent e) {
                    if (factoryButton.equals(e.getSource())) {
                        FactoryManager.this.viewStaticDrawers();
                    } else if (myblocksButton.equals(e.getSource())) {
                        FactoryManager.this.viewDynamicDrawers();
                    }
                }
            };
            factoryButton.addActionListener(listener);
            myblocksButton.addActionListener(listener);
            this.factorySwicther.add(factoryButton, BorderLayout.WEST);
            this.factorySwicther.add(myblocksButton, BorderLayout.EAST);
            this.viewStaticDrawers();
        }
        this.factorySwicther.revalidate();
View Full Code Here

TOP

Related Classes of edu.mit.blocks.codeblockutil.CBorderlessButton

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.