KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > plaf > CompiereSplitPaneDivider


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.plaf;
15
16 import java.awt.Graphics JavaDoc;
17
18 import javax.swing.plaf.basic.BasicSplitPaneDivider JavaDoc;
19 import javax.swing.plaf.basic.BasicSplitPaneUI JavaDoc;
20
21 /**
22  * Splat Pane Divider
23  *
24  * @author Jorg Janke
25  * @version $Id: CompiereSplitPaneDivider.java,v 1.4 2003/09/27 11:08:52 jjanke Exp $
26  */

27 class CompiereSplitPaneDivider extends BasicSplitPaneDivider JavaDoc
28 {
29     /**
30      * Constructor
31      * @param ui
32      */

33     public CompiereSplitPaneDivider (BasicSplitPaneUI JavaDoc ui)
34     {
35         super (ui);
36         // BasicBorders$SplitPaneDividerBorder - ignored set after constructor
37
setBorder(null);
38     } // CompiereSplitPaneDivider
39

40     /**
41      * Paints the divider.
42      * If the border is painted, it creates a light gray bar on top/button.
43      * Still, a light gray 1 pt shaddow border is painted on top/button
44      * @param g
45      */

46     public void paint (Graphics JavaDoc g)
47     {
48         // BasicBorders$SplitPaneDividerBorder
49
setBorder(null);
50         super.paint(g);
51     } // paint
52

53 } // CompiereSplitPaneDivider
54
Popular Tags