This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

awt

 
Osama Hasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://javaalmanac.com/egs/java.awt/frame_FrameNoDecor.html?l=rel
The above URL contains an example which removes the title bar of a frame.It uses a method known as "setUndecorated()" but the compiler fails in finding such a method.
Can any one tell me what is the problem?
Thanks in advance.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setUndecorated has been introduced in 1.4. Are you compiling the code with the 1.4 compiler? Is your classpath correct?
Moving this thread to Java in General (Beginner)... Please continue the discussion there.
[ December 01, 2002: Message edited by: Valentin Crettaz ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic