wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 88
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: 100
    
    7
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
 
Similar Threads
Focuslost listener for TableViewer
To show an UITableView on an UIView
Jface tableviewer multi sort columns
Inserting web content in your native iPhone application
SWT Print selective components