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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
Sean29G025

Latest Threads

Top