KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > SSpacer


1 /*
2  * $Id: SSpacer.java,v 1.2 2005/05/20 09:15:31 neurolabs Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings;
15
16 /**
17  * A invisible component you may use as spacer in dynamic layout managers. (Typically an invisible pixel.)
18  * @author bschmid
19  */

20 public class SSpacer extends SComponent {
21
22     /** C'tor of an invisible element. */
23     public SSpacer(int width, int height) {
24         setPreferredSize(new SDimension(Integer.toString(width), Integer.toString(height)));
25     }
26
27     /** C'tor of an invisible element. */
28     public SSpacer(String JavaDoc width, String JavaDoc height) {
29         setPreferredSize(new SDimension(width, height));
30     }
31
32 }
33
Popular Tags