Click to See Complete Forum and Search --> : Pop Ups and the sort


DJRobThaMan
04-25-2005, 05:05 PM
Hi,

I have been trying to get a window to pop up when the user clicks a button on my original window using Java. I tried making the pop up window aqnother class and have gotten the layout of the elements in this class pretty much how it should be. But I still can't figure out how to get this class to display when I am viewing anothewr class and click a button fromth at same class. Does anyone have any advice for me? Am I even heading in the right direction? Any help would be greatly appreciated.

Thanks,
Douglas

buntine
04-25-2005, 08:51 PM
Your class should subclass Frame or JFrame. From the constructor, set the properties you want (such as setLocation(x, y) and setSize(width, height)) and then call setVisible(true);.

Regards.