java swing window

Hello ppl,I just made a simple JWindow and made it visible, but i cant get it to move, its just fixed in one place. How do u make the window movable ?
[164 byte] By [--stallion--a] at [2007-11-27 2:11:05]
# 1
What's your code look like?I'm not too familiar with JWindow, myself.. I've always used JFrame's and I've never had any issues with not being able to drag them on the screen.
JJCoolBa at 2007-7-12 2:04:00 > top of Java-index,Java Essentials,New To Java...
# 2

public Gui(JWindow aWindow)

{

this.window = aWindow;

setSize(WIDTH,HEIGHT);

screenSize = Toolkit.getDefaultToolkit().getScreenSize();

setLocation((screenSize.width-WIDTH)*2/3,(screenSize.height-HEIGHT)*2/3);

try

{

UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());

}

catch(Exception e){}

Container container = getContentPane();

container.setLayout(null);

background = Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource("Images/background.gif"));

setVisible(true);

}

--stallion--a at 2007-7-12 2:04:00 > top of Java-index,Java Essentials,New To Java...