I dont know about 1.2.2, Sun is no releaseing any Non-Commercial source releases
to me anymore.

In one of my followup messages  I did offer to supply the code, and point u to
the part that has gone awol. I did not get an answer. Nor did I get an answer to
this msg I posted. :-/

Its unfortunate that u, or SUN do not have  these books that are publish - well
by sun. It does help in explaining how gridbaglayout works ( but not always, as
it falls short on some features ). I would think that u'd folks get a copy when
it appears that the 'bug' fixing committee doesn't understand some of java
features. It is particularily annoying when u suggest that I RTFM, when u wont
bother looking up ur own manuals.!

gat
BTW its not ur fault that layout is, or appears, to be a magical art.


chamness wrote:

> Uncle,
> Try as I might, I can't test your code. It is an incomplete
> code sample.  The field 'users' is not declared, as is
> 'buttonpanel'.  I'm guessing that both of these are Panels.
> I also don't have your ButtonPanel class.  The size of the
> Frame (or Panel) is also necessary, since this effects the layout.
>
> I presume that you are using jdk1.2 since you refer to the
> book, "graphic Java1.2"  Does this bug still exist in jdk1.2.2 ?
>
> Unfortunately, we don't have this book.
>
> Mark Chamness
>
> ----------------- Original Bug Report-------------------
>
> category : java
> subcategory : classes_awt
> type : bug
> synopsis : Tried to submit a bugreport on grigbaglayout
> description : [gat@kodak gat]$ java -version
> java version "1.1.8"
> [gat@kodak gat]$
>
> Thanks, maybe u wanna look at "graphic Java1.2 - mastering the JFC third
> edition"
> Components, Containers, and Layout Managers ~pg 381
>
> chamness wrote:
>
> > Uncle,
> > Looks like you are re-using the object gbc for
> > all components you add.  This will cause behavior
> > you probably don't intend.
> >
> > I suggest you check out the java tutorial on java.sun.com
> > and the swing examples.
> >
> > The type of support you are requesting can be found through two
> > services provided by Sun.
> >
> > Java Developer Connection - http://java.sun.com/jdc,
> > a free service which provides:
> >    Access to technical support, and technical question and answer
> >    database.
> >
> >    Online discussion forums with JavaSoft engineers, and regular
> >    weekly office hours with JavaSoft staff.
> >
> >    Information about Java, including technical articles, training
> >    courses, regular columns, and programming tips and techniques.
> >
> >    Product Discounts
> >
> > Sun Developer Support - http://sunservice.usec.sun.com,
> > a paid service which provides:
> >    Online and telephone support services with an array of packaging
> >    options and delivery methods.
> >
> > Mark Chamness
> >
> > ----------------- Original Bug Report-------------------
> >
> > category : java
> > subcategory : classes_awt
> > type : bug
> > synopsis : GridBagLayout does wrong layout ( or cannot undo REMAINDER )
> > description : tried to create a layout of:
> >
> > List    label   Textfield
> > list    label   textfield
> > list    button botton button
> >
> > but appearently I ( unexpectedly get )
> > List    Label
> > list    TextField
> > List    Label
> > List    Textfield
> > List    button button button
> >
> > I am at a loss at understanding why I cant get textfield Label on same line
> :-(
> >
> >         List            lHost = new List( 5 );
> >         Label           lHostName = new Label("Hostname");
> >         Label           lHostAddress = new Label("HostAddress");
> >         TextField       tfHostName = new TextField(20);
> >         TextField       tfHostAddress = new TextField(20);
> >         Button          bAdd = new Button( "Add" );
> >         Button          bRename = new Button( "Rename" );
> >         Button          bDelete = new Button( "Delete" );
> >         ButtonPanel     bpUsers = new ButtonPanel();
> >
> > .
> > .
> > .
> >
> >                 setLayout( new BorderLayout() );
> >
> >                 GridBagLayout       gbl = new GridBagLayout();
> >                 GridBagConstraints  gbc = new GridBagConstraints();
> >                 users.setLayout( gbl );
> >
> >                 gbc.anchor = GridBagConstraints.NORTHWEST;
> >                 gbc.gridheight = GridBagConstraints.REMAINDER;
> >                 gbc.fill = GridBagConstraints.VERTICAL;
> >                 users.add( lHost, gbc );
> >
> >                 gbc.gridheight = 1;
> >                 gbc.gridwidth = 1;
> >                 gbc.fill = GridBagConstraints.NONE;
> >                 users.add( lHostName, gbc );
> >                 gbc.gridwidth = GridBagConstraints.REMAINDER;
> >                 users.add( tfHostName, gbc );
> >                 gbc.gridwidth = 1;
> >                 users.add( lHostAddress, gbc );
> >                 gbc.gridwidth = GridBagConstraints.REMAINDER;
> >                 users.add( tfHostAddress, gbc );
> >
> >                 bpUsers.add( bAdd );
> >                 bpUsers.add( bRename );
> >                 bpUsers.add( bDelete );
> >                 users.add( bpUsers, gbc );
> >
> >                 buttonpanel.add( Ok );
> >                 buttonpanel.add( Cancel );
> >                 add( buttonpanel, "South" );
> > workaround : none, except feature it
> > suggested_val :
> > cust_name : Uncle George
> > cust_email : [EMAIL PROTECTED]
> > jdcid : gat
> > keyword : webbug
> > company : other
> > release : 1.1.8
> > hardware : generic
> > OSversion : generic
> > priority : 4
> > bugtraqID : 0
> > dateCreated : 1999-10-20 05:55:30.0
> > dateEvaluated : 1999-11-11 18:42:37
> workaround :
> suggested_val :
> cust_name : Uncle George
> cust_email : [EMAIL PROTECTED]
> jdcid : gat
> keyword : webbug
> company : other
> release : 1.1.8
> hardware : generic
> OSversion : generic
> priority : 4
> bugtraqID : 0
> dateCreated : 1999-11-25 07:04:13.0
> dateEvaluated : 1999-11-27 19:15:50


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to