Width of a TableColumn in a JTable

In my application, I use a JTable with a few resizable columns. At closing, I want the app to store the size of the columns displayed.

My problem is that even if I manually resize the columns, the getWidth() function always returns 75 (the default value), no matter the real size of the column. If I look at the TableColumn object with the debugger, it's min size is 15, it's max size is 2147483648, it's preferred size is 75 and it's size is 75. But it's displayed size is clearly not 75!

How can I get the real size of my columns?

The code for getting the widths :



I have a static matrixMult and static matrixAdd method and a static matrixDisplay(for print the result) and i wrote in Main function a example for test. My Goal: i want to multiply and add two matrix ...

I'm wondering if there was a way to get the sigar compiled binaries ie. libsigar-universal-macosx.dylib etc.. using maven. i know that i can just manually add it but I wish to automate the deployment

In my below FileWriter below, I am writing to a file called "employee.txt." It writes to the file but originally it was only appending to the file vs going into a new line each time. I since then ...

I have a class with a couple of methods that convert from one generic type to another, but I want to return the original value if both: the argument type and the return type are the same. The best ...