[ale] OT another Java question

Mazukna, Thomas Thomas.Mazukna at delta.com
Tue Nov 26 08:50:06 EST 2002


There are still too many unanswered questions to provide the answer, but I
can give you couple paths to search......

1. panel's default layout manager is flowlayout
2. Does MyPanel implements add method with String and FieldA as parameters?


if you can send me some more code I can be more specific, but my guess is
that fields are placed not inside a table whichis inside the panel, but
inside the panel using flowlayout manager, so they are put in a row starting
at the top. You should overide add method for Mypanel, so place stuff inside
the table, but anyway I may be wrong and something else can be wrong ....
awt is tricky stuff witha ll these layout managers :)

we can take this offline.
Tomas


-----Original Message-----
From: Geoffrey [mailto:esoteric at 3times25.net]
To: ale at ale.org
Sent: Monday, November 25, 2002 10:14 PM
To: ALE
Subject: [ale] OT another Java question


Okay folks this one's been driving me crazy.  Here's the poop.  Got some 
code that has a class:

public class MyPanel extends Panel {}

Basically builds a panel that has a table, look multiple cells.

Existing code does the following to create a panel and place items in 
the cells:

MyPanel p1;

p1 = new MyPanel(10,3,rowHeading, colHeading);
this.add("3,270,388,320", p1);
initNewPanel(p1);

// adds a text field

p1.add("145,40.120,30", FieldA);


First I can't find this 'variation' of add() anywhere.

Further, I retain this code with the exception of removing the 
'initNewPanel()' which just sets up the foreground/background color.  I 
omit it because initNewPanel() is in a class we are no longer using.

Anyway, the same code produces the FieldA in the wrong place on the 
panel, and further, it appears that no mather what values I pass to the 
add() the field always shows up in the same place, and same size (which 
is wrong as well.


The main problem is I need to use MyPanel because of the way it builds 
the table.

Any assistance would be appreciated.

-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list