You have incorrect code format.
- You can not have a semi colon after you main function, before its body.
- You can not write class constructor inside main function. You can call it from main.
- Constructor should be inside the class body not inside main.
Try this.
public class HotelGuiForm extends javax.swing.JFrame {
public HotelGuiForm() {
initComponents();
}
public static void main(String[] args){
HotelGuiForm HGF = new HotelGuiForm();
}
}