Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus problem  RSS feed

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since is deprecated, how can i control the focus on my components?
thanks in advance
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a page from the Swing trail in the java tutorial that deals with focus: How to use the Focus Subsystem
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot
that really helped

to those with the same problemas i had, here's what i did:
created this class:

note the constructor so that i can control the visual components.
in the gui class (TesteVisual) i added this:
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot
that really helped

to those with the same problemas i had, here's what i did:
created this class:

note the constructor so that i can control the visual components.
in the gui class (TesteVisual) i added this:

And worked perfectly!
thanks again a lot
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!