Examples of addTab()


Examples of com.alee.laf.tabbedpane.WebTabbedPane.addTab()

        TexturePainter tp4 = new TexturePainter ( loadIcon ( "bg4.jpg" ) );

        WebTabbedPane tabbedPane = new WebTabbedPane ();
        tabbedPane.setPreferredSize ( new Dimension ( 300, 200 ) );

        tabbedPane.addTab ( "Tab 1", new WebLabel () );
        tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp1 );
        tabbedPane.setSelectedForegroundAt ( tabbedPane.getTabCount () - 1, Color.WHITE );

        tabbedPane.addTab ( "Tab 2", new WebLabel () );
        tabbedPane.setBackgroundPainterAt ( tabbedPane.getTabCount () - 1, tp2 );
View Full Code Here

Examples of com.google.gwt.user.client.ui.TabBar.addTab()

public class TabBarExample implements EntryPoint {

  public void onModuleLoad() {
    // Create a tab bar with three items.
    TabBar bar = new TabBar();
    bar.addTab("foo");
    bar.addTab("bar");
    bar.addTab("baz");

    // Hook up a tab listener to do something when the user selects a tab.
    bar.addSelectionHandler(new SelectionHandler<Integer>() {
View Full Code Here

Examples of com.ibm.richtext.styledtext.MTabRuler.addTab()

                if (ruler.containsTab(fOldTab)) {
                    ruler = ruler.removeTab(fOldTab.getPosition());
                }
            }
            if (fNewTab != null) {
                ruler = ruler.addTab(fNewTab);
            }

            if (ruler != oldRuler) {
                return oldStyle.addAttribute(TextAttribute.TAB_RULER, ruler);
            }
View Full Code Here

Examples of com.intellij.ui.TabbedPaneImpl.addTab()

        messageField = CommitMessage.createCommitTextEditor(project, false);
        messageField.setBorder(BorderFactory.createEmptyBorder());
        JPanel messagePanel = new JPanel(new BorderLayout());
        messagePanel.add(messageField, BorderLayout.CENTER);
        messagePanel.add(new JLabel("Write your comment here. You can use a simple markdown-like syntax."), BorderLayout.SOUTH);
        tabbedPane.addTab("Write", AllIcons.Actions.Edit, messagePanel);

        final JEditorPane previewEditorPane = new JEditorPane(UIUtil.HTML_MIME, "");
        previewEditorPane.setEditable(false);
        tabbedPane.addTab("Preview", AllIcons.Actions.Preview, previewEditorPane);
View Full Code Here

Examples of com.intellij.ui.components.JBTabbedPane.addTab()

                                               @NotNull Map<String, RunSettingsSection> tabs) {
    JBTabbedPane tabbedPane = new JBTabbedPane();
    CreationContext content = new CreationContext(project);
    for (Map.Entry<String, RunSettingsSection> entry : tabs.entrySet()) {
      JComponent component = entry.getValue().getComponent(content);
      tabbedPane.addTab(entry.getKey(), component);
    }
    tabbedPane.setSelectedIndex(0);
    return tabbedPane;
  }
View Full Code Here

Examples of com.l2fprod.common.swing.JOutlookBar.addTab()

    addTab(outlook, "Folders");
    addTab(outlook, "Backup");

    // show it is possible to add any component to the bar
    JTree tree = new JTree();
    outlook.addTab("A JTree", outlook.makeScrollPane(tree));

    outlook.addTab("Disabled", new JButton());
    outlook.setEnabledAt(3, false);
    outlook.setAllTabsAlignment(alignment);
   
View Full Code Here

Examples of com.nexirius.framework.swing.CFJTabbedPane.addTab()

            JPanel personPanel = new ArrayPanel(false, ArrayLayout.FULL_SIZE);

            JComponent personEditor = factory.createDefaultEditor(memberModel.getPerson()).getJComponent();
            personPanel.add(personEditor);
            personPanel.add(createFieldEditor(MemberModel.FIELD_TYPE, factory));
            tabbedPane.addTab(PersonModel.FIELD_PERSON, createTabComponent(personPanel));
            DataModel addressList = memberModel.getChild(AddressListModel.FIELD_ADDRESS_LIST);
            tabbedPane.addTab(AddressListModel.FIELD_ADDRESS_LIST, createTabComponent(factory.createDefaultEditor(addressList).getJComponent()));
            DataModel phoneList = memberModel.getChild(PhoneListModel.FIELD_PHONE_LIST);
            tabbedPane.addTab(PhoneListModel.FIELD_PHONE_LIST, createTabComponent(factory.createDefaultEditor(phoneList).getJComponent()));
        } catch (Exception e) {
View Full Code Here

Examples of com.smartgwt.client.widgets.tab.TabSet.addTab()

    TabSet tabs = new TabSet();

    Tab tab1 = new Tab("Default Ribbon");
    tab1.setPane(getExample1());
    tabs.addTab(tab1);

    Tab tab2 = new Tab("Tabbed Ribbon");
    tab2.setPane(getExample2());
    tabs.addTab(tab2);
View Full Code Here

Examples of com.totsp.gwittir.client.ui.FlowTabPanel.addTab()

        SimplePanel sp = new SimplePanel();
        FlowController.setFlowContext(sp, context);
      
       
        FlowTabPanel tabs = new FlowTabPanel(sp, context);
        tabs.addTab("flickr", new Label("Flickr"), null);
        tabs.addTab("storage", new Label("Client Side Storage"), null);
        tabs.addTab("gridform", new Label("GridForm"), null);
        tabs.addTab("animation", new Label("FX"), null);
        tabs.addTab("table", new Label("Table"), null);
        tabs.addTab("keys", new Label("KeyBinding"), null);
View Full Code Here

Examples of com.trolltech.qt.gui.QTabWidget.addTab()

    QBoxLayout layout = new QBoxLayout(Direction.TopToBottom);

    routeGenerationWidget = createRouteWidget();
    tripGenerationWidget = createTripWidget();

    tabWidget.addTab(tripGenerationWidget, "Trips");
    tabWidget.addTab(routeGenerationWidget, "Routes");

    QPushButton okButton = new QPushButton("OK");
    okButton.pressed.connect(this, "onDialogOk()");
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.