Article View: borland.public.jbuilder.java.swing
Article #11652Re: JBuilder designer : JTabbedPane ?
From: Sohan Mendis
Date: Thu, 15 Apr 1999 00:00
Date: Thu, 15 Apr 1999 00:00
61 lines
2882 bytes
2882 bytes
I tried in JBuilder3 which uses JDK1.2. I am getting this exception when I incorporate my bean just derived from JTabbedPane and try to run. Even in the designer I cannt see the tabs eventhough i added panels to it. // Exception occurred during event dispatching: java.lang.ClassCastException: com.borland.jbcl.layout.XYLayout at javax.swing.plaf.basic.BasicTabbedPaneUI.ensureCurrentLayout(BasicTabbedPane UI.java:757) at javax.swing.plaf.basic.BasicTabbedPaneUI.paint(BasicTabbedPaneUI.java:350) at javax.swing.plaf.ComponentUI.update(Compiled Code) at javax.swing.JComponent.paintComponent(Compiled Code) at javax.swing.JComponent.paint(Compiled Code) at javax.swing.JComponent.paintChildren(Compiled Code) at javax.swing.JComponent.paint(Compiled Code) ......... // I am really confussed ? Richard Wilkman <rwilkman@inprise.com> wrote in message news:3714BCA9.69207E9B@inprise.com... > Sohan: > > Sounds like a typical problem from mixing heavyweight and lightweight > components. > > At runtime, however, you may want to use Swing 1.03. It contains a > lot of fixes for JTabbedPane and JTable that make things work so much > better. It won't solve the problem with heavyweight and lightweight > components, but it takes care of a whole boatload of other problems. > > -Rich > > Sohan Mendis wrote: > > > > I have created a bean extending JTabbedPane. To introduce tabs , at the > > designer I added several JPanels and then Put some buttonson panels. In the > > designer everything seems OK. But when I run it , I can see tabs and can > > switch tabs, but I cannt see and buttons that i put on those panel. I try > > making the move first in the designer . Doesnt seem working. > > > > Whats wrong ? Could that be a JBuilder designer problem ? > > -- > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Rich Wilkman > Senior Quality Assurance Engineer > Borland JBuilder Team > > If you see something that looks like an opinion up there, > it's mine and mine alone. > > Mail sent to me from the newsgroups won't bounce but will > be ignored. If I have time, I'll respond, but you have > a better chance if you confine your posts to the newsgroups > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<7f3fc0$h8k9@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7f0st5$erb16@forums.borland.com> <3714BCA9.69207E9B@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,188d7b190cceec05 X-Google-Attributes: gid111d45,public From: "Sohan Mendis" <sohan@maxtrak.com> Subject: Re: JBuilder designer : JTabbedPane ? Date: 1999/04/15 Message-ID: <7f3fc0$h8k9@forums.borland.com> X-Deja-AN: 466535967 References: <7f0st5$erb16@forums.borland.com> <3714BCA9.69207E9B@inprise.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing