• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JApplet gaining focus - VERY URGENT

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to gain focus to the first component in a JApplet while invoking through a browser.Also when it gain focus it should traverse thorugh rest of the components in the JApplet using TAB.
Pls reply
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
try transferfocus() method in the component class to shift the<br>
focus and requestfocus() to get the focus..<br>
hope this works, i'm not sure :-D<br>
all the best<br>
gowrish
 
j krishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by gowrish bhaskar:
hi,
try transferfocus() method in the component class to shift the<br>
focus and requestfocus() to get the focus..<br>
hope this works, i'm not sure :-D<br>
all the best<br>
gowrish



WE TRIED THESE TWO OPTIONS
OH ! IT DOESN'Y WORK
THANKS
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi J,
I just override the start method and call the request focus. It usually works. The example shown below should start the focus on the third textfield. The TAB functionality usually works for me by default.

Regards,
Manfred.
 
j krishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot its workin

Originally posted by Manfred Leonhardt:
[B]Hi J,
I just override the start method and call the request focus. It usually works. The example shown below should start the focus on the third textfield. The TAB functionality usually works for me by default.

Regards,
Manfred.[/B]


 
I like tacos! And this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic