Package ptolemy.actor.gt

Examples of ptolemy.actor.gt.GTIngredientElement


            _components = new JComponent[elements.length];
            _checkBoxes = new JCheckBox[elements.length];

            GridBagConstraints c = new GridBagConstraints();
            for (int i = 0; i < elements.length; i++) {
                GTIngredientElement element = elements[i];

                JPanel panel = new JPanel(new BorderLayout());
                panel.setBorder(new EmptyBorder(0, 3, 2, 3));
                panel.setOpaque(false);

                String columnName = element.getName();

                JPanel captionPanel = new JPanel(new FlowLayout(
                        FlowLayout.CENTER, 0, 0));
                captionPanel.setOpaque(false);
                captionPanel.setPreferredSize(new Dimension(0, 18));

                JCheckBox checkBox = null;
                boolean enabled;
                if (element.canDisable()) {
                    checkBox = new JCheckBox(columnName);
                    checkBox.setOpaque(false);
                    checkBox.setBorder(_EMPTY_BORDER);
                    checkBox.setHorizontalAlignment(SwingConstants.CENTER);
                    checkBox.setVerticalAlignment(SwingConstants.TOP);
View Full Code Here

TOP

Related Classes of ptolemy.actor.gt.GTIngredientElement

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.