You are here

TableView

Percent Width for TableColumn in JavaFX 2.x TableView

The moment I started working with TableView in JavaFX 2.x, the first question raised in my mind is “Why there is no feature for setting the column widths in percentage as we do in HTML?” I am not sure what could be the reasons for having this feature. Our medical record software requirements are quite clear on this, so I have to implement this by somehow ;).

Ofcourse there are a couple of issues logged in JIRA  related to this functionality, but till they get resolved, here is the way (workaround) to make it work!