Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JavaFX
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JavaFX
Delete All rows from TableView
Puspender Tanwar
Ranch Hand
Posts: 658
2
I like...
posted 7 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to delete all rows present in a TableView on one go ?
I don't want to delete the selected row/rows, just need a way to clear all the contents from my table.
How this could be possible ?
Knute Snortum
Sheriff
Posts: 7125
184
I like...
posted 7 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I haven't tried it, but what about
table.setItems(FXCollections.observableArrayList());
All things are lawful, but not all things are profitable.
Campbell Ritchie
Marshal
Posts: 79180
377
posted 7 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
Since the
items
property points to a
List
, a subtype of
java.util.List
, what about
myTableView.getItems().
clear()
;
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JList selection to int not working
To show an UITableView on an UIView
row selection
Implementing CASCADE DELETE using Java
UITableViewController throws an uncaughtexception while delete button is pressed
More...