BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-24-2009, 01:23 AM   #1
abhiyenta
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: 8120
PIN: N/A
Carrier: gmail
Posts: 18
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


5Pcs 1000V 50A Metal Case Single Phase Diode Bridge Rectifier KBPC5010 5X picture

5Pcs 1000V 50A Metal Case Single Phase Diode Bridge Rectifier KBPC5010 5X

$9.89



Regulator Rectifier 4VV-H1960-01-00 for Yamaha Scooters Zuma II CW50 1997-2001 picture

Regulator Rectifier 4VV-H1960-01-00 for Yamaha Scooters Zuma II CW50 1997-2001

$26.50



5x Diode Bridge Rectifier 1000V 4-Pin AC-DC Single Phase Metal 15A/25A/35A/50A picture

5x Diode Bridge Rectifier 1000V 4-Pin AC-DC Single Phase Metal 15A/25A/35A/50A

$9.95



2 Pcs KBU808 Bridge Rectifier | KBU808 Bridge Rectifier 800V 8A | US Ship picture

2 Pcs KBU808 Bridge Rectifier | KBU808 Bridge Rectifier 800V 8A | US Ship

$7.98



5PCS 6A10, 10A10, 20A10 | 1000V 1KV Axial Rectifier Diode Solar or GP | US Ship picture

5PCS 6A10, 10A10, 20A10 | 1000V 1KV Axial Rectifier Diode Solar or GP | US Ship

$7.32



5/10Pcs 1000V 50A Metal Case Single Phase Diode Bridge Rectifier KBPC5010 picture

5/10Pcs 1000V 50A Metal Case Single Phase Diode Bridge Rectifier KBPC5010

$10.75







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