JavaFX - ComboBox
By Rakesh Menon on Jul 03, 2009
|JavaFX 1.3 introduces many new controls. |
Please use ChoiceBox, MenuButton or SplitMenuButton
Update: Please also refer to JFXtras - XPicker for more advanced picker control.
<script src="http://dl.javafx.com/1.2/dtfx.js"></script> <script src="/rakeshmenonp/resource/ComboBox/ComboBox.js"></script>
For Applet mode, click on above image
The ComboBox is created using a combination of Label and ListView. The ListView instance is dynamically inserted into content of Scene so that it appears on top of all existing content. Its deleted from Scene on making list invisible.
The entire logic of control is implemented in Skin. Behavior class can be implemented to handle keyboard events. The look can be easily customized.
Try it out and let me know feedback