Article View: borland.public.jbuilder.java.swing
Article #8206Problem with TableScrollpane
From: Maciej Ko�odziej
Date: Fri, 13 Oct 2000 00:00
Date: Fri, 13 Oct 2000 00:00
47 lines
2837 bytes
2837 bytes
Hi,
The problem is, I guess, with TableScrollPane repainting method. As far as I
know it keeps it's last visible area in an Image object in JViewport, at
least when appropriate option is set.When I open one of my application's
windows, I get an NullPointerException (given below). Strange thing is, that
this happens only in one window ( and there are about 40 others) and only on
Windows 98 OS. I haven't noticed it neither on Windows NT 4.0 nor Windows
2000 Pro.
Even when I changed that repainting option to the one not using Image to
cache it's visible area, I got the same exception. Than what is the
solution?
ANY help would be appreciated.
Here is that exception:
--------------------------------
Exception occurred during event dispatching:
java.lang.NullPointerException
at sun.awt.image.BufferedImageGraphics2D.drawImage(Unknown Source)
at javax.swing.JViewport.paintViaBackingStore(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintWithBuffer(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
---------------------------------
Thanks in advance,
Maciej Kolodziej
Technical Details
Message-ID:
<8s6stt$4bd6@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,51e181fca6ddf7bc,start X-Google-Attributes: gid111d45,public From: "Maciej Ko�odziej" <Maciej.Kolodziej@comarch.pl> Subject: Problem with TableScrollpane Date: 2000/10/13 Message-ID: <8s6stt$4bd6@bornews.borland.com> X-Deja-AN: 680971281 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing