开发者

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.

  1. Use java.awt.Window instead of Frame.
  2. Use JFrame and call frame.setUndecorated(true);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜