• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why TextField added to Panel on Window not editable?  RSS feed

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!