Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.tele2net.at!news.panservice.it!feed.xsnews.nl!border01.ams.xsnews.nl!feeder01.ams.xsnews.nl!feeder03.ams.xsnews.nl!frontend-F09-14.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Messagebox on current desktop Organization: Decebal Computing X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Tue, 06 Jan 2015 23:38:51 +0100 Message-ID: <87387n7cw4.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:rBFdIWDU1LOAk2dzK46xp/MZF0M= MIME-Version: 1.0 Content-Type: text/plain Lines: 19 NNTP-Posting-Host: 77.171.42.144 X-Trace: 1420584221 news.kpn.nl 19164 77.171.42.144@kpn/77.171.42.144:35143 Xref: csiph.com comp.lang.java.programmer:30639 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? For example the program is running on desktop 3. I am working on desktop 1. Instead of the messagebox displayed on desktop 3 (where I will not see it), I want it displayed on desktop 1. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof