|
|
|
|
@ -1,61 +1,23 @@
|
|
|
|
|
/*
|
|
|
|
|
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
|
|
|
|
*
|
|
|
|
|
* Distributable under LGPL license.
|
|
|
|
|
* See terms of license at gnu.org.
|
|
|
|
|
*/
|
|
|
|
|
package net.java.sip.communicator.impl.gui.main.customcontrols.tabbedPane;
|
|
|
|
|
/*
|
|
|
|
|
* The following borrowed from
|
|
|
|
|
* The content of this file was based on code borrowed from
|
|
|
|
|
* David Bismut, davidou@mageos.com
|
|
|
|
|
* Intern, SETLabs, Infosys Technologies Ltd. May 2004 - Jul 2004
|
|
|
|
|
* Ecole des Mines de Nantes, France
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
*
|
|
|
|
|
* Extended from
|
|
|
|
|
* @(#)BasicTabbedPaneUI.java 1.126 03/01/23
|
|
|
|
|
*
|
|
|
|
|
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
|
|
|
|
|
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import java.awt.Component;
|
|
|
|
|
import java.awt.Container;
|
|
|
|
|
import java.awt.Dimension;
|
|
|
|
|
import java.awt.Event;
|
|
|
|
|
import java.awt.Font;
|
|
|
|
|
import java.awt.FontMetrics;
|
|
|
|
|
import java.awt.Graphics;
|
|
|
|
|
import java.awt.Graphics2D;
|
|
|
|
|
import java.awt.Image;
|
|
|
|
|
import java.awt.Insets;
|
|
|
|
|
import java.awt.KeyboardFocusManager;
|
|
|
|
|
import java.awt.LayoutManager;
|
|
|
|
|
import java.awt.Point;
|
|
|
|
|
import java.awt.Rectangle;
|
|
|
|
|
import java.awt.Shape;
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
import java.awt.event.ActionListener;
|
|
|
|
|
import java.awt.event.ContainerEvent;
|
|
|
|
|
import java.awt.event.ContainerListener;
|
|
|
|
|
import java.awt.event.MouseEvent;
|
|
|
|
|
import java.awt.event.MouseListener;
|
|
|
|
|
import java.awt.event.MouseMotionListener;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
import java.awt.event.*;
|
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
|
import java.util.Hashtable;
|
|
|
|
|
import java.util.Vector;
|
|
|
|
|
|
|
|
|
|
import javax.swing.AbstractAction;
|
|
|
|
|
import javax.swing.ActionMap;
|
|
|
|
|
import javax.swing.Icon;
|
|
|
|
|
import javax.swing.InputMap;
|
|
|
|
|
import javax.swing.JButton;
|
|
|
|
|
import javax.swing.JComponent;
|
|
|
|
|
import javax.swing.JMenuItem;
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
import javax.swing.JPopupMenu;
|
|
|
|
|
import javax.swing.JTabbedPane;
|
|
|
|
|
import javax.swing.JViewport;
|
|
|
|
|
import javax.swing.KeyStroke;
|
|
|
|
|
import javax.swing.SwingConstants;
|
|
|
|
|
import javax.swing.SwingUtilities;
|
|
|
|
|
import javax.swing.UIManager;
|
|
|
|
|
import javax.swing.border.Border;
|
|
|
|
|
import javax.swing.border.SoftBevelBorder;
|
|
|
|
|
import javax.swing.event.ChangeEvent;
|
|
|
|
|
|