🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12277

GridBagLayout weirdness!

#12277
From: Alex B. Humphreys
Date: Wed, 27 Jan 1999 00:00
16 lines
1281 bytes
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: <36AF35FC.60C3D4AD@sema4.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e77b8e33679e9888,start
X-Google-Attributes: gid111d45,public
From: "Alex B. Humphreys" <ahumphreys@sema4.com>
Subject: GridBagLayout weirdness!
Date: 1999/01/27
Message-ID: <36AF35FC.60C3D4AD@sema4.com>
X-Deja-AN: 437581595
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Semaphore, Inc.
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing