Scrollabel table in my
Please Login to Remove!
hi guys .....i want a scrollabel table in my application ,which will appear at only lower half portion of screen...to do this i used this code ...
private class TableRowManager extends Manager
{
public TableRowManager(Field[] rowContents)
{
super( Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
for (int col = 0; col < rowContents.length; col++) {
add(rowContents[col]);
}
}
protected void sublayout(int width, int height)
{
for (int col = 0; col < getFieldCount(); col++) {
Field curCellField = getField(col);
layoutChild(curCellField, _columnWidths[col],
getPreferredHeight());
setPositionChild(curCellField, getColumnStart(col), 0);
}
setExtent(getPreferredWidth(), 30);
}
}
now the problem is ...the table is creating but it is not scrolling ..
i want to make it scrollable ,irrespective of main screen.....also i wanna give table a specific height,so rows which can accommodate in this height will be visible ,and to get other rows user has to scroll down.
any suggestions.?
|