Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes Look&Feel Switch Glitch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Look&Feel Switch Glitch" Watch "Look&Feel Switch Glitch" New topic

Look&Feel Switch Glitch

Isaac Hewitt
Ranch Hand

Joined: Jul 24, 2006
Posts: 191

I am using the Synthetica range of Look & Feel products, which are brilliant, especially with 4 processors, and 4 G of memory. The problem I have is when switching to another Look & Feel in the same product range.
I have configured settings to have rounded corners in my JFrames. When the program starts, the rounded corner works, but when switching, the square corner shows, even though as you can see below I have specified ROUND_RECT.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10745

What component type are this.DVD_Titles and this. DVD_Titles. getViewerWindow

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Isaac Hewitt
Ranch Hand

Joined: Jul 24, 2006
Posts: 191

Maneesh, thank you your question. The 2 components are of the JFrame class.
The code below rounds out the corners of each JFrame, otherwise you get a small white bit at each corner, which is not part of the intended design.
When the program starts where you have this bit of code, the corners are rounded. It is only when changing Look & Feel style that the corners don't behave. I cannot ask this question to
the folks who have designed Synthetica, because I have not yet purchased a license and therefore not entitled to tech support. I am still evaluating the Look&Feel. Thanks.
Have you checked out Aspose?
subject: Look&Feel Switch Glitch
jQuery in Action, 3rd edition