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

REPOST: Problem with JTabbedPane

0 views
Skip to first unread message

Chemba Ranganathan

unread,
Jan 27, 2002, 10:45:56 PM1/27/02
to
Hi,
I have a problem with the JTabbedPane in java on Solaris. When the number
of tabs exceeds 6 or 7 (basically when it automatically readjusts the tabs
to fit in two rows) I get java.lang.ArrayIndexOutOfBoundsException. This
exception does not occur on WinNT. The exception is consistent but my
display works fine.. meaning everything on the gui is as expected ..while
the console is flodded with this message.
Please get back to me if you know of anything that could cause this problem.

Iam using J2SE ( 1.3.1). In my code, I am using event listener function of
its container to add TabbedPanes. I seem to get the following exception
during painting. If I try to catch all exceptions in my event listener code
it doesn't seem to work.Is this a known issue with JTabbedPane?
Any response is appreciated
Chemba
------------------------------ATTACHED SCREEN SHOT------------------
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException
at
javax.swing.plaf.basic.BasicTabbedPaneUI.paint(BasicTabbedPaneUI.java:343)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:39)
at javax.swing.JComponent.paintComponent(JComponent.java:395)
at javax.swing.JComponent.paint(JComponent.java:687)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
at javax.swing.JComponent.paint(JComponent.java:696)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
at javax.swing.JComponent.paint(JComponent.java:696)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
at javax.swing.JComponent.paint(JComponent.java:696)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
at javax.swing.JComponent.paint(JComponent.java:696)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
at javax.swing.JComponent.paint(JComponent.java:696)
at javax.swing.JViewport.paint(JViewport.java:668)
at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQu
eueUtilities.java:124)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

========= WAS CANCELLED BY =======:
From: "Chemba Ranganathan" <chem...@yahoo.com>
Control: cancel <1012189936.111525@sj-nntpcache-3>
Subject: cmsg cancel <1012189936.111525@sj-nntpcache-3>
Date: Mon, 28 Jan 2002 03:50:30 GMT
Message-ID: <cancel.1012189936.111525@sj-nntpcache-3>
X-No-Archive: yes
Newsgroups: microsoft.test,alt.flame.niggers,comp.lang.java.programmer
NNTP-Posting-Host: w088.z064003087.lax-ca.dsl.cnc.net 64.3.87.88
Lines: 1
Path: news.uni-stuttgart.de!dns.phoenix-ag.de!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!newsfeed.freenet.de!peer.news.opaltelecom.net!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!sjc-feed.news.verio.net!sea-feed.news.verio.net!news.verio.net!msrnewsc1!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp07!u&n&a&c&anceller
Xref: news.uni-stuttgart.de control:40734066

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers.

Chris Breemer

unread,
Feb 1, 2002, 10:21:22 AM2/1/02
to
Chemba Ranganathan wrote:
>
> Hi,
> I have a problem with the JTabbedPane in java on Solaris. When the number
> of tabs exceeds 6 or 7 (basically when it automatically readjusts the tabs
> to fit in two rows) I get java.lang.ArrayIndexOutOfBoundsException. This
> exception does not occur on WinNT. The exception is consistent but my
> display works fine.. meaning everything on the gui is as expected ..while
> the console is flodded with this message.
> Please get back to me if you know of anything that could cause this problem.
>
> Iam using J2SE ( 1.3.1). In my code, I am using event listener function of
> its container to add TabbedPanes. I seem to get the following exception
> during painting. If I try to catch all exceptions in my event listener code
> it doesn't seem to work.Is this a known issue with JTabbedPane?

Not sure how lightweight JTabbedPane is, but if it's using native peer
widgets (i.e. Motif or OpenLook), perhaps there is a limitation in
there.
This would explain why it does not occur on Windows.
Otherwise, no clue, sorry.
--
Best regards,

Chris Breemer

Martin Roos

unread,
Feb 2, 2002, 4:43:47 AM2/2/02
to
Chris Breemer wrote:

hmmm ...
i've seen like 10+ tabs on jtabbedpane on linux and on windows ... this can't be
a
problem of the jtabbedpane ... maybe it's kind of event handling difference ...
try to examine the stack trace


0 new messages