Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5058
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: setAlwaysOnTop with Runtime ? |
| Date | Mon, 27 Feb 2012 12:11:27 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 26 |
| Message-ID | <jigdfs$qg3$1@dont-email.me> (permalink) |
| References | <33eb1b06-5f82-433a-9a59-cc8f05236302@32g2000yqn.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 27 Feb 2012 17:11:24 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="BSKXKq4dV+7jFlM4JDctyw"; logging-data="27139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0COdg3gBbZq+vtaANF7udkt2hZT07UvQ=" |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120207 Icedove/3.0.11 |
| In-Reply-To | <33eb1b06-5f82-433a-9a59-cc8f05236302@32g2000yqn.googlegroups.com> |
| Cancel-Lock | sha1:iKrzFwhmhYR2rUITTUzWsK9Vfz0= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.gui:5058 |
Show key headers only | View raw
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