I want to develop a transparent jframe. In that case I am using fallowing code example. But the problem is I want to remove the title bar of the jframe. To transparent the jframe, it needs default look and feel as true. So my question is, how can remove the title bar of jframe when it's with default look and feel mode?
dushantha Rathnayake wrote:I tried with the setUndecorated as true. But it's not working.
I have used it couple of times, and it always worked. As the API says, make sure you invoke it before you actually display your frame. Can we see some of the code you are working with, please?
dushantha Rathnayake
Ranch Hand
Joined: Feb 27, 2010
Posts: 100
posted
0
Hi,
I mean if I set setDefaultLookAndFeel as true and set setUndecoration as true but it's not working. Actually want to do transparent the background frame without its content. After transparent the frame I can put a JLabel and set image icon. so the UI will be the image. Please see the image fallowing.
Thank you.
m Korbel
Ranch Hand
Joined: Jun 19, 2012
Posts: 70
posted
1
another issue to remove empty space, use LayoutManagers and call pack() before JFrame#setVisible(true)
dushantha Rathnayake wrote:if I set setDefaultLookAndFeel as true and set setUndecoration as true
Now it's
dushantha Rathnayake wrote:
Do you see what you didn't tell us?
Michael's advice notwithstanding, why on earth would you even want to setDefaultLookAndFeelDecorated(true) when you what you want is an undecorated JFrame?
m Korbel
Ranch Hand
Joined: Jun 19, 2012
Posts: 70
posted
0
Darryl Burke wrote for why on earth would you even want to setDefaultLookAndFeelDecorated(true) when you what you want is an undecorated JFrame?
right counterproductive, great minds thinks alike !!!
dushantha Rathnayake
Ranch Hand
Joined: Feb 27, 2010
Posts: 100
posted
0
Hi,
Ok guys, If I done any wrong, Please sorry for that. Actually I want to get the fallowing UI. Please help me to develop it.