Article View: borland.public.jbuilder.java.swing
Article #10889Re: Problem with JSplitPane or CardLayout or.....
From: Lois Neo
Date: Tue, 03 Aug 1999 00:00
Date: Tue, 03 Aug 1999 00:00
47 lines
2266 bytes
2266 bytes
I've found out the cause of the problem, but don't know why. The cause is the border that I've set on some of the panels. I've used myPanel.setBorder(BorderFactory.createLowerBevelBorder()) to set border styles, but strangely I need to remove the last 2 calls of that method in my app. the 2 calls I removed are: // propertiesPanel.setBorder(BorderFactory.createLoweredBevelBorder()); // trialPropertyPanel.setBorder(BorderFactory.createLoweredBevelBorder()); and my panel is now displaying correctly. If anyone know why createLoweredBevelBorder() could cause this kind of problem, please enlighten me. -- Thanks for any help given Lois Lois Neo <slneo@cybergal.com> wrote in message news:7o1u45$hms5@forums.borland.com... > Hi, > > Currently, I'm encountering a problem and I don't know what it's due to. > Basically, I have a panel whose layout is CardLayout and I have added 2 > own-created objects which are sub-classes of JPanel. Both of them are of the > same class, TrialPanel, but with subtle difference in attribute values. > I would like to switch between these 2 TrialPanels using the CardLayout. I > can switch them no problem but the problem is, the second on I add to the > CardLayout is not displayed correctly. > On both TrialPanels, there should be a JSplitPane with a JTable and a JTree > on it. On first TrialPanel I can see all 3, but on the second one, I can > only see the JTree. > > I have enclosed some sample to demonstrate the problem. > I would appreciate very much if somebody could help me with this problem. > (p.s. I'm using JDK1.2.1) > -- > Thanks in advance > > Lois > > >
Technical Details
Message-ID:
<7o68ok$lak12@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7o1u45$hms5@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2bababe7e01e757f,start X-Google-Attributes: gid111d45,public From: "Lois Neo" <slneo@cybergal.com> Subject: Re: Problem with JSplitPane or CardLayout or..... Date: 1999/08/03 Message-ID: <7o68ok$lak12@forums.borland.com> X-Deja-AN: 508285422 References: <7o1u45$hms5@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Lois Neo" <slneo@cybergal.com> Newsgroups: borland.public.jbuilder.java.swing