Sometime you donít want to the user to view the title bar of the frame. This can be done using setUndercorated() method and providing true as argument. Review the code below.


Java Code:
public static void main(String[] args){
    Frame frame = new Frame("MyFrame");
    Label lbl = new Label("Welcome to the world of Java",Label.CENTER);
    frame.setUndecorated(true);
    frame.add(lbl);
    frame.setSize(400,400);
    frame.setVisible(true);
  
  }