Jump to content

how to edit auto generated text in NetBeans - JAVA

hirushaadi

1773057928_2020-12-1109_49_32-Calculator-Basic-dark-NetBeansIDE8.2.png.ffd9e144b484604b04f83f8b4e8cc652.png

 

i want to set this to 

setDefaultCloseOperation(java.swing.WindowConstants.DISPOSE_ON_CLOSE);

as that is un editable, 

 

i tried doing this

219018880_2020-12-1110_00_27-Calculator-Basic-dark-NetBeansIDE8.2.png.3dcbaef508ffec907908b8fccbc100d5.png

and for now,  I'm using 

dispose();

 

Any help would be appreciated, Thank You!

hey! i know to use a computer

Link to comment
Share on other sites

Link to post
Share on other sites

There might be a properties panel where the default close operation can be changed.

I think calling setDefaultCloseOperation(java.swing.WindowConstants.DISPOSE_ON_CLOSE); after initComponents() should work as well.

ಠ_ಠ

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×