Package info.clearthought.layout

Examples of info.clearthought.layout.TableLayout


    public Component getComponent() {
        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);

        JPanel panel = new JPanel();
        panel.setLayout(new TableLayout(new double[][]{{-1}, {-1, 5, -1}}));
        panel.add(new PreferencePanelView(viewContext).getComponent(),
                  "0,0,FULL,FULL");
        panel.add(new ContentTableView(viewContext).getComponent(),
                  "0,2,FULL,FULL");
View Full Code Here


    public TestChooserView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        JPanel panel = new JPanel(new TableLayout(new double[][]{{-1}, {20,3,-1}}));
        panel.setBorder(new TitledBorder("Choose Interactive Test"));

        panel.add(new TestSelectorPanel(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new TestDescriptionPanel(viewContext).getComponent(), "0,2,FULL,FULL");
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 TestSelectorPanel(ViewContext viewContext) {
            super(viewContext);
        }

        protected Component initComponent() {
            JPanel panel = new JPanel(new TableLayout(new double[][]{{150,3,-1,3, 100},{-1}}));

            JFrame frame = viewContext.get(JFrame.class);

            tests = new JComboBox(new Object[]{
                    new InteractiveToolVisisbleTest(frame),
View Full Code Here

        public TestDescriptionPanel(ViewContext viewContext) {
            super(viewContext);
        }

        protected Component initComponent() {
            JPanel panel = new JPanel(new TableLayout(new double[][]{{-1},{-1}}));
            panel.setBorder(new LineBorder(Color.DARK_GRAY));

            this.editorPane = new JEditorPane();
            editorPane.setEditorKit(new HTMLEditorKit());
            editorPane.setEditable(false);
View Full Code Here

        this.toolWindowManager = viewContext.get(ToolWindowManager.class);
        this.desktopContentManagerUI = new MyDoggyDesktopContentManagerUI();
    }

    protected Component initComponent() {
        JPanel panel = new JPanel(new TableLayout(new double[][]{{-1, 50, -1},{-1, 20, -1}}));
        panel.add(new JLabel("No Pref"), "1,1,FULL,FULL");

        return panel;
    }
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 Component getComponent() {
        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);

        JPanel panel = new JPanel();
        panel.setLayout(new TableLayout(new double[][]{{-1}, {-1, 5, -1}}));
        panel.add(new ToolWindowTableView(viewContext).getComponent(),
                  "0,0,FULL,FULL");
        panel.add(new PreferencePanelView(viewContext).getComponent(),
                  "0,2,FULL,FULL");
View Full Code Here

    public PreferencePanelView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        preferencePanel = new JPanel(new TableLayout(new double[][]{{-1}, {20, 3, -1}}));
        preferencePanel.setBorder(new TitledBorder("Preferences"));

        uisContainer = new PanelViewContainer() {
            protected void initComponents() {
                super.initComponents();
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}}));

        // 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

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.