Specially when I'm working on embedded systems, dedicated to a single application like a GUI, I have to remove all windows decoration and buttons to achive two goals:
1. Gain space on the monitor
2. Avoid unwanted action from the users

 

java-logo-ruby-style


the following class, when launched, opens a JFrame. The JFrame has both decorations and buttons.


To remove Decorations and buttons, you have to add the following two lines of code

into the initComponents method

So the new initComponents method will look like the following:

Gg1