swing focus issue

S

suru

Hi,
i have swing application.
It doesn't come in focus, instead in taskbar it blinks.
Is there any way to grab the focus instead of blinking it in the
taskbar.

JRE version: 1.6.0_13
OS: Windows XP

Thanks,
Suraj
 
A

Andrew Thompson

i m using setVisible(true),

Try adding toFront() after that call. Then (only
if necessary), call requestFocus() as outlined in
the first reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,470
Messages
2,571,809
Members
48,797
Latest member
PeterSimpson
Top