wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes shell setactive or force active. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "shell setactive or force active." Watch "shell setactive or force active." New topic

shell setactive or force active.


Joined: Jan 19, 2009
Posts: 7
hi everyone.

i have a problem on swt shells please help me.

from menu i am launching one swt shell. after launching the shell i will click on another window.
then shell will goes in deactivate mode. i.e shell loose the focus. how to get it back to active mode.

i am sending some sample source code.
here status variable indicates for first it will open the swt shell. if the user try to open the another time it will goes to else block to get back the previously opened window.
i tried with forceactive() and setactive() methods. but those are not working. is any thing wrong with the code.

please help me


Joined: Jan 19, 2009
Posts: 7
hi all,

please if anybody know the answer let me know. (Problem is mentioned above post)
or if you have any ideas please give your suggestions.
It is sorta covered in the JavaRanch Style Guide.
subject: shell setactive or force active.
Similar Threads
org.eclipse.swt.SWTException: Widget is disposed
[SWT] resize problem
[SWT] Text resize problem
Sample code to drag drop buttons in Applet
Synchronizing between two threads, one implements Runnable the other extends Thread