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?
Joined: Feb 27, 2010
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.
Joined: Jun 19, 2012
another issue to remove empty space, use LayoutManagers and call pack() before JFrame#setVisible(true)