BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-26-2008, 03:52 AM   #1
amila
New Member
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: DEVELOPING
Posts: 11
Smile Does any body knows how to create a combobox in JDE

Please Login to Remove!

Does any body have jave code to create combobox to Black Berry plese post them
Offline  
Old 09-26-2008, 04:02 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

Have you tries ObjectChoiceField?

Its somewhat similar to combobox.
Offline  
Old 09-26-2008, 04:04 AM   #3
amila
New Member
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: DEVELOPING
Posts: 11
Default

yes, But we cant get exact look and feel from ObjectChoiceField
Offline  
Old 09-26-2008, 11:33 AM   #4
sajika
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8310
PIN: N/A
Carrier: ATT
Posts: 17
Default

What kind of look and feel are you looking for ? Do you want something like in windows, with a border and an arrow on the right?
Offline  
Old 09-28-2008, 10:49 PM   #5
amila
New Member
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: DEVELOPING
Posts: 11
Default

Yas, I want windows look and feel for combobox
Offline  
Old 09-29-2008, 08:15 AM   #6
sajika
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 8310
PIN: N/A
Carrier: ATT
Posts: 17
Default

You need to extend the ObjectChoiceField and overide the layout and paint methods. Not a trivial task, if you ask me.
Offline  
Old 02-02-2009, 12:08 PM   #7
koic
Thumbs Must Hurt
 
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 64
Default

As far as I understood the problem, ObjectChoiceField internally adjusts Label to the left and Field with 'choices' to the right.
Plus Label allocates half of the width of the whole ObjectChoiceField, the other half is for Choices.
So even if the Label is set to null Choices will appear on the right side of the screen.
The other problem related to this issue is that the width of ObjectChoiceField is set to max value, for example 320.
That is why one has to override layout(int, int) and paint(Graphics).
RIM UI Gurus correct me if I am wrong
Offline  
Old 02-03-2009, 03:43 AM   #8
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

Quote:
Originally Posted by koic View Post
RIM UI Gurus correct me if I am wrong
quite good for your first post, keep it coming
__________________
java developer, Devinto, hamburg/germany
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


Schneider Electric Energy Server EBX510 Server For Energy Management- picture

Schneider Electric Energy Server EBX510 Server For Energy Management-

$4350.00



SERVER TECHNOLOGY 4870-XLS-44 SENTRY VDC 48VOLT DC REMOTE POWER MANAGER picture

SERVER TECHNOLOGY 4870-XLS-44 SENTRY VDC 48VOLT DC REMOTE POWER MANAGER

$299.99



FANUC Server Driver A06B-6077-H111 picture

FANUC Server Driver A06B-6077-H111

$2158.86



FANUC Server Driver A06B-6117-H211 picture

FANUC Server Driver A06B-6117-H211

$3993.99



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



Moxa NPort 6610-8 8-Port Secure Device Server 6610-8/US V1.6 NEW (OV137) picture

Moxa NPort 6610-8 8-Port Secure Device Server 6610-8/US V1.6 NEW (OV137)

$899.99







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