JWindow

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 ?

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);

}

[1127 byte] By [--stallion--a] at [2007-11-27 2:11:33]
# 1
Post Swing-related questions in the Swing forum, please: http://forum.java.sun.com/forum.jspa?forumID=57
DrLaszloJamfa at 2007-7-12 2:04:50 > top of Java-index,Java Essentials,Java Programming...
# 2
You want to be able to pick it up and drag it?PS.
puckstopper31a at 2007-7-12 2:04:50 > top of Java-index,Java Essentials,Java Programming...