Examples of addTab()


Examples of com.vaadin.ui.Accordion.addTab()

    Accordion getAccordion(String caption) {
        TestIcon testIcon = new TestIcon(0);
        Accordion ac = new Accordion();
        ac.setCaption(caption);
        ac.addTab(new VerticalLayout() {
            {
                setMargin(true);
                addComponent(new Label(
                        "Fabio vel iudice vincam, sunt in culpa qui officia. Ut enim ad minim veniam, quis nostrud exercitation."));
            }
View Full Code Here

Examples of com.vaadin.ui.TabSheet.addTab()

        Label l4 = new Label("444");

        ts.addTab(l1, "1", null);
        ts.addTab(l2, "2", null);
        ts.addTab(l3, "3", null);
        ts.addTab(l4, "4", null);

        l1.setVisible(false);

        w.addComponent(ts);
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.impl.HidableTabbedPane.addTab()

        assertEquals(h.getTabCount(), 1);
        assertEquals(h.getComponentAt(0), one);
        assertNull(h.getTabComponentAt(0)); // No special tab component

        JLabel two = new JLabel("Two");
        h.addTab("Tab Two", two);
        assertEquals(h.getComponentAt(1), two);
        assertNull(h.getTabComponentAt(1));

        JLabel tabLabel = new JLabel("Label Two");
        h.setTabComponentAt(1, tabLabel);
View Full Code Here

Examples of javax.swing.JPanel.addTab()

        ok_bt.addActionListener(this);
        cancel_bt = new JButton(getLocalizedString("bt.cancel"));
        cancel_bt.addActionListener(this);

        // populate jtabbedpane
        pane.addTab(getLocalizedString("tab.general"), general_panel);
        pane.addTab(getLocalizedString("tab.pagesetup"), pagesetup_panel);
        pane.addTab(getLocalizedString("tab.appearance"), appearance_panel);

        // Put everything together
        getContentPane().add(pane, BorderLayout.CENTER);
View Full Code Here

Examples of javax.swing.JTabbedPane.addTab()

     */
    public Component getGUI(LibrarySelectionTable lst) {

        JTabbedPane jtp = new JTabbedPane();

        jtp.addTab(DEFAULT,
                null,
                drawingAttributes.getGUI(),
                "General Attributes");
        List features = getFeatures();
        int numFeatures = features.size();
View Full Code Here

Examples of javax.swing.JTabbedPane.addTab()

                    desc = "Feature Description Unavailable";
                }
                JPanel featurePanel = new JPanel();
                featurePanel.add(da.getGUI());

                jtp.addTab(currentFeature, null, featurePanel, desc);
            }
        }
        return jtp;
    }
View Full Code Here

Examples of javax.swing.JTabbedPane.addTab()

        }

        //**********************************************************
        //Main panel
        //**********************************************************
        tabbedPane.addTab(DataCrow.getVersion().getFullString(), IconLibrary._icoAbout, panelAbout);
        tabbedPane.addTab(DcResources.getText("lblCredits"), IconLibrary._icoHelp, panelCredits);

        getContentPane().setLayout(Layout.getGBL());
        getContentPane().add(tabbedPane,   Layout.getGBC(0, 0, 1, 1, 1.0, 1.0,
                                           GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
View Full Code Here

Examples of javax.swing.JTabbedPane.addTab()

        //**********************************************************
        //Main panel
        //**********************************************************
        tabbedPane.addTab(DataCrow.getVersion().getFullString(), IconLibrary._icoAbout, panelAbout);
        tabbedPane.addTab(DcResources.getText("lblCredits"), IconLibrary._icoHelp, panelCredits);

        getContentPane().setLayout(Layout.getGBL());
        getContentPane().add(tabbedPane,   Layout.getGBC(0, 0, 1, 1, 1.0, 1.0,
                                           GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
                                           new Insets(5, 5, 5, 5), 0, 0));
View Full Code Here

Examples of javax.swing.JTabbedPane.addTab()

            Iterator sii = spatialIndexes.iterator();
            while (sii.hasNext()) {
                SpatialIndexHandler sih = (SpatialIndexHandler) sii.next();
                JPanel stuff = (JPanel) sih.getGUI();
                if (stuff != null) {
                    tabs.addTab(sih.getPrettyName(), stuff);
                }
            }

            box.add(tabs);
View Full Code Here

Examples of javax.swing.JTabbedPane.addTab()

       
        //**********************************************************
        //Tab Pane
        //**********************************************************
        JTabbedPane tp = ComponentFactory.getTabbedPane();
        tp.addTab(DcResources.getText("lblTabs"), panelTab);
        tp.addTab(DcResources.getText("lblTabDesign"), panelTabFields);
       
        //**********************************************************
        //Action panel
        //**********************************************************
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.