wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes win style resize rectangle when using metal plaf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "win style resize rectangle when using metal plaf" Watch "win style resize rectangle when using metal plaf" New topic
Author

win style resize rectangle when using metal plaf

Pramod Pai
Greenhorn

Joined: Mar 26, 2006
Posts: 1
Hi,

Is it possible to have a windows style resize rectangle shown when resizing windows using the metal plaf?

On the windows platform, when using the default (win) plaf, resizing a JFrame causes a transparent rectangle (with just a border) to be displayed. This rectangle denotes the new size of the JFrame. Now the space between the rectangle border and the original JFrame is transparent.

Now, on the same platform, if the metal plaf is used, the space between the borders and the original JFrame is filled with grey!

Does anyone know how I can get a transparent rectangle using a non-windows plaf? Going by the win plaf source, the rectangle seems to be handled by the underlying platform.

Any hints/leads on how this could be possibly achieved would be greatly appreciated...

Thanks in advance,

Regards,
Pramod
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: win style resize rectangle when using metal plaf
 
Similar Threads
JFrame Resizing
About the JScrollPane and window size
Resizable swing elements
JFrame resize problem
JFrame resizing -- what is normal behavior?