Possible Duplicate:
Can I find the console width with Java?
For example, when you run nano at the Linux command line, it automatically resizes its text formatting to fit the display dimensions, even as you change them on the fly.
I know it's a long shot, but is there a way for Java to do detect display size and changes made to it?
You would need to use JNI to call ncurses or use a library that does the same.
If all you need is to get dimension information, there's an example here that has API calls to getRowCount and getColumnCount.