Thanks Sean, I stumbled upon this a few days ago.

Also, if you still want the space above to appear, and the window to be
movable, but without the controls, add this line of code:

getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);

Thanks again for the response.

Best,

Ted



-----Original Message-----
From: Sean Sharp [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: JTextField doesn't receive input in a JWindow


JDK 1.4 allows for undecorated frames which should solve this problem for
you.
Use a JFrame and call setUndecorated(true) to eliminate the title bar and
borders.

-Sean

Ted Shab wrote:

> Hello,
>
> I've been using a JWindow instead of a JFrame because I didn't want the
Java
> Icon and Min/Max buttons - this is a kiosk style application.  However, if
I
> put a JTextField on this application, I can't enter text into it.  If I
> switch to a JFrame the JTextField becomes editable.  I also tried a
> TextField and got the same result.
>
> Any one know either why this strange behavior occurs (1.4 on W2K), or if
> not, how to eliminate the Icon and Min/Max buttons from a JFrame.
>
> Best,
>
> Ted
>
> P.S. Thanks for the people who answer previous questions - I haven't had
> time yet to check your suggestions.
>
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to