Results 1 to 2 of 2

Thread: Displaying window size in Java

  1. #1
    Join Date
    Oct 2005
    Helsinki, Finland

    Displaying window size in Java


    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!

  2. #2
    Join Date
    Oct 2004

    Re: Displaying window size in Java

    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?
    A life devoted to things is a dead life, a stump; a God-shaped life is a flourishing tree -- Proverbs 11:28 (MSG)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts