B4J Library CustomComboBox (Class) (Update: 2014/7/12)

Hi,

There is a problem with the combobox in Javafx, is that it's difficult to customize it with B4J. Basically, if you want to set anything apart from a string, you will encounter problems as I have in this thread: http://www.b4x.com/android/forum/threads/combobox-how-to-insert-nodes-with-cell-factory.42546/

So this class is my answer to this problem. In my case, I just needed to show an image with a text. It's a class, and I give the source, so you can customize it to your needs or learn from it.


If you modify the class, I'd be happy to see your modifications.
Enjoy.

[EDIT]
I've updated the class. The file has been replaced.

[EDIT 2]
- Fixed the Custom combo that wasn't anchored to the parent anchorpane
 

Attachments

  • CustomComboBox.zip
    13.9 KB · Views: 624
Last edited:

jmon

Well-Known Member
Licensed User
Longtime User
I've updated the class and fixed the problem mentioned above. Thanks Erel for the solution in this thread: http://www.b4x.com/android/forum/threads/how-to-get-the-screen-coords-of-a-node.42754/#post-259057


The first post has been updated.
 
Last edited:

jmon

Well-Known Member
Licensed User
Longtime User
I've just release another new version:

- Fixed the Custom combo that wasn't anchored to the parent anchorpane

The file in first post has been updated.
 

matek

Member
Licensed User
Hello
I like your library.I would like to use in my project but I do not know how to position customcombobox. I would like to one side to have two combobox. How to add "Untitled tab"?
 

jmon

Well-Known Member
Licensed User
Longtime User
Hello
I like your library.I would like to use in my project but I do not know how to position customcombobox. I would like to one side to have two combobox. How to add "Untitled tab"?
You can use the visual designer to create your tabs, and add tabs. Then add an AnchorPane that will be used for the CustomCombo Box.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…