Package info.clearthought.layout

Examples of info.clearthought.layout.TableLayout


        toolBoxItem = item;
        init();
    }

    private void init() {
        tableLayout = new TableLayout();
        tableLayout.insertColumn(0, TableLayout.FILL);
        tableLayout.insertRow(0, 20);
        tableLayout.insertRow(1, 0);
        btnItem = new JButton(toolBoxItem.getDescription());
        add(btnItem, "0,0");
View Full Code Here


    setTitle("Level Editor");

    this.refEditor = refEditorDisplay;

    Container pane = getContentPane();
    tableLayout = new TableLayout();
    tableLayout.insertColumn(0, TableLayout.FILL);
    pane.setLayout(tableLayout);

    panel = new JPanel();
    TableLayout layout = new TableLayout();
    layout.setColumn(new double[] {4, 0.2, 4, 0.2, 4, 0.2, 4, 0.2, 4, 0.2, 4});
    layout.setRow(new double[] {5, ICON_SIZE, 5, ICON_SIZE, 5, ICON_SIZE, 5, ICON_SIZE, 5, ICON_SIZE, 15, TableLayout.FILL, 5});
    panel.setLayout(layout);

    btnLevelNew = new JButton(ImageUtil.loadImageIcon("images/level_new.png", CreateLevelTool.class));
    btnLevelLoad = new JButton(ImageUtil.loadImageIcon("images/level_new.png", CreateLevelTool.class));
    btnLevelSave = new JButton(ImageUtil.loadImageIcon("images/level_new.png", CreateLevelTool.class));
View Full Code Here

        init();
    }
   
    private void init() {
        panel = new JPanel();
        TableLayout layout = new TableLayout();
        layout.setColumn(new double[] {4, 0.25, 4, 0.25, 4, 0.25, 4, 0.25, 4});
        layout.setRow(new double[] {5, ICON_SIZE, 15, TableLayout.FILL, 5});
        panel.setLayout(layout);

        panel.add(new JSeparator(JSeparator.HORIZONTAL), "0,2,8,2,f,c");
       
        btnNew = new JButton(ImageUtil.loadImageIcon("images/level_new.png", CreateLevelTool.class));
View Full Code Here

        init();
    }
   
    private void init() {
        panel = new JPanel();
        TableLayout layout = new TableLayout();
        layout.setColumn(new double[] {4, 0.25, 4, 0.25, 4, 0.25, 4, 0.25, 4});
        layout.setRow(new double[] {5, ICON_SIZE, 15, TableLayout.FILL, 5});
        panel.setLayout(layout);

        panel.add(new JSeparator(JSeparator.HORIZONTAL), "0,2,8,2,f,c");
   
        ButtonGroup btnGrp = new ButtonGroup();
View Full Code Here

        init();
    }
   
    private void init() {
        panel = new JPanel();
        TableLayout layout = new TableLayout();
        layout.setColumn(new double[] {4, 0.25, 4, 0.25, 4, 0.25, 4, 0.25, 4});
        layout.setRow(new double[] {5, ICON_SIZE, 15, TableLayout.FILL, 5});
        panel.setLayout(layout);

        panel.add(new JSeparator(JSeparator.HORIZONTAL), "0,2,8,2,f,c");
       
        ButtonGroup btnGrp = new ButtonGroup();
View Full Code Here

        init();
    }
   
    private void init() {
        panel = new JPanel();
        TableLayout layout = new TableLayout();
        layout.setColumn(new double[] {4, 0.25, 4, 0.25, 4, 0.25, 4, 0.25, 4});
        layout.setRow(new double[] {5, ICON_SIZE, 15, TableLayout.FILL, 5});
        panel.setLayout(layout);

        panel.add(new JSeparator(JSeparator.HORIZONTAL), "0,2,8,2,f,c");
       
        ButtonGroup btnGrp = new ButtonGroup();
View Full Code Here

        init();
    }
   
    private void init() {
        panel = new JPanel();
        TableLayout layout = new TableLayout();
        layout.setColumn(new double[] {4, 0.25, 4, 0.25, 4, 0.25, 4, 0.25, 4});
        layout.setRow(new double[] {5, ICON_SIZE, 15, TableLayout.FILL, 5});
        panel.setLayout(layout);

        panel.add(new JSeparator(JSeparator.HORIZONTAL), "0,2,8,2,f,c");
       
        ButtonGroup btnGrp = new ButtonGroup();
View Full Code Here

        this.frame = new JFrame("Sample App...");
        this.frame.setSize(640, 480);
        this.frame.setLocation(100, 100);
        this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        // I love TableLayout. It's great.
        this.frame.getContentPane().setLayout(new TableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));

        // Store (on close) and load (on start) the toolwindow manager workspace.
        this.frame.addWindowListener(new WindowAdapter() {
            public void windowOpened(WindowEvent e) {
                try {
View Full Code Here

        FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.FLOATING);
        typeDescriptor.setTransparentDelay(0);


        JPanel panel = new JPanel(new TableLayout(new double[][]{{20, -1, 20}, {20, -1, 20}}));
        panel.add(new JButton("Hello World 2"), "1,1,FULL,FULL");

        toolWindowManager.registerToolWindow("1", "Title 1", null, new JButton("Hello World 1"), ToolWindowAnchor.LEFT);
        toolWindowManager.registerToolWindow("2", "Title 2", null, panel, ToolWindowAnchor.RIGHT);
        toolWindowManager.registerToolWindow("3", "Title 3", null, new JButton("Hello World 3"), ToolWindowAnchor.LEFT);
View Full Code Here

        return new JScrollPane(toolsTable);
    }

    protected Component initGroupEditorContent() {
        JPanel toolGroupsPanel = new JPanel(new TableLayout(new double[][]{{-1, 5, 150, 5}, {5, 25, 5, 25, 5, -1}}));
        toolGroupsPanel.setBorder(new TitledBorder("Groups"));

        final JTable toolGroupsTable = new JTable(new ToolGroupsTableModel(toolWindowManager));
        toolGroupsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        JScrollPane toolGroupsTableScroll = new JScrollPane(toolGroupsTable);
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.