JavaFX: Remove empty rows from tableview
-
By default tableview have at least 15 rows. So if I have 10 elements in my table then 5 rows will be empty. How can I remove such rows(not fill up it by white color through CSS)?
-
Answer:
You can do this. There is no public API present to call the visibleRowCount in TableView. But, @kleopatra has created a very nice implementation of TableView called as TableViewWithVisibleRowCount, which has a visibleRowCount and you can play with it. http://stackoverflow.com/a/26364210/1759128. Since you don't need css implenetation, I am not including them here. N.B. - They could be found http://fxexperience.com/2011/11/alternate-row-highlighting-in-empty-tableview-and-listview-rows/.
Ivan Timoshin at Stack Overflow Visit the source
Related Q & A:
- How to add empty rows to the JQGrid?Best solution by Stack Overflow
- How to Compare Rows in SQL?Best solution by Stack Overflow
- How to move up/down multiple rows?Best solution by Super User
- How to remove empty space above the chart?Best solution by stackoverflow.com
- I cannot empty my outlook in the box, can I empty the inbox all at once.Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.