01: /*
02: * FlatSplitPaneUI.java
03: *
04: * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: *
20: */
21:
22: package org.underworldlabs.swing.plaf;
23:
24: /*
25: * @(#)MetalSplitPaneUI.java 1.9 03/01/23
26: *
27: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
28: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
29: */
30:
31: import javax.swing.JComponent;
32:
33: import javax.swing.plaf.ComponentUI;
34:
35: import javax.swing.plaf.basic.BasicSplitPaneDivider;
36: import javax.swing.plaf.basic.BasicSplitPaneUI;
37:
38: /* ----------------------------------------------------------
39: * CVS NOTE: Changes to the CVS repository prior to the
40: * release of version 3.0.0beta1 has meant a
41: * resetting of CVS revision numbers.
42: * ----------------------------------------------------------
43: */
44:
45: /**
46: * Modified metal split pane UI.
47: */
48: /**
49: *
50: * @author Takis Diakoumis
51: * @version $Revision: 1.4 $
52: * @date $Date: 2006/05/14 06:56:07 $
53: */
54: public class FlatSplitPaneUI extends BasicSplitPaneUI {
55:
56: /**
57: * Creates a new FlatSplitPaneUI instance
58: */
59: public static ComponentUI createUI(JComponent x) {
60: return new FlatSplitPaneUI();
61: }
62:
63: /**
64: * Creates the default divider.
65: */
66: public BasicSplitPaneDivider createDefaultDivider() {
67: return new FlatSplitPaneDivider(this );
68: }
69:
70: /**
71: * Installs the UI defaults.
72: */
73: protected void installDefaults() {
74: super.installDefaults();
75: divider.setBorder(null);
76: }
77:
78: }
|