Package cz.mp.k3bg.gui

Source Code of cz.mp.k3bg.gui.MainFrameTabbedPane

/*
* MainFrameTabbedPane.java
*
*  created: 7.10.2011
*  charset: UTF-8
*  license: MIT (X11) (See LICENSE file for full license)
*/
package cz.mp.k3bg.gui;

import cz.mp.k3bg.gui.plaf.OptionsTabbedPaneUI;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JTabbedPane;


/**
* Hlavní "záložkový panel" se změněným vzhledem.
*
* @author Martin Pokorný
* @version 0.1
* @see TabPanel
* @see MainFrame
* @see OptionsTabbedPaneUI
*/
public class MainFrameTabbedPane extends JTabbedPane {

   
    /** */
    public MainFrameTabbedPane() {
        super();
        init();
    }

    /**
     *
     */
    private void init() {
        OptionsTabbedPaneUI optsTabPaneUI = new OptionsTabbedPaneUI();
        this.setUI(optsTabPaneUI);

        this.setTabPlacement(JTabbedPane.LEFT);

        this.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);       
    }

    public final void addTab(TabPanel panel) {
        super.addTab(
                panel.getTitle(),
                panel.getImageIcon(),
                panel);
    }

    /** @throws UnsupportedOperationException */
    @Deprecated
    @Override
    public void addTab(String title, Component component) {
        throw new UnsupportedOperationException();
    }

    /** @throws UnsupportedOperationException */
    @Deprecated
    @Override
    public void addTab(String title, Icon icon, Component component) {
        throw new UnsupportedOperationException();
    }

    /** @throws UnsupportedOperationException */
    @Deprecated
    @Override
    public void addTab(String title, Icon icon, Component component, String tip) {
        throw new UnsupportedOperationException();
    }
   
   
}   // MainFrameTabbedPane.java
TOP

Related Classes of cz.mp.k3bg.gui.MainFrameTabbedPane

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.