hi,
i am developing a form with three verticalfield manager to hold data like three coloumns and one horizontal field manager to hold these three fieldmanager's.
1.
This is working fine but there is no space between the data , i want to put some kind of vertical border with these three vertical field managers.
Obviously,i can put space in between , but i just want to check can i put border with each managers
2.
One of my VerticalFieldManager contain editfield in it , i am not able to access these , before that i was accessing them using this.getField
;
How can i do that?
Here is my code!
HorizontalFieldManager rowHolder = new HorizontalFieldManager(HorizontalFieldManager.VERT ICAL_SCROLL | HorizontalFieldManager.NO_HORIZONTAL_SCROLL);
//We use 3 columns here. VerticalFieldManager rows[] = new VerticalFieldManager[3];
//Now lets add 3 columns of data for (int count = 0; count < 3; ++count) { rows[count] = new VerticalFieldManager(VerticalFieldManager.NO_HORIZ ONTAL_SCROLL | VerticalFieldManager.NO_VERTICAL_SCROLL);
//Add 21 rows of data to the column
for (int rowCount = 0; rowCount <str_Data.length; rowCount=rowCount+2)
{
if(count==0)
{
rows[count].add(new LabelField(str_Data[count], LabelField.NON_FOCUSABLE));
}
if(count==1)
{
rows[count].add(new LabelField(str_Data[count], LabelField.NON_FOCUSABLE));
}
if(count==2)
{
for (int rowCount = 0; rowCount <str_Data.length; rowCount=rowCount+2)
{
rows[count].add(new EditField("","",5,EditField.FILTER_NUMERIC));
}
}
//Add the row to the rowHolder.
rowHolder.add(rows[count]);
}
this.add(rowHolder);
Thanks & Regards