2

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 Custom 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 !!!

1
  • Any specific reason for not using Swing?
    – Harry Joy
    Sep 26, 2011 at 9:36

1 Answer 1

1

You have 2 possibilities.

  1. Use java.awt.Window instead of Frame.
  2. Use JFrame and call frame.setUndecorated(true);
3
  • sorry we cant use JFrame or any swing component.. Have to aacheive it using AWT
    – tiger
    Sep 26, 2011 at 9:42
  • so, use java.awt.Window. Good enough.
    – AlexR
    Sep 26, 2011 at 9:47
  • Hi .. But I am able to get rid of default Title using undecorated(true) but how can I add a custom Title WIndow with the description I have mentioned in my question..
    – tiger
    Sep 26, 2011 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.