Article View: borland.public.jbuilder.java.swing
Article #12344Re: JFrame causes custom container not to display
From: Tom Ranz
Date: Mon, 25 Jan 1999 00:00
Date: Mon, 25 Jan 1999 00:00
25 lines
1407 bytes
1407 bytes
I think I have a solution. First, I had a JFrame that I was adding a container of components to (ContentPane). If I changed to Frame it worked?!! However, by using the JFrame and adding the components to the LayeredPane not in the original container this also worked, and seems to be the best solution overall. Tom Tom Ranz wrote: > Hi, > > I am using code from the new book Graphic Java 1.2 > > I am utilizing a DubbleBufferedContainer example which basically works > fine except that in the end the JFrame covers the display of the > double-buffered container. I can place a delay at the end of the > Container's paint method and for that delay the Frame looks perfect but > when I return from the method the Frame sits on the display again; just > a gray frame. > > Any help appreciated! > > Tom
Technical Details
Message-ID:
<36AC8752.70EE1E6D@mindspring.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36AB6898.DBE53246@mindspring.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f0aa4f50121f53e3 X-Google-Attributes: gid111d45,public From: Tom Ranz <teranz@mindspring.com> Subject: Re: JFrame causes custom container not to display Date: 1999/01/25 Message-ID: <36AC8752.70EE1E6D@mindspring.com> X-Deja-AN: 436695099 Content-Transfer-Encoding: 7bit References: <36AB6898.DBE53246@mindspring.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing