Multiple JWindows
From: Fahd Shariff (fahdshariff_at_yahoo.com)
Date: 06/21/04
- Next message: Dave Thorn: "custom component painting"
- Previous message: Thomas Weidenfeller: "comp.lang.java.gui FAQ"
- Next in thread: VisionSet: "Re: Multiple JWindows"
- Reply: VisionSet: "Re: Multiple JWindows"
- Maybe reply: Kova: "Re: Multiple JWindows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jun 2004 06:47:01 -0700
Why doesnt the code below display two jwindows where i want them? It
just shows both of them on top of each other. If i use JFrames
instead, everything works beautifully...
JWindow window = new JWindow() ;
window.getContentPane().add(new JLabel("HELLO1")) ;
window.setSize(100,100) ;
window.setLocation(100,100) ; //<---------------------
window.setVisible(true) ;
System.out.println("created window 1");
JWindow window2 = new JWindow() ;
window2.getContentPane().add(new JLabel("HELLO2")) ;
window2.setSize(100,100) ;
window2.setLocation(100,200) ; //<---------------------
window2.setVisible(true) ;
System.out.println("created window 2");
Thanks in advance,
-- Fahd Shariff http://www.fahdshariff.cjb.net "Let the code do the talking..."
- Next message: Dave Thorn: "custom component painting"
- Previous message: Thomas Weidenfeller: "comp.lang.java.gui FAQ"
- Next in thread: VisionSet: "Re: Multiple JWindows"
- Reply: VisionSet: "Re: Multiple JWindows"
- Maybe reply: Kova: "Re: Multiple JWindows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|