Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: GridBag Expansion OS X - PLEASE HELP!!!

Reply
Thread Tools

Re: GridBag Expansion OS X - PLEASE HELP!!!

 
 
Loki
Guest
Posts: n/a
 
      06-29-2003
Randomn is preciesly what it sounds like.

I am only 16 an having worked with java for the few years that I have my
understanding is rather lax. However, I have seen this problem happen
with a program like the following example

class fred
{
public static void main(String[] args)
{
Frame eric = new Frame("I'm eric");
GridBagLayout GBL = new GridBagLayout();
GridBagConstraints GBC = new GridBagConstraints();
eric.setLayout(GBL);

/*
* Frame, gridbag simple
*/

List list = new List();

/*
* List smpl
*/

GBC.gridx = 0;
GBC.gridy = 0;
GBC.gridwidth = 1;
GBC.gridheight = 1;
eric.add(list, GBC);

/*
* Simplest GridBagConstraints implementation
*/

eric.pack();
eric.show();
}
}

As you can see that is a very simple application and it has been known
to "Randomly" do such things

Suggestions????

Thanx

Loki

\0/ - Eureka
0 |
/|\ / \
/ \



 
Reply With Quote
 
 
 
 
rbs
Guest
Posts: n/a
 
      06-30-2003
In article <>, Loki <>
wrote:

> Suggestions????


Honestly?

Write your own layout manager.

I needed something with GridBagLayout's power but got so
frustrated with the seemingly random behavior of GBL itself
that I ended (a) using Google to search for a layout manager
that would accomplish what I wanted, (b) finding one that was
close but not quite what I needed, and then (c) eventually
using the "close" one as a model for writing my own.

Now if something odd happens in the layout I either know exactly
why or else can figure it out in less than 5 minutes.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gridbag layout asit Java 4 07-23-2009 08:05 PM
Expansion of the Sun X-Terminal Mod bigal Case Modding 85 11-07-2008 11:02 AM
Borlang JBuilder gridbag layout madness nukleus Java 2 01-31-2007 06:11 AM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM
Re: GridBag Expansion OS X - PLEASE HELP!!! Loki Java 1 06-29-2003 04:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57