This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 213
    
    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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: TableView - show Customised Combox Control in TableCell
 
It's not a secret anymore!