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


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC x 1pc picture

Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC x 1pc

$30.00



MOS 8566R3 VIC-II E PAL-B C128 Commodore 64 Vintage IC x 1pc picture

MOS 8566R3 VIC-II E PAL-B C128 Commodore 64 Vintage IC x 1pc

$55.00



To Suit Holden Commodore 3 Button Car Remote Case/Shell Uncut Key VS VX VY VZ WH picture

To Suit Holden Commodore 3 Button Car Remote Case/Shell Uncut Key VS VX VY VZ WH

$11.99



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00







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