24 */
25
26 package javax.swing.plaf.metal;
27
28 import javax.swing.*;
29 import javax.swing.event.*;
30 import java.awt.*;
31 import java.awt.event.*;
32 import javax.swing.plaf.*;
33 import java.io.Serializable;
34 import javax.swing.plaf.basic.BasicTabbedPaneUI;
35
36 /**
37 * The Metal subclass of BasicTabbedPaneUI.
38 * <p>
39 * <strong>Warning:</strong>
40 * Serialized objects of this class will not be compatible with
41 * future Swing releases. The current serialization support is
42 * appropriate for short term storage or RMI between applications running
43 * the same version of Swing. As of 1.4, support for long term storage
44 * of all JavaBeans™
45 * has been added to the <code>java.beans</code> package.
46 * Please see {@link java.beans.XMLEncoder}.
47 *
48 * @author Tom Santos
49 */
50 @SuppressWarnings("serial") // Same-version serialization only
51 public class MetalTabbedPaneUI extends BasicTabbedPaneUI {
52
53 /**
54 * The minimum width of a pane.
55 */
56 protected int minTabWidth = 40;
57 // Background color for unselected tabs that don't have an explicitly
58 // set color.
59 private Color unselectedBackground;
60
61 /**
62 * The color of tab's background.
63 */
64 protected Color tabAreaBackground;
|
24 */
25
26 package javax.swing.plaf.metal;
27
28 import javax.swing.*;
29 import javax.swing.event.*;
30 import java.awt.*;
31 import java.awt.event.*;
32 import javax.swing.plaf.*;
33 import java.io.Serializable;
34 import javax.swing.plaf.basic.BasicTabbedPaneUI;
35
36 /**
37 * The Metal subclass of BasicTabbedPaneUI.
38 * <p>
39 * <strong>Warning:</strong>
40 * Serialized objects of this class will not be compatible with
41 * future Swing releases. The current serialization support is
42 * appropriate for short term storage or RMI between applications running
43 * the same version of Swing. As of 1.4, support for long term storage
44 * of all JavaBeans
45 * has been added to the <code>java.beans</code> package.
46 * Please see {@link java.beans.XMLEncoder}.
47 *
48 * @author Tom Santos
49 */
50 @SuppressWarnings("serial") // Same-version serialization only
51 public class MetalTabbedPaneUI extends BasicTabbedPaneUI {
52
53 /**
54 * The minimum width of a pane.
55 */
56 protected int minTabWidth = 40;
57 // Background color for unselected tabs that don't have an explicitly
58 // set color.
59 private Color unselectedBackground;
60
61 /**
62 * The color of tab's background.
63 */
64 protected Color tabAreaBackground;
|