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)
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
"DB" <d...@noway.com> schrieb im Newsbeitrag news:3b28d80e$1...@Usenet.com...