• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

win style resize rectangle when using metal plaf

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic