This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 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: 131
    
    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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: TableView - show Customised Combox Control in TableCell
 
Similar Threads
SWT Print selective components
To show an UITableView on an UIView
Inserting web content in your native iPhone application
Jface tableviewer multi sort columns
Focuslost listener for TableViewer