Layout with Kawt
Hi there...
what is the best way to layout components by means of Kawt?
I want to make a database. So there are many labels and many TextFields, which should be near one another like this
Label:_
Label2: _
and so on...
Can anyone tell me how to do this.
I tried GridLayout, but it looks like this:
Label: __
Label2:__
So can you help me
thx.
Charly
[434 byte] By [
JebeDiAH] at [2007-9-26 15:39:05]

[JebeDiAH],
The requirements for your application can be met by using the Item abstract class and using the TextField subclass to place it on a Form object. This will eliminate the need to use kAWT unless you have specific needs that cannot be met by the CLDC/MIDP 1.0 specification.
May I assume you are writing J2ME applications for the Palm OS device?
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/
When you create a grid layout you can make this:
Panel p;
p.setLayout(new GridLayout(3,2));
Label lbl1;
lbl1=new Label("-label 1-");
p.add(lbl1);
lbl1=new Label("-label 2-");
p.add(lbl1);
lbl1=new Label("-label 3-");
p.add(lbl1);