On Sun, Nov 05, 2000 at 08:52:57PM -0500, Bob Woodside wrote:
>
> 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.)
>
Yes I'm lurking about. Somewhere either in your main if its a program
or in the init of the Applet do the following to change L&F
try {
//UIManager.setLookAndFeel(
// UIManager.getSystemLookAndFeelClassName());
// If you want the Cross Platform L&F instead, comment out
//the above line and uncomment the following:
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch (UnsupportedLookAndFeelException exc) {
System.err.println("Warning: UnsupportedLookAndFeel: " + laf);
} catch (Exception exc) {
System.err.println("Error loading " + laf + ": " + exc);
}
After a brief walk through the java source I think I see the problem if
you run the attached code and type into the frame that comes up you will
see the key events printed out on stderr. If you try something like alt
+ F. You will notice the modifiers element is something like Meta+Alt
My guess is that the code that actually processes the events is looking
at a different KeyStroke object than you passed in. So the real
question is what is E passing that fvwm isn't if it works under one and
not the other.
So if you wouldn't mind try this code out under both and examine the
results.
--
--- There are two kinds of knowledge, you either know the answer or
you know where to find it
-Kane, Johnson, and anonymous
--
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 Mon Nov 06 2000 - 06:35:35 GMT