MainTabbedPanel.java :  » Database-Client » SQL-Profiler » org » jahia » sqlprofiler » gui » Java Open Source

Java Open Source » Database Client » SQL Profiler 
SQL Profiler » org » jahia » sqlprofiler » gui » MainTabbedPanel.java
/*
 * Copyright (C) Jahia Ltd. All rights reserved.
 *
 * This software is published under the terms of the Jahia Open Software
 * License version 1.1, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 */
package org.jahia.sqlprofiler.gui;

import java.awt.*;
import javax.swing.*;

/**
 * <p>Title: SQL Profiler</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: Jahia Ltd</p>
 * @author Serge Huber
 * @version 1.0
 */

public class MainTabbedPanel extends JPanel {
    BorderLayout borderLayout1 = new BorderLayout();
        String tabs[] = {"Profiler", "Logger" };
    JTabbedPane jTabbedPane1 = new JTabbedPane();

    public MainTabbedPanel() {
        try {
            jbInit();
        }
        catch(Exception ex) {
            ex.printStackTrace();
        }
    }

    void jbInit() throws Exception {
        this.setLayout(borderLayout1);
    }

    public void addTab(String name, JPanel panel, String tip) {
        jTabbedPane1.addTab(name, null, panel, tip);
    }

    public void finishTabs() {
        jTabbedPane1.setSelectedIndex(0);
        this.add(jTabbedPane1, BorderLayout.CENTER);
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.