Remove JFrame title bar


****************************************************
COMPLETE SOURCE CODE FOR : RemovingTitleBar.java
****************************************************


import javax.swing.JFrame;

public class RemovingTitleBar
{
public static void main(String[]args)
{
JFrame a=new JFrame("REMOVING TITLE BAR");
a.setUndecorated(true);
a.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
a.setSize(200,200);
a.setVisible(true);
}
}


****************************************************
JUST COMPILE AND EXECUTE IT
****************************************************

Top 10 Errors Java Programmers Make


THANK YOU TO David Reilly FOR HIS INFORMATION

10-Accessing non static member variables from static method(Such As Main Method)

9-Mistyping the name of method when overriding

8-Comparison assignment (= rather than ==)

7-Comparing two objects using == rather than using .equals(Object object) method

6-Confusion between passing by value or passing by reference

5-Writing blank exception handlers

4-Forgetting that java is zero-indexed

3-Preventing concurrent access to shared variables by threads

2-Capitalization errors

1-NULL pointers

RELAXING NATURE VIDEO