Java AWT: Remove frame title bar and add customised title Bar
I am new to AWT and was wondering how to remove the title bar that comes up when we open a frame and add customised title bar.
Though I was able to remove Tiltle Bar using setUndecorated(true) but not getting a idea how to add a 开发者_如何学JAVACustom Title bar with just a ICON and Close Operartion. Also I need to color the Title Bar with a specific color.
P.S : Cannot use Swing
Thanks in Advance !!!
You have 2 possibilities.
- Use java.awt.Window instead of Frame.
- Use JFrame and call
frame.setUndecorated(true);
精彩评论