Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5058
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: setAlwaysOnTop with Runtime ? |
| Date | 2012-02-27 12:11 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jigdfs$qg3$1@dont-email.me> (permalink) |
| References | <33eb1b06-5f82-433a-9a59-cc8f05236302@32g2000yqn.googlegroups.com> |
On 02/26/2012 08:44 PM, The Nigga wrote:
> hello
>
> I have a JDialog form with setAlwaysOnTop(true), and now I need open
> "calc" of Windows but calc is opening behind of JDialog.
>
> [code]
> public class MyDialog extends JDialog{
>
> public MyDialog(){
> setAlwaysOnTop(true);
> Runtime.getRuntime().exec("calc"); // here calc is
> opened behind JDialog
> }
> }
> [/code]
>
> How do to open calc in front of JDialog ?
>
If I understand your question correctly, you might set MyDialog back and
then execute and wait for calc to return and then set MyDialog forward
again. See java.lang.Process documentation.
> thanks.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
setAlwaysOnTop with Runtime ? The Nigga <fernandopaivabr@gmail.com> - 2012-02-26 17:44 -0800 Re: setAlwaysOnTop with Runtime ? Jeff Higgins <jeff@invalid.invalid> - 2012-02-27 12:11 -0500
csiph-web