Morning jayseye. Thanks for the time you're taking over this.
My locale is EN-GB, but with a Brazilian keyboard and timezone.
jdk rather than jre, because though it may not be needed for either jEdit or the code sample, it is needed to buidl the Wenlin source, which is written in C with java on the outside.
I will test Wenlin in a clean system at the first opportunity - a good idea. However, it does the same in 13.37 and the RC, with openjdk 7 and 6 respectively.
The behaviour is exactly the same for Wenlin, jEdit, and the sample: clicking on menu items makes the drop-down list appear, but it disappears as soon as the button is released, making it impossible to select anything. Also, in tiling WMs, the application window doesn't take up the full space available and appears to be missing something to bottom and right.
I think that means Wenlin can be removed from the problem. If I can make jEdit work, Wenlin is going to work. The relevance of the sample is to narrow the problem down to the "MenuListener". That's just a plausible hypothesis.
If nobody else is seeing this (jEdit works, the sample works as expected) then it must be either something I've done or something I've omitted to do that the typical user of jdk as opposed to jre would have done - like having loads of perl libraries if you are a perl hacker. A sin by omission seems more likely than a sin by commission because I'm seeing the same in two different Salix versions. Testing with Live will clinch it.
I just realised I omitted to mention a very important fact as the topic of the thread moved from pasting to miscreant menus and windows. I am only seeing this in XMonad and Ratpoison. In xfce, everything works as expected. However, that's counterintuitive. What does the WM have to do with java? In particular, why should the "Menu Listener" not work in one but work in another? This is the same system, I should add, with XMonad and Xfce as choices at the login screen. Ratpoison is a separate (13.37) installation.
I'm sorry I lost sight of that detail

The fact is, I rarely use xfce. I am doing so now, and that reminded me.