Setting cell height of a List problem

21 views
Skip to first unread message

Ludovic Bas

unread,
Apr 3, 2013, 12:10:38 PM4/3/13
to aswing-...@googlegroups.com
Hello,

I'm new to aswing and I'm currently trying to use the JList.
By default, the cell height equal 100.

So, in the following list, all my cells height equal 100 :

var list:JList = new JList(['http://www.google.fr', 'http://www.google.fr']);

But, it's really too high for just a link, so I've tried to set the cell's height to 30 like this :


var list:JList = new JList(['http://www.google.fr', 'http://www.google.fr'],new DefaultListTextCellFactory(DefaultListCell,true,true,30));


So, this is working but my link just disappeared (all my cells are blank) ! Please tell me what I've done wrong ?


Thanks.

white skill

unread,
Sep 27, 2013, 10:52:20 PM9/27/13
to aswing-...@googlegroups.com
check cells' layout. and, there is a api like "cellsSameHeight" to take control.
Reply all
Reply to author
Forward
0 new messages