Article View: borland.public.jbuilder.java.swing
Article #7670Problem: GridBagLayout, JBuilder Designer and JDK1.1+Swing1.1.1
From: Stefan Michel
Date: Fri, 22 Dec 2000 09:00
Date: Fri, 22 Dec 2000 09:00
37 lines
2119 bytes
2119 bytes
Hi! Our application needs to run under JDK 1.2/1.3 and JDK1.1 + Swing1.1.1. (customer requirement) We can not find a way to develop swing applications with GridBagLayout using the designer of JBuilder 4. The problem is that the designer generates code using java.awt.GridBagConstraints with a constructor only available since JDK1.2: JDK1.3 (Designer of JBuilder 4.0): this.add(pnlPrimary, new GridBagConstraints(0, 0, 2, 1, 1.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 10, 10), 0, 0)); This Code can not be run under JDK1.1 +Swing!!! When changing the JDK to 1.1 and adding the external swing packages to the project the designer, we still can develop with the Designer but the generated code is not complete: JDK 1.1.8: this.add(jButton1); The GridBagConstraints settings are simple omitted, so the GUI looks strange :-( (In addition there are some NullPointerExceptions in the message tab) I think GridBagLayout is one of the most widely used layouts, so this is a serious problem. Does anybody have a solution for this problem ? Thanks in advance Stefan ------------------------------- Stefan Michel michel_work@gmx.de
Technical Details
Message-ID:
<3A431810.2050308@gmx.de>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bafc7d7328bb0349,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-22 01:02:44 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: Stefan Michel <michel_work@gmx.de> Newsgroups: borland.public.jbuilder.java.swing Subject: Problem: GridBagLayout, JBuilder Designer and JDK1.1+Swing1.1.1 Date: Fri, 22 Dec 2000 10:00:00 +0100 Organization: Another Netscape Collabra Server User Lines: 39 Message-ID: <3A431810.2050308@gmx.de> NNTP-Posting-Host: dialup29-23.access.nacamar.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.6) Gecko/20001205 X-Accept-Language: en, de-de, fr-fr, ru