[Date Prev][Date Next][Index][Thread]
[SGT Mail Archive]
[SGT Main Page]
problems with SGT
*************************************************
Message from the sgt mail list.
*************************************************
HI,
I've downloaded SGT V2.0 in order to use it. There is no problem in viewing the JRealTimeDemo in a JFrame, but now, if I try to open the same demo in a JInternalFrame (and I need that !), that's doesn't work at all, and I have the following error message :
java.lang.NullPointerException
at gov.noaa.pmel.sgt.PaneProxy.draw(PaneProxy.java:115)
at gov.noaa.pmel.sgt.PaneProxy.setBatch(PaneProxy.java:740)
at gov.noaa.pmel.sgt.JPane.setBatch(JPane.java:578)
at gov.noaa.pmel.sgt.demo.JRealTimeDemo.<init>(JRealTimeDemo.java:52)
at gov.noaa.pmel.sgt.demo.JRealTimeDemo.main(JRealTimeDemo.java:56)
Looking in paneProxy, I've seen that the draw() method couldn't work because of the instruction :
Graphics g = pane_.getGraphics which gives null with a JInternalFrame, whereas she gives an object of type sun.awt.windows.WGraphics with a JFrame.
Can you help me, or explain me where my error comes from, or how to resolve it ?
Sincerly yours,
Fabienne Lagarrue
----- La messagerie itinérante sans abonnement NetCourrier -----
Web : www.netcourrier.com - Minitel : 3615 NETCOURRIER
Téléphone : 08 36 69 00 21
*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.