KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > xam > ui > layout > JSplitterSpace


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.xam.ui.layout;
21
22 import java.awt.Dimension JavaDoc;
23 import javax.swing.JComponent JavaDoc;
24
25 /** A JSplitterSpace is a completely plain lightweight AWT Component. Its
26     only purpose in life is to hold a space that can act as a handle for
27     a JSplitterBar.
28  * <p>Use this code at your own risk! MageLang Institute is not
29  * responsible for any damage caused directly or indirctly through
30  * use of this code.
31  * <p><p>
32  * <b>SOFTWARE RIGHTS</b>
33  * <p>
34  * MageLang support classes, version 1.0, MageLang Institute
35  * <p>
36  * We reserve no legal rights to this code--it is fully in the
37  * public domain. An individual or company may do whatever
38  * they wish with source code distributed with it, including
39  * including the incorporation of it into commerical software.
40  *
41  * <p>However, this code cannot be sold as a standalone product.
42  * <p>
43  * We encourage users to develop software with this code. However,
44  * we do ask that credit is given to us for developing it
45  * By "credit", we mean that if you use these components or
46  * incorporate any source code into one of your programs
47  * (commercial product, research project, or otherwise) that
48  * you acknowledge this fact somewhere in the documentation,
49  * research report, etc... If you like these components and have
50  * developed a nice tool with the output, please mention that
51  * you developed it using these components. In addition, we ask that
52  * the headers remain intact in our source code. As long as these
53  * guidelines are kept, we expect to continue enhancing this
54  * system and expect to make other tools available as they are
55  * completed.
56  * <p>
57  * The MageLang Support Classes Gang:
58  * @version MageLang Support Classes 1.0, MageLang Insitute, 1997
59  * @author <a HREF="http:www.scruz.net/~thetick">Scott Stanchfield</a>, <a HREF=http://www.MageLang.com>MageLang Institute</a>
60     @see JSplitterBar
61 */

62 public class JSplitterSpace extends JComponent JavaDoc {
63
64     static final long serialVersionUID = 1L;
65
66     public synchronized Dimension JavaDoc getMinimumSize() {
67         return new Dimension JavaDoc(10, 10);
68     }
69
70     public synchronized Dimension JavaDoc getPreferredSize() {
71         return new Dimension JavaDoc(10, 10);
72     }
73 }
74
Popular Tags