Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug in JDK1.3?

0 views
Skip to first unread message

Tobias Rieke

unread,
Jun 14, 2001, 9:08:08 AM6/14/01
to
Hi,

Everytime I run my GUI I get a NullpointerException. During the comilation
phase no errors are detected. This error only occurs, if I insert a
JSplitPane in an JInternalFrame. This Splitpanel is inserted in a Class
which extends JPanel like this:

[..]
"this.add(new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, new JPanel(), new
JPanel()) , BorderLayout.CENTER);"
[..]

I tried jdk1.3.1 and jdk1.3.0_002 getting everytime the same errormessage.
The Java GUI is running on an Windows 2000 OS.

Does anybody know this error and know how to fix it. Is it a bug of jdk1.3
or programming mistake of mine.


Tobias


The StackTrace looks like this.

java.lang.NullPointerException: peer
at sun.awt.windows.WCanvasPeer.create(Native Method)
at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:375)
at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:26)
at sun.awt.windows.WToolkit.createCanvas(WToolkit.java:285)
at java.awt.Canvas.addNotify(Canvas.java:76)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at javax.swing.JRootPane.addNotify(JRootPane.java:483)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at java.awt.Container.addNotify(Container.java:1579)
at javax.swing.JComponent.addNotify(JComponent.java:3500)
at javax.swing.JInternalFrame.pack(JInternalFrame.java:1439)
at claim.gui.processing.CustomerPanel.jbInit(CustomerPanel.java:46)
at claim.gui.processing.CustomerPanel.<init>(CustomerPanel.java:28)
at claim.gui.processing.ClaimProcessing.<init>(ClaimProcessing.java:18)
at claim.gui.ProcessingTester.<init>(ProcessingTester.java:24)
at claim.gui.ProcessingTester.main(ProcessingTester.java:33)


DB

unread,
Jun 14, 2001, 11:30:27 AM6/14/01
to
I ran a quick test and duplicated your results when the call to internal
frame setVisible is made before the call to the top level container's
setVisible. Check your code to see if that will help.

Cheers
DB
"Tobias Rieke" <tri...@uni-muenster.de> wrote in message
news:9gad0j$19ce$1...@redenix.uni-muenster.de...

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Tobias Rieke

unread,
Jun 17, 2001, 2:48:24 PM6/17/01
to
Thanks, helped a lot.


"DB" <d...@noway.com> schrieb im Newsbeitrag news:3b28d80e$1...@Usenet.com...

0 new messages