JavaFX - ComboBox [Mobile]

JavaFX 1.3 introduces many new controls.
Please use ChoiceBox, MenuButton or SplitMenuButton

Its more almost 6 months since I implemented a sample ComboBox using Control and Skin interface. There is lot of interest for proper implementation of this control. This post is still among my top posts. So thought of enhancing the implementation a bit so as to make it work on real mobile!

<script src=""></script> <script src="/rakeshmenonp/resource/ComboBox/ComboBox.js"></script>

For Applet mode, click on above image

For standalone mode

I could also run this sample on Sony-Ericsson XPERIA

Try this new version and let me know feedback


Nice Rakesh.

Applet size is looking little small in the top applet. Some combo stuff is going out of the applet.

Posted by Vaibhav Choudhary on November 27, 2009 at 04:26 AM IST #

Hi Rakesh,
Thanks for providing the latest sources.
I have taken latest source and installed on ASUS(Windows Mobile 6.0). I am facing the same problem.
I am using
NetBeans IDE 6.7
JavaFX 1.2
ASUS(Windows Mobile 6.0)

I build the combobox application on Netbeans 6.7 and installed the jar on mobile. No output.

Posted by Siva on November 27, 2009 at 04:46 AM IST #

@Siva are you able to launch default demos available in JavaFX for Windows Mobile (EA)?

Posted by Rakesh Menon on November 30, 2009 at 03:32 AM IST #

Hi Rakesh,

I am able run the default demos and some other application (which developed by me) on JavaFX for Windows Mobile(EA).

Posted by Siva on November 30, 2009 at 09:20 AM IST #

Hi all, I'm facing the same problem for all my mobile javaFX apps. The rendering in a real windows mobile envt is very small and not workable

Posted by clob on December 09, 2009 at 01:15 PM IST #

Hi Rakesh,

You are having excellent posts in JavaFX. I am working on a very unique JavaFX applet and would like to know if its possible for JavaFX applet to interact with the current IE APIs (signed applet). I would like to add listeners IE to capture user actions (for web automation), import bookmarks/favs, close/open toolbar/Explorer bar etc.

Do you have any idea on how I can get these working with applet ? Please email me at


Posted by Gireesh on December 15, 2009 at 03:46 AM IST #

@clob I think the issue you are facing is related to higher resolution in real device and hence the UI is small, you may refer to below workaround:

Posted by Rakesh Menon on December 15, 2009 at 05:48 AM IST #

Hi Rakesh,
Its working fine on Windows Mobile, now. Its working on latest version of JavaFX 1.2 for Window Mobile.

Thank you for your reply. I would like know, can we expect the Table,Combobox, Popup, Tool tips and some other useful controls in the next version of JavaFX(Or does they available in the current version). Because i am working on new application for Mobile. It needs Table, Combobox etc. controls.

Posted by Siva on December 15, 2009 at 06:25 AM IST #

Nice Control :)

But seems to be buggy when putted into Sized Stack for instance
Like this way :

Stage {
title: "ComboBox Bug with Sized Stack"
width: 512
height: 512
scene: scene = Scene {
content: [

Stack {
width: bind scene.width
height: bind scene.height

content: [

Can See Bug Here :

But if You resize Windows @ ~400x233 it's working
Strange… :D

Posted by Toumaille on January 08, 2010 at 01:28 PM IST #

@Toumaille Yes, looks like some issue with updating layout, I see painting artifacts and issues related to clipping.

btw, I liked LevelIndicator, looks great! :)

Posted by Rakesh Menon on January 13, 2010 at 06:05 AM IST #

Hi Rakesh,tanks you for the sources, i'm trying to run combobox on my htc blackstone, I have JavaFX Mobile version 1.2 and I have compiled the sources on NetBeans 6.7.1.

When i'm running combobox it's does nothing !
I have reduce the code and i'have trying to see where is the problem for me , if i delete the class ComboBoxSkin and replace the class ComboBox by :

public class ComboBox extends Control {
public var items : Object[] = [];
public function select(index : Integer) : Void {

It's work on my Blackstone , I know this is stupid because there are no skin and i not see the list but it works and i think my Blackstone doesn't run a thing in ComboboxSkin but i don't know what and why maybe a problem of resolution? i don't know

Please help me, thank you for your very good job and sorry for my poor english


Posted by Jiki974 on February 03, 2010 at 12:00 PM IST #

Post a Comment:
Comments are closed for this entry.

The views expressed on this blog are my own and do not necessarily reflect that of my organization


« July 2016