View Full Version : Displaying window size in Java

January 4th, 2006, 12:34 PM

When gnome-terminal is resized, a small box appers that has the windows current size. I would like to use this feature in a small Java program, and I already have a usable listener for the windows size, but I'm at a loss how I would go about popping up such a box.

Ideas and suggestion are more than welcome. Thanks! :)

January 5th, 2006, 12:31 PM
You could draw a white rectangle in the middle of the window, and write the window coordinates in the rectangle. You don't really need a box, just something to display the text, no?