Article View: borland.public.jbuilder.java.swing
Article #12283Re: GridBagLayout weirdness!
From: Matt Krevs
Date: Thu, 28 Jan 1999 00:00
Date: Thu, 28 Jan 1999 00:00
23 lines
1524 bytes
1524 bytes
Could you post your code? GridBagLayout can get pretty funky. Often the problem is caused by the constraints of another seemingly unrelated component. Alex B. Humphreys wrote in message <36AF35FC.60C3D4AD@sema4.com>... >I have a bevel panel on a JFrame with some buttons and a >TransparentImage at the top and a tabsetpanel underneath. The panel >uses GridBagLayout. On one of the tabs (which also uses gridbaglayout), >I have a grid. Now here's the weird thing: when I assign columns to >the grid (either by grid.setColumns() or dataSet.setColumns() and >grid.setDataSet()), the image at the top of my frame disappears!!!!! >(Actually it shrinks down to 1X1 pixel) > >What could be going on? Why are these things related? And how can I >fix/workaround this problem?!? Thanks! > >The image is being placed on the screen with: > > big_bpanel.add(myImg, new GridBagConstraints2(8, 0, 1, 1, 1.0, 0.0 > ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new >Insets(3, 0, 0, 0), 0, 0)); > >
Technical Details
Message-ID:
<78o24a$2sl4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36AF35FC.60C3D4AD@sema4.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e77b8e33679e9888 X-Google-Attributes: gid111d45,public From: "Matt Krevs" <mattkrevs@flex.com.au> Subject: Re: GridBagLayout weirdness! Date: 1999/01/28 Message-ID: <78o24a$2sl4@forums.borland.com> X-Deja-AN: 437683589 References: <36AF35FC.60C3D4AD@sema4.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing