Package info.clearthought.layout

Examples of info.clearthought.layout.TableLayout


        fileMenu.add(exitMenuItem);
        menuBar.add(fileMenu);
        this.frame.setJMenuBar(menuBar);

        // Set a layout manager. I love TableLayout. It's powerful.
        this.frame.getContentPane().setLayout(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
    }
View Full Code Here


        protected JList scenariosList;
        protected JTextArea descriptionArea;
        protected JTextArea sourceArea;

        protected Component initComponent() {
            JPanel mainPanel = new JPanel(new TableLayout(new double[][]{{0, 250, 1, -1, 0}, {0, -1, 1, -1, 0}}));

            // Scenarios Panel
            JPanel scenariosPanel = new JPanel(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
            scenariosPanel.setBorder(new TitledBorder(getScenariosPanelBorderTitle()));

            scenariosList = new JList(new ListScenarioListModel());
            scenariosList.addListSelectionListener(new ContextPutListSelectionListener(viewContext, "Scenario", scenariosList));
            scenariosList.addMouseListener(new ContextListDoubleClickMouseListener(viewContext, "Execute"));
            scenariosPanel.add(new JScrollPane(scenariosList), "1,1,FULL,FULL");

            // Descriptions Panel
            JPanel descriptionsPanel = new JPanel(new TableLayout(new double[][]{{0, -1, 120, 0}, {0, -1, 1, 20, 0}}));
            descriptionsPanel.setBorder(new TitledBorder("Description"));
            descriptionsPanel.add(new JScrollPane(descriptionArea = new JTextArea()), "1,1,2,1");
            descriptionArea.setWrapStyleWord(true);
            descriptionsPanel.add(new JButton(new ViewContextAction("Execute", null, viewContext, "Execute", "Scenario")), "2,3,FULL,FULL");

            // Source Panel
            JPanel sourcePanel = new JPanel(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
            sourcePanel.setBorder(new TitledBorder("Source"));
            sourcePanel.add(new JScrollPane(sourceArea = new JTextArea()), "1,1,FULL,FULL");
            sourceArea.setWrapStyleWord(true);

View Full Code Here

                switch (anchor) {
                    case BOTTOM:
                    case TOP:
                        memoryUsage.setOrientation(SwingConstants.HORIZONTAL);
                        setLayout(new TableLayout(new double[][]{{120, 1, 17}, {-1}}));
                        add(memoryUsage, "0,0,FULL,FULL");
                        add(gc, "2,0,FULL,FULL");
                        break;
                    case LEFT:
                        memoryUsage.setOrientation(SwingConstants.VERTICAL);
                        setLayout(new TableLayout(new double[][]{{-1}, {120, 1, 17}}));
                        add(memoryUsage, "0,0,FULL,FULL");
                        add(gc, "0,2,FULL,FULL");
                        break;
                    case RIGHT:
                        memoryUsage.setOrientation(SwingConstants.VERTICAL);
                        setLayout(new TableLayout(new double[][]{{-1}, {17, 1, 120}}));
                        add(gc, "0,0,FULL,FULL");
                        add(memoryUsage, "0,2,FULL,FULL");
                        break;
                }
View Full Code Here

        fileMenu.add(exitMenuItem);
        menuBar.add(fileMenu);
        this.frame.setJMenuBar(menuBar);

        // Set a layout manager. I love TableLayout. It's powerful.
        this.frame.getContentPane().setLayout(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
    }
View Full Code Here

        for (int i = 0, index = 1; i < rows; i++) {
            layoutRows[index] = -2;
            layoutRows[index + 1] = 3;
            index += 2;
        }
        setLayout(new TableLayout(new double[][]{layoutCols, layoutRows}));
    }
View Full Code Here

        fileMenu.add(exitMenuItem);
        menuBar.add(fileMenu);
        this.frame.setJMenuBar(menuBar);

        // Set a layout manager. I love TableLayout. It's powerful.
        this.frame.getContentPane().setLayout(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
    }
View Full Code Here

        SwingUtil.repaint(panel);
    }

    protected void initComponents() {
        this.panel = new JPanel(new TableLayout(new double[][]{{-1}, {-1}}));
    }
View Full Code Here

        fileMenu.add(exitMenuItem);
        menuBar.add(fileMenu);
        this.frame.setJMenuBar(menuBar);

        // Set a layout manager. I love TableLayout. It's powerful.
        this.frame.getContentPane().setLayout(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
    }
View Full Code Here

*/
public class ToolBarContentPanel extends JPanel {
    protected JToolBar toolBar;

    public ToolBarContentPanel(Component content) {
        setLayout(new TableLayout(new double[][]{{-1},{25,3,-1}}));
        add(toolBar = new JToolBar(), "0,0,r,FULL");
        toolBar.setBorderPainted(false);
        toolBar.setFloatable(false);
        toolBar.setOpaque(false);
       
View Full Code Here

        fileMenu.add(exitMenuItem);
        menuBar.add(fileMenu);
        this.frame.setJMenuBar(menuBar);

        // Set a layout manager. I love TableLayout. It's powerful.
        this.frame.getContentPane().setLayout(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));
    }
View Full Code Here

TOP

Related Classes of info.clearthought.layout.TableLayout

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.