misalignment of list items
Hello All,
My code reads like this. I have used the AWT
Code :
list l = new List(50, true);
add(list);
--
---
--
for (int i =0; int i < cnt; i++)
l.add( name[i] + " " + initial[i] + " " + address[i] +" "+ .............);
}
My problem is when it displays the list, the items alignment is lost. Each field displays at different location in due to the different sizes of the previous field. like below
johnmichael tester street10
George verky Ganeshmandhir
Ram Goenka location1
Can anyone suggest how to fix the problem.
thanks
Re: misalignment of list items
If I understand the problem correctly you can display the data in a JTable and the alignment will be specified by the table itself
Re: misalignment of list items