Article View: borland.public.jbuilder.java.swing
Article #9120Re: JPanel not showing
From: Paul Furbacher [TeamB]
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
27 lines
1790 bytes
1790 bytes
Shabber Abbas wrote: > I have an overall JPanel , then a smaller JScrollPane on it , a JPanel > covering this whole scrollPane, a smaller JScrollPane on this JPanel, a > JPanel overing this JScrollPane, A smaller JPanel on this Panel, and > lastly a customized Panel that extends JPanel. My problem is that no > matter how I try this last Panel that I have customized does not appear > (i.e panel.setBackground(Color.yellow) has no effect) . > All of my layouts are XYLayouts for development purposes. > Can you please inform me of the problem. I don't see how there could be > a heavyweight over lowerweight problem because everything that I am > using is in Swing. Do you mean "nested in" when you write "covering"? (If you are really covering, then you are doing something which is pretty strange.) Can't really say without seeing the code. Assuming it was generated by JBuilder's Designer, why not post just the "jbInit()" code for the ___simplest___ case of this not working? Meaning, post code which contains no other UI elements, etc. in the method. (Good diagnosis/ debugging strategies start from the simplest and work toward the more complex examples.) Paul Furbacher (TeamB)
Technical Details
Message-ID:
<392EB7EA.C877CA56@home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<392E9A66.C2C21991@codetech.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9f2c385dedd655fb X-Google-Attributes: gid111d45,public From: "Paul Furbacher [TeamB]" <pnf@home.com> Subject: Re: JPanel not showing Date: 2000/05/26 Message-ID: <392EB7EA.C877CA56@home.com> X-Deja-AN: 627665500 Content-Transfer-Encoding: 7bit References: <392E9A66.C2C21991@codetech.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pnf@home.com Newsgroups: borland.public.jbuilder.java.swing