Package javax.swing

Examples of javax.swing.JTabbedPane.addTab()


    // pnlTop.add(new JLabel("Show Tasks From Other Projects"));
    // pnlTop.add(showTasksFromOtherProjects);
    pnlGeneralHolder.add(pnlGeneralTop, BorderLayout.NORTH);
    JTabbedPane tab = new JTabbedPane();
    tab.addTab("General", pnlGeneralHolder);
    tab.addTab("Data Sources", scrlPane);
   
//    add(pnlTop, BorderLayout.NORTH);
//    add(scrlPane, BorderLayout.CENTER);
    add(tab, BorderLayout.CENTER);
View Full Code Here


    // pnlTop.add(new JLabel("Show Tasks From Other Projects"));
    // pnlTop.add(showTasksFromOtherProjects);
    pnlGeneralHolder.add(pnlGeneralTop, BorderLayout.NORTH);
    JTabbedPane tab = new JTabbedPane();
    tab.addTab("General", pnlGeneralHolder);
    tab.addTab("Data Sources", scrlPane);
   
//    add(pnlTop, BorderLayout.NORTH);
//    add(scrlPane, BorderLayout.CENTER);
    add(tab, BorderLayout.CENTER);
    add(buttonBar, BorderLayout.SOUTH);
View Full Code Here

    pnlEditorArea.add(pnlFields, BorderLayout.NORTH);
    JScrollPane scrollPaneFiles = new JScrollPane(projectFiles);
    scrollPaneFiles.addMouseListener(fileTableMouseAdapter);

    JTabbedPane tab = new JTabbedPane();
    tab.addTab("Description", new JScrollPane(projectDescription));
    tab.addTab("Contacts", new JScrollPane(contactList));
    tab.addTab("Files", scrollPaneFiles);

    pnlEditorArea.add(tab, BorderLayout.CENTER);
View Full Code Here

    JScrollPane scrollPaneFiles = new JScrollPane(projectFiles);
    scrollPaneFiles.addMouseListener(fileTableMouseAdapter);

    JTabbedPane tab = new JTabbedPane();
    tab.addTab("Description", new JScrollPane(projectDescription));
    tab.addTab("Contacts", new JScrollPane(contactList));
    tab.addTab("Files", scrollPaneFiles);

    pnlEditorArea.add(tab, BorderLayout.CENTER);

    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(lstProjects), pnlEditorArea);
View Full Code Here

    scrollPaneFiles.addMouseListener(fileTableMouseAdapter);

    JTabbedPane tab = new JTabbedPane();
    tab.addTab("Description", new JScrollPane(projectDescription));
    tab.addTab("Contacts", new JScrollPane(contactList));
    tab.addTab("Files", scrollPaneFiles);

    pnlEditorArea.add(tab, BorderLayout.CENTER);

    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(lstProjects), pnlEditorArea);
    splitPane.setDividerLocation(200);
View Full Code Here

   
    /*
     * 代码生成器JTabbedPane
     */
    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.addTab("JGenerator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_java.png"), buildJGeneratorPanel(), "代码生成器");
    tabbedPane.addTab("PHP Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "application_x_php.png"), new JLabel("PHP代码生成器,开发中..."), "PHP代码生成器");
    tabbedPane.addTab("ASP.Net Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "filetype_asp.png"), new JLabel("ASP.Net代码生成器,开发中..."), "ASP.Net代码生成器");
    tabbedPane.addTab("C# Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_csharp.png"), new JLabel("C#代码生成器,开发中..."), "C#代码生成器");
    tabbedPane.addTab("Code Preview", IconUtils.createImageIcon(ICON_CLASS_PATH + "view_source.png"), buildCodePreviewPanel(), "代码预览");
   
View Full Code Here

    /*
     * 代码生成器JTabbedPane
     */
    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.addTab("JGenerator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_java.png"), buildJGeneratorPanel(), "代码生成器");
    tabbedPane.addTab("PHP Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "application_x_php.png"), new JLabel("PHP代码生成器,开发中..."), "PHP代码生成器");
    tabbedPane.addTab("ASP.Net Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "filetype_asp.png"), new JLabel("ASP.Net代码生成器,开发中..."), "ASP.Net代码生成器");
    tabbedPane.addTab("C# Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_csharp.png"), new JLabel("C#代码生成器,开发中..."), "C#代码生成器");
    tabbedPane.addTab("Code Preview", IconUtils.createImageIcon(ICON_CLASS_PATH + "view_source.png"), buildCodePreviewPanel(), "代码预览");
   
    JSplitPane centerSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, metadataTableScrollPane, tabbedPane);
View Full Code Here

     * 代码生成器JTabbedPane
     */
    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.addTab("JGenerator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_java.png"), buildJGeneratorPanel(), "代码生成器");
    tabbedPane.addTab("PHP Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "application_x_php.png"), new JLabel("PHP代码生成器,开发中..."), "PHP代码生成器");
    tabbedPane.addTab("ASP.Net Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "filetype_asp.png"), new JLabel("ASP.Net代码生成器,开发中..."), "ASP.Net代码生成器");
    tabbedPane.addTab("C# Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_csharp.png"), new JLabel("C#代码生成器,开发中..."), "C#代码生成器");
    tabbedPane.addTab("Code Preview", IconUtils.createImageIcon(ICON_CLASS_PATH + "view_source.png"), buildCodePreviewPanel(), "代码预览");
   
    JSplitPane centerSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, metadataTableScrollPane, tabbedPane);
    centerSplitPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
View Full Code Here

     */
    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.addTab("JGenerator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_java.png"), buildJGeneratorPanel(), "代码生成器");
    tabbedPane.addTab("PHP Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "application_x_php.png"), new JLabel("PHP代码生成器,开发中..."), "PHP代码生成器");
    tabbedPane.addTab("ASP.Net Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "filetype_asp.png"), new JLabel("ASP.Net代码生成器,开发中..."), "ASP.Net代码生成器");
    tabbedPane.addTab("C# Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_csharp.png"), new JLabel("C#代码生成器,开发中..."), "C#代码生成器");
    tabbedPane.addTab("Code Preview", IconUtils.createImageIcon(ICON_CLASS_PATH + "view_source.png"), buildCodePreviewPanel(), "代码预览");
   
    JSplitPane centerSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, metadataTableScrollPane, tabbedPane);
    centerSplitPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    centerSplitPane.setDividerLocation(160);
View Full Code Here

    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.addTab("JGenerator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_java.png"), buildJGeneratorPanel(), "代码生成器");
    tabbedPane.addTab("PHP Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "application_x_php.png"), new JLabel("PHP代码生成器,开发中..."), "PHP代码生成器");
    tabbedPane.addTab("ASP.Net Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "filetype_asp.png"), new JLabel("ASP.Net代码生成器,开发中..."), "ASP.Net代码生成器");
    tabbedPane.addTab("C# Generator", IconUtils.createImageIcon(ICON_CLASS_PATH + "text_x_csharp.png"), new JLabel("C#代码生成器,开发中..."), "C#代码生成器");
    tabbedPane.addTab("Code Preview", IconUtils.createImageIcon(ICON_CLASS_PATH + "view_source.png"), buildCodePreviewPanel(), "代码预览");
   
    JSplitPane centerSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, metadataTableScrollPane, tabbedPane);
    centerSplitPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    centerSplitPane.setDividerLocation(160);
    centerSplitPane.setDividerSize(5)//分隔线的宽度
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.