I want to develop a system virtual keyboard with SWT technology on the platform of PowerPC under Ubuntu, and I Let's focus on how to shell the shell when starting the shell window.
open ()
The method of class appears in a shell and window manager To make it active, in most cases, the active shell is the one with the highest shell and focus on the desktop.
If you want to make a shell visible but not active, you can try calling . For example, I tried the following on my PC and started the shell without focusing:
display display = new display ( ); Shell shell = new shell (display); Shell.setText ("Example Shell"); Shell.setVisible (true); While (! Shell.isDisposed ()) {if (! Display.readAndDispatch ()) {display.sleep (); }} Display.dispose ();
Comments
Post a Comment