> Thanks, that was very insightful!
No worries..
> It doesn't seem to work unless the JFrame is visible and my whole point
> of using a JWindow is not no frame is visible and that there's nothing
> on the taskbar.
>
> How can *that* be accomplisher?
Well.. fussy, fussy..
<sscce>
import javax.swing.*;
public class EditableTextFieldTest {
public static void main(String args[]) {
JTextField tf1 = new JTextField("Frame", 20);
JTextField tf2 = new JTextField("Owned Window", 20);
JTextField tf3 = new JTextField("Free Window", 20);
JFrame f = new JFrame();
f.getContentPane().add( tf1 );
f.pack();
f.setLocation(-100,-100);
f.setVisible(true);
JWindow wO = new JWindow(f);
wO.getContentPane().add( tf2 );
wO.pack();
wO.setLocation(100,100);
wO.setVisible(true);
JWindow wF = new JWindow();
wF.getContentPane().add( tf3 );
wF.pack();
wF.setLocation(150,150);
wF.setVisible(true);
}
}
</sscce>
;-)
Andrew T.
aaronfude@gmail.com - 24 Aug 2006 14:53 GMT
Thanks, but this will still cause an application button to appear on
the taskbar in Windows. Is it possible to avoid that? Thanks!
Thomas Weidenfeller - 24 Aug 2006 15:03 GMT
> Thanks, but this will still cause an application button to appear on
> the taskbar in Windows. Is it possible to avoid that? Thanks!
Why didn't you specify this requirement in your original posting? We
can't read your mind. Use a JDialog and turn its decoration off.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
aaronfude@gmail.com - 24 Aug 2006 15:24 GMT
Thanks!
(FWIW, I did specify in my second post.)