Forums Register Login

Why TextField added to Panel on Window not editable?

+Pie Number of slices to send: Send
When I create a java.awt.Window and add a panel with a TextField, the textfield does not process any events. I can't put the cursor in it and I can't enter any text. If I change the window to a Frame, suddenly I can type text in the field.

Does anyone know why?
+Pie Number of slices to send: Send
In the javadocs, check the Window api and look at the Method Detail for the isFocusableWindow method. It tells what you need to get your TextField to work.
[ March 04, 2005: Message edited by: Craig Wood ]
You've gotta fight it! Don't give in! Read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 960 times.
Similar Threads
How to stop JTextField collapsing when using GridBagLayout?
Blank Frame or Panel
Size of TextField increases wrt window size
Using a FocusListener, How does Java choose when to return or wait for a method call or Thread run?
Why can't I get tooltip to show up when text in JTextField certain length?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:36:58.