problems with java-applications (swing?)

Hello, I've got an issue with xmonad: I've tried 3 different java applications (all using the swing toolkit). The applications are starting fine but their window is painted completely gray (ok the splash screen is actually painted correct but thats not really useful ;) ). However starting these applications in Xnest works perfect and everything is painted as it should. There was an similar issue on this list with JabRef (see http://www.haskell.org/pipermail/xmonad/2007-June/000615.html) which is also a swing application. I think there is maybe a problem with the above mentioned swing toolkit because other java applications using the awt toolkit (like eclipse) don't have this painting issue. I'm using xmonad and X11-extras from darcs pulled and compiled on 2007-06-18. ciao tobias PS: great work so far! keep on going! PPS: sorry for my bad english ;) -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

dwm documents that you have to set the environment variable AWT_TOOLKIT to MToolkit. Perhaps that also works for xmonad. Kai JAWR@gmx.de writes:
Hello,
I've got an issue with xmonad: I've tried 3 different java applications (all using the swing toolkit). The applications are starting fine but their window is painted completely gray (ok the splash screen is actually painted correct but thats not really useful ;) ). However starting these applications in Xnest works perfect and everything is painted as it should. There was an similar issue on this list with JabRef (see http://www.haskell.org/pipermail/xmonad/2007-June/000615.html) which is also a swing application. I think there is maybe a problem with the above mentioned swing toolkit because other java applications using the awt toolkit (like eclipse) don't have this painting issue. I'm using xmonad and X11-extras from darcs pulled and compiled on 2007-06-18.
ciao tobias
PS: great work so far! keep on going! PPS: sorry for my bad english ;) -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger _______________________________________________ Xmonad mailing list Xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Am Mittwoch, 20. Juni 2007 14:55 schrieb Kai Grossjohann:
dwm documents that you have to set the environment variable AWT_TOOLKIT to MToolkit.
Perhaps that also works for xmonad.
Kai
thats it - "export AWT_TOOLKIT=MToolkit" solved the problem. Maybe this also applies to the JabRef issue. Thank you very much. tobias

On Wed, Jun 20, 2007 at 03:43:10PM +0200, Tobias Hammerschmidt wrote:
thats it - "export AWT_TOOLKIT=MToolkit" solved the problem. Maybe this also applies to the JabRef issue. Thank you very much.
Yes it does. Although someone on the the dwm mailing list complained that it might break d'n'd -- no bother, as I'd rather not use the mouse. The info about how to select AWT implementation in java is on sun's site: http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.5/xawt.html Thanks for help, -- Krzysztof Kościuszkiewicz Skype: dr.vee, Gadu: 111851, Jabber: kokr@jabberpl.org Phone IRL: +353851383329, Phone PL: +48783303040 "Simplicity is the ultimate sophistication" -- Leonardo da Vinci
participants (4)
-
JAWR@gmx.de
-
k.kosciuszkiewicz@gmail.com
-
Kai Grossjohann
-
Tobias Hammerschmidt