Dan Espen wrote:
>
> Paul Powell <moloch16_at_yahoo.com> writes:
> > Hello,
> >
> > I am having problems under FVWM2 using Alt-? hot keys
> > with Java GUI interfaces....
> >
> > I'm using IBM's JDK 1.1.8 and Swing 1.1.1.
> >
> > I used ..."xmodmap"...and that did the trick under
> > Enlightenment but under FVWM it failed.
> >
> > Anyone have any experience using Java and FVWM that
> > could help me out?
>
> I can try. I'm a bit of a Java novice though.
>
> Using your sample program, I was unable to get ALT-F to pull down the
> file menu the same as you. I ran Java traces, and the keys
> are clearly getting to the Java app.
>
> After reading some docs, I tried hitting F10 instead. Sure enough,
> F10 will make the file menu pull down.
>
> What this seems to be related to is something Java calls "LookAndFeel".
> ...
> I don't understand the LookAndFeel class docs well enough to know
> if you can set the LookAndFeel yourself.
Yes, you can. I've done that in the past to get around some quirks in
the Metal implementation. I was about to send a short code snippet
illustrating how, but see below.
> ...
> Perhaps someone on this list can correct me, or if I'm on the right
> track, supply some more input.
I thought Dan was on the right track, but I tried the program on my
system and both Alt-F and F10 bring up the File menu just fine...no
fiddling with xmodmap, nor with the Pluggable LookAndFeel. Dan, you may
well be on the right track, but I can't reproduce the problem.
I'm running JDK 1.2 (the Blackdown Linux port, from sometime early this
year I believe) on a more-or-less Slackware 7.0 system. Unfortunately, I
don't have a pre-1.2 JDK lying around anywhere to experiment with
anymore. I do recall having some trouble with IBM's JDK on a SuSE 6.4
system back around June (I don't remember whether it was 1.1.8 or 1.1.7)
- not related to this problem, but several things didn't work right and
I had about 10 minutes to decide whether to scrap that project - no time
to research it; that was the last pre-1.2 system I've fiddled with.
It's puzzling that this would work under Gnome/E - I believe Dan has
demonstrated that it's really not a WM issue (absent any key bindings in
your .fvwm2rc).
Paul, do you use the other Gnome stuff when you run FVWM - is the only
difference the choice of window manager to start up? Or is there a bunch
of other Gnome startup stuff that isn't getting run with FVWM? And can
you verify which LookAndFeel is being used? And what flavor of OS are
you using?
I seem to recall that you can set the default LAF (normally Metal) in
Java's config file, but I may be dreaming. Brad...are you out there?
Does that ring a bell with you? (Yes, I'm grasping at straws.)
Cheers,
Bob
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Nov 05 2000 - 18:52:10 GMT