Package org.noos.xing.mydoggy.plaf.ui.layout

Examples of org.noos.xing.mydoggy.plaf.ui.layout.ExtendedTableLayout


            split.setResizeWeight(0.5d);
            split.setContinuousLayout(true);
            split.setFocusable(false);
            split.setBorder(null);

            JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
            panel.setFocusCycleRoot(true);
            panel.add(root, "0,0,FULL,FULL");
            split.setLeftComponent(panel);

            panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
            panel.setFocusCycleRoot(true);
            panel.add(content, "0,0,FULL,FULL");
            split.setRightComponent(panel);

            add(split, "0,0");
View Full Code Here


    private void initFloatingComponents() {
        window = new JModalWindow(descriptor.getWindowAnchestor(), null, false);
//                new JWindow(descriptor.getWindowAnchestor());

        JPanel contentPane = new JPanel(new ExtendedTableLayout(new double[][]{{1, TableLayout.FILL, 1}, {1, TableLayout.FILL, 1}}));
        contentPane.setBorder(BorderFactory.createLineBorder(Color.GRAY));
        window.setContentPane(contentPane);

        resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window);
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(window, applicationBarTitle);
View Full Code Here

        viewport = new JViewport();
        viewport.setView(container);

        switch (orientation) {
            case JSplitPane.VERTICAL_SPLIT:
                setLayout(new ExtendedTableLayout(new double[][]{{TableLayout.FILL}, {0, TableLayout.FILL, 0}}));
                add(renderArrow("U", "arrowUp"), "0,0,c,c");
                add(viewport, "0,1,FULL,FULL");
                add(renderArrow("D", "arrowDown"), "0,2,c,c");

                break;
            case JSplitPane.HORIZONTAL_SPLIT:
                setLayout(new ExtendedTableLayout(new double[][]{{0, TableLayout.FILL, 0}, {TableLayout.FILL}}));
                add(renderArrow("U", "arrowLeft"), "0,0,c,c");
                add(viewport, "1,0,FULL,FULL");
                add(renderArrow("D", "arrowRight"), "2,0,c,c");

                break;
View Full Code Here

        this.frame = new JFrame("MyDoggy-Set...");
        this.frame.setSize(640, 480);
        this.frame.setLocation(100, 100);
        this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.frame.getContentPane().setLayout(new ExtendedTableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));

        JMenuBar menuBar = new JMenuBar();

        // File Menu
        JMenu fileMenu = new JMenu("File");
View Full Code Here

        splitPane.setFocusCycleRoot(true);

        contentPane = new JPanel();       
        if (anchor == ToolWindowAnchor.LEFT || anchor == ToolWindowAnchor.RIGHT) {
            horizontal = false;
            contentPane.setLayout(new ExtendedTableLayout(new double[][]{COLUMNS, {0}}));
            orientation = JSplitPane.VERTICAL_SPLIT;
        } else if (anchor == ToolWindowAnchor.TOP || anchor == ToolWindowAnchor.BOTTOM) {
            horizontal = true;
            contentPane.setLayout(new ExtendedTableLayout(new double[][]{{0}, ROWS}));
            orientation = JSplitPane.HORIZONTAL_SPLIT;
        }

        toolScrollBar = new JToolScrollBar(orientation, contentPane);
View Full Code Here

                return group;
            }
        });

        // Init gui
        contentPaneLayout = new ExtendedTableLayout(new double[][]{{0, TableLayout.FILL, 0}, {0, TableLayout.FILL, 0}});
        setLayout(contentPaneLayout);

        // Register bars, one for every anchor
        addBar(LEFT, JSplitPane.HORIZONTAL_SPLIT, "0,1", "0,0,c,c");
        addBar(RIGHT, JSplitPane.HORIZONTAL_SPLIT, "2,1", "2,0,c,c");
        addBar(TOP, JSplitPane.VERTICAL_SPLIT, "1,0", "2,2,c,c");
        addBar(BOTTOM, JSplitPane.VERTICAL_SPLIT, "1,2", "0,2,c,c");

        mainContainer = new JPanel();
        mainContainer.setBackground(Color.GRAY);
        mainContainer.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
        mainContainer.setFocusCycleRoot(true);

        getBar(BOTTOM).getSplitPane().setTopComponent(getBar(TOP).getSplitPane());
        getBar(TOP).getSplitPane().setBottomComponent(getBar(LEFT).getSplitPane());
        getBar(LEFT).getSplitPane().setRightComponent(getBar(RIGHT).getSplitPane());
View Full Code Here

        }
    }


    private void initSlidingComponents() {
        sheet = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
        border = new SlidingBorder();

        Window anchestor = descriptor.getWindowAnchestor();
        if (anchestor instanceof RootPaneContainer) {
            glassPane = (Container) ((RootPaneContainer) anchestor).getGlassPane();
View Full Code Here

            public void run() {
                frame.setSize(640, 480);
                frame.setLocation(100, 100);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

                frame.getContentPane().setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
                frame.getContentPane().add(myDoggyToolWindowManager, "0,0,");

                frame.setVisible(true);
            }
        });
View Full Code Here

    protected void initComponents() {
        splitPane.setName(anchor.toString());
        contentPane = new JPanel();
        if (anchor == ToolWindowAnchor.LEFT || anchor == ToolWindowAnchor.RIGHT) {
            horizontal = false;
            contentPane.setLayout(new ExtendedTableLayout(new double[][]{COLUMNS, {0}}));
            orientation = JSplitPane.VERTICAL_SPLIT;
        } else if (anchor == ToolWindowAnchor.TOP || anchor == ToolWindowAnchor.BOTTOM) {
            horizontal = true;
            contentPane.setLayout(new ExtendedTableLayout(new double[][]{{0}, ROWS}));
            orientation = JSplitPane.HORIZONTAL_SPLIT;
        }

        toolScrollBar = new JToolScrollBar(orientation, contentPane);
View Full Code Here

                return group;
            }
        });

        // Init gui
    contentPaneLayout = new ExtendedTableLayout(new double[][]{{0, TableLayout.FILL, 0}, {0, TableLayout.FILL, 0}});
        setLayout(contentPaneLayout);

        // Register bars, one for every anchor
        addBar(LEFT, JSplitPane.HORIZONTAL_SPLIT, "0,1", "0,0,c,c");
        mainSplitPane = addBar(RIGHT, JSplitPane.HORIZONTAL_SPLIT, "2,1", "2,0,c,c");
        mainSplitPane.addPropertyChangeListener("UI", new UpdateUIChangeListener());

        mainContainer = new JPanel();
        mainContainer.setBackground(Color.GRAY);
        mainContainer.setLayout(new ExtendedTableLayout(new double[][] {{-1},{-1}}));
        mainContainer.setFocusCycleRoot(true);   

    mainSplitPane.setLeftComponent(mainContainer);

        addBar(TOP, JSplitPane.VERTICAL_SPLIT, "1,0", "2,2,c,c");
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.layout.ExtendedTableLayout

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.