Added a spacey new class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@719 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// $Id: Spacer.java,v 1.1 2002/04/30 02:31:09 mdb Exp $
|
||||
|
||||
package com.samskivert.swing;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
/**
|
||||
* A widget whose sole purpose is to introduce blank space between other
|
||||
* widgets. A sorry lot, but he gets the job done.
|
||||
*/
|
||||
public class Spacer extends JPanel
|
||||
{
|
||||
/**
|
||||
* Constructs a spacer with the specified width and height.
|
||||
*/
|
||||
public Spacer (int width, int height)
|
||||
{
|
||||
setPreferredSize(new Dimension(width, height));
|
||||
setOpaque(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user