You are not logged in.

#1 2012-06-08 11:56:29

fabrydrunk
Member
From: Catanzaro, Italy
Registered: 2012-04-16
Posts: 25

XMonad & Java GUI applications in Eclipse

Hello everybody,
I'm facing a very annoying problem with my Xmonad. I'm developing a Java GUI application and it requires some data to be inserted by JTextField. Unfortunately I can't write anything in it, because the JTextField behaves like if it isn't editable. I then tried the same thing on Fluxbox and everything worked perfectly. Why doesn't XMonad allow me to insert words in the JTextField?

Offline

#2 2012-06-08 12:02:40

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: XMonad & Java GUI applications in Eclipse

Did you try this?

Offline

#3 2012-06-08 12:15:42

fabrydrunk
Member
From: Catanzaro, Italy
Registered: 2012-04-16
Posts: 25

Re: XMonad & Java GUI applications in Eclipse

No, I didn't read this. I'm using jre7-openjdk. I decommented _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh, but the problem is still the same. Do I also have to write "setWMName="LG3D" in my xmonad.hs?

Offline

#4 2012-06-08 12:18:48

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: XMonad & Java GUI applications in Eclipse

Try it out. Read the entire section. Note also what it says about XMonad.Hooks.EwmhDesktops.
You may also follow the link to the XMonad wiki page and try their suggestions.

Last edited by JackH79 (2012-06-08 12:19:55)

Offline

#5 2012-06-08 12:23:59

fabrydrunk
Member
From: Catanzaro, Italy
Registered: 2012-04-16
Posts: 25

Re: XMonad & Java GUI applications in Eclipse

that hack was still present in my xmonad.hs and I didn't even know (lol)


myStartupHook = setDefaultCursor xC_left_ptr >> setWMName "LG3D"

Offline

#6 2012-06-08 12:33:03

fabrydrunk
Member
From: Catanzaro, Italy
Registered: 2012-04-16
Posts: 25

Re: XMonad & Java GUI applications in Eclipse

I've found this , that should fix my problem, but I can't write code in Haskell so I can't understand which parts of this code should I copy in my xmonad.hs and where. Can someone let me understand?

Offline

#7 2012-06-08 22:53:58

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: XMonad & Java GUI applications in Eclipse

First off: are you sure you need it? Secondly, what you found there in your link is an extension which should come with the xmonad-contrib package. You don't paste that into your xmonad.hs.This should give you an idea of what you need to do.

You should probably read up on XMonad in general though, to figure out how to configure xmonad properly. You don't need to be able to write haskell to do that. I don't myself. But the xmonad.hs is relatively straight forward and if you take some example xmonad.hs's from other users and actually follow through every linie they've got in there, it will become clear quite quickly what you have/can/should do with it.

Offline

#8 2012-08-01 11:35:53

cassava
Member
From: Germany
Registered: 2012-08-01
Posts: 9

Re: XMonad & Java GUI applications in Eclipse

fabrydrunk, have you solved your problem yet?

If not, take a look at this thread.
The idea is to downgrade to jdk6 or openjdk6.

Offline

#9 2012-08-01 14:10:54

nnoell
Member
From: Spain
Registered: 2010-08-21
Posts: 99

Re: XMonad & Java GUI applications in Eclipse

Hi fabrydrunk,

This is a common problem discussed here. There seems to be a patch that solves the problem with jdk7 posted in comment 33. I never used it but it seems it works as said on the latest comments.

Offline

Board footer

Powered by FluxBB