aspose file tools*
The moose likes JavaFX and the fly likes TableView - show Customised Combox Control in TableCell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "TableView - show Customised Combox Control in TableCell" Watch "TableView - show Customised Combox Control in TableCell" New topic
Author

TableView - show Customised Combox Control in TableCell

Ally Cavs
Ranch Hand

Joined: Aug 25, 2008
Posts: 89
Hi Guys,

I have a custom control called AutoCompleteComboBox which extends ComboBox. If I have a tableview how can i get this AutoCompleteComboBox to display in a cell when clicked?

Thanks
Alan
John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 157
    
    9
Use a ComboBoxTableCell.

"By default, the ComboBoxTableCell is rendered as a Label when not being edited, and as a ComboBox when in editing mode."

And if you need more control over customization of the cell (e.g. to choose your specific custom auto complete combobox instance), then, look at the ComboBoxTableCell source code to see how you may customize it to fit your requirements.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TableView - show Customised Combox Control in TableCell