[3541] in java-interest
file dialogs
daemon@ATHENA.MIT.EDU (Robert W Armstrong)
Wed Nov 15 21:10:29 1995
Date: Wed, 15 Nov 1995 18:18:32 -0500 (EST)
From: Robert W Armstrong <robert+@andrew.cmu.edu>
To: java-interest@java.sun.com
I'm trying to create a file dialog with the following code:
Frame f = new Frame("FileDialog");
FileDialog fd = new FileDialog(f, "FileDialog");
fd.show();
For some reason I get the following:
java.lang.NullPointerException
at sun.awt.motif.MFileDialogPeer.create(MFileDialogPeer.java:28)
at sun.awt.motif.MComponentPeer.<init>(MComponentPeer.java:75)
at sun.awt.motif.MCanvasPeer.<init>(MCanvasPeer.java:32)
at sun.awt.motif.MPanelPeer.<init>(MPanelPeer.java:30)
at sun.awt.motif.MDialogPeer.<init>(MDialogPeer.java:39)
at sun.awt.motif.MFileDialogPeer.<init>(MFileDialogPeer.java:31)
at sun.awt.motif.MToolkit.createFileDialog(MToolkit.java:97)
at java.awt.FileDialog.addNotify(FileDialog.java:77)
at java.awt.Window.show(Window.java:93)
at Foo.action(Foo.java:32)
at java.awt.Component.handleEvent(Component.java:886)
at java.awt.Component.postEvent(Component.java:832)
at java.awt.Component.postEvent(Component.java:838)
at java.awt.Component.postEvent(Component.java:838)
at sun.awt.motif.MButtonPeer.action(MButtonPeer.java:39)
at java.lang.Thread.run(Thread.java)
I'm running the JDK Beta 2 under Solaris 2.4. Any help would be appreciated.
robert
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com