Article View: borland.public.jbuilder.java.language
Article #17745Missing canvases if using GridBagLayout
From: Andre Stevenson
Date: Thu, 08 Oct 1998 00:00
Date: Thu, 08 Oct 1998 00:00
24 lines
1400 bytes
1400 bytes
Hi, I have a running program which reproduces 7 images as canvases. The container is an applet. (no panels etc ). If I use a GridLayout manager or FlowLayout manager then the images all appear. However when I use the GridBagLayout manager with all the required code ie. GridBagConstants...then the canvases/images do not appear. All the code examples are from various texts and compile without a problem. I have also tried instantiating an object of class Panel and adding the canvas objects. But if makes no difference. I need the GridBagLayout. Can someone suggest a "possible" solution or anything else to try. PS. I have tried to use setLayoutManager(null) and used setLocation to manually set the positions of theses oddsized canvases but again the images do not appear. I believe I'm missing some info here. Any help no matter how speculative would be apreciated. Andre Stevenson.
Technical Details
Message-ID:
<6vggtj$ns123@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,2d452e13393a2156 X-Google-Attributes: gidf74b3,public From: "Andre Stevenson" <p.stevenson@elvis.murdoch.edu.au> Subject: Missing canvases if using GridBagLayout Date: 1998/10/08 Message-ID: <6vggtj$ns123@forums.borland.com> X-Deja-AN: 398743275 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: borland.public.jbuilder.java.language