Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30642

Re: Messagebox on current desktop

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <eternal@knutejohnson.com>
Newsgroups comp.lang.java.programmer
Subject Re: Messagebox on current desktop
Date Tue, 06 Jan 2015 16:04:22 -0800
Organization A noiseless patient Spider
Lines 20
Message-ID <m8ht5a$1io$1@dont-email.me> (permalink)
References <87387n7cw4.fsf@Equus.decebal.nl> <m8hq69$naf$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 7 Jan 2015 00:03:54 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="1624"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/G73vUcZgkXRKHwnfA0KZT"
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
In-Reply-To <m8hq69$naf$1@dont-email.me>
Cancel-Lock sha1:JTAx3+4+6fJG+2ycWBDKJqL4AWE=
Xref csiph.com comp.lang.java.programmer:30642

Show key headers only | View raw


On 1/6/2015 15:13, Eric Sosman wrote:
> On 1/6/2015 5:38 PM, Cecil Westerhof wrote:
>> You can get a Messagebox with:
>>          JOptionPane.showMessageDialog(this,
>>                                        "Message",
>>                                        "Title",
>>                                        JOptionPane.INFORMATION_MESSAGE,
>>                                        null);
>>
>> The problem is that I work with Linux and have several desktops. The
>> messagebox is displayed on the desktop where the program is running.
>> Is there a method to get the messagebox on the current desktop?
>
>      I don't know, but I'd be willing to bet that the first
> argument will have to be something other than "this".  See
> if you can find some likely alternatives to try in that spot.
>

Or use one of the JDialog constructors that takes a GraphicsConfiguration.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Messagebox on current desktop Cecil Westerhof <Cecil@decebal.nl> - 2015-01-06 23:38 +0100
  Re: Messagebox on current desktop Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-01-06 18:13 -0500
    Re: Messagebox on current desktop Knute Johnson <eternal@knutejohnson.com> - 2015-01-06 16:04 -0800
  Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 07:14 -0500
    Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 07:19 -0500
    Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 07:39 -0500
      Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 08:44 -0500
      Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 10:17 -0500
        Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 10:37 -0500
    Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 09:11 -0500
      Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 09:41 -0500
      Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 09:46 -0500
        Re: Messagebox on current desktop Jeff Higgins <jeff@invalid.invalid> - 2015-01-07 09:49 -0500
  Re: Messagebox on current desktop Arne Vajhøj <arne@vajhoej.dk> - 2015-01-10 23:04 -0500
    Re: Messagebox on current desktop Cecil Westerhof <Cecil@decebal.nl> - 2015-01-11 18:17 +0100

csiph-web