BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-28-2009, 04:11 PM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8310
PIN: N/A
Carrier: Rogers
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Java Newbie

Please Login to Remove!

I have 2 simple questions:
1) Is there a Grid control in J2ME for BB or I have to make my own? All I need is 3 columns of information loaded from a table.

2) I can not find how to have a border around a text field. Is that possible or do I have to create it using graphics?

Thanks
Offline  
Old 05-28-2009, 05:01 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

There is no grid control or grid layout - you have to invent it.

There is a BorderFactory in 4.6 and higher, but not on earlier releases.
Offline  
Old 05-28-2009, 09:20 PM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Model: 8310
PIN: N/A
Carrier: Rogers
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your response.

Is it possible to load and show 3 separate fields from a record in columns? Even if there is no line separating them. Something like this:

100 Something1 100.00
101 Something2 127.45
102 Something3 234.80
Offline  
Old 05-29-2009, 03:02 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look at HorizontalFieldManager and VerticalFieldManager
Offline  
Old 07-15-2009, 03:42 AM   #5 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8320
PIN: N/A
Carrier: Mobilink
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default I have the same problem

hi,
If you got your problem solved ,please let me know.
I need to get three coloumn from database and then have to put this data on screen.
i am using a horizontal field manager to hold these coloumns and taking three vertical fieldmanagers to hold each coloumn data.
everything is going fine except this.
I need to access the edit fields in coloumn three.
Any suggestions please!
Thanks & Regards
Offline  
Old 07-15-2009, 10:21 AM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

jackofall, what do you specifically mean by 'access'?
Offline  
Old 07-15-2009, 10:37 PM   #7 (permalink)
New Member
 
Join Date: Jul 2009
Model: 8320
PIN: N/A
Carrier: Mobilink
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default i mean EditField focus and their entered value!

hi bemshaswing,
Thanks for your reply,
i am pasting my code here again,
this may you to understand which mean to say.
I am just wondering, either i carry on with grid control or i need to change, bcoz i am not able to access the edit fields which i am creating here.


HorizontalFieldManager rowHolder = new HorizontalFieldManager(HorizontalFieldManager.VERT ICAL_SCROLL |
HorizontalFieldManager.NO_HORIZONTAL_SCROLL);


//We use 3 columns in this sample.
VerticalFieldManager rows[] = new VerticalFieldManager[3];

//Now lets add 3 columns of data
for (int count = 0; count < 3; ++count)
{
rows[count] = new VerticalFieldManager(VerticalFieldManager.NO_HORIZ ONTAL_SCROLL |
VerticalFieldManager.NO_VERTICAL_SCROLL);


if(count==0)
{
for (int rowCount = 0; rowCount <str_Data.length; rowCount=rowCount+2)
{
rows[count].add(new LabelField(str_Data[rowCount]+" ", LabelField.NON_FOCUSABLE));
}

}
if(count==1)
{
for (int rowCount = 1; rowCount <str_Data.length; rowCount=rowCount+2)
{
rows[count].add(new LabelField(str_Data[rowCount]+" ", LabelField.NON_FOCUSABLE));
}

}
if(count==2)
{
for (int rowCount = 0; rowCount <str_Data.length; rowCount=rowCount+2)
{
rows[count].add(new EditField("","",5,EditField.FILTER_NUMERIC));
}
}

//Add the row to the rowHolder.
rowHolder.add(rows[count]);
}
this.add(rowHolder);

//Search field

VerticalFieldManager vfManager = new VerticalFieldManager(VerticalFieldManager.NO_HORIZ ONTAL_SCROLL |
VerticalFieldManager.NO_VERTICAL_SCROLL);

vfManager.add(searchField);

vfManager.add(customerField);

this.setStatus(vfManager);
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

100 X GS109C RFT Germany Transistors PNP GS109 ~GS112 AC122 AC125
$14.0
100 X GS109C RFT Germany Transistors PNP GS109 ~GS112 AC122 AC125 picture100pcs Universal General Purpose BC547 NPN TO-92 Transistor 45V 0.1A Transistors
$6.09
100pcs Universal General Purpose BC547 NPN TO-92 Transistor 45V 0.1A Transistors picture20pcs. J310 N-CHAN JFET VHF/UHF TRANSISTOR
$4.5
20pcs. J310 N-CHAN JFET VHF/UHF TRANSISTOR  pictureNEW ORIGINAL TRANSISTOR STR441 SMT SAME DAY SHIPPING BOX#48
$1.95
NEW ORIGINAL TRANSISTOR  STR441 SMT SAME DAY SHIPPING  BOX#48 pictureNEW ORIGINAL TRANSISTOR STR454 SANKEN SAME DAY SHIPPING BOX#48
$3.95
NEW ORIGINAL TRANSISTOR  STR454 SANKEN SAME DAY SHIPPING  BOX#48 picture






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