BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-24-2009, 01:23 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Used Schneider CPU BMXP342020 Tested In Good Condition DHL Free
$647.93
Used Schneider CPU BMXP342020 Tested In Good Condition DHL Free picture1pc Used Schneider Electric Processor Modicon Premuim TSX P573623M TSXP573623M
$770.0
1pc Used Schneider Electric Processor Modicon Premuim TSX P573623M TSXP573623M pictureNeat-612 Rev:C2 Full Length CPU Single Board Computer **Brand New In Box**
$99.99
Neat-612 Rev:C2 Full Length CPU  Single Board Computer **Brand New In Box** picture1PC Used B&R 3IF260.60-1 2005 CPU or programmable interface processors
$1875.0
1PC Used B&R 3IF260.60-1 2005 CPU or programmable interface processors pictureSiemens Simatic S5 PLC Processor / Controller 6ES5 943-7UA11
$118.36
Siemens Simatic S5 PLC Processor / Controller 6ES5 943-7UA11 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.