How to modify/add code to the initComponents() method in Java using NetBeans?

前端 未结 8 1443
情书的邮戳
情书的邮戳 2020-12-05 18:59

How to modify/add code to the initComponents() method in Java on NetBeans? When I try to add any line of code this area seems to be like readonly and it\'s high

8条回答
  •  悲哀的现实
    2020-12-05 19:28

    1. Close Netbeans
    2. Go to folder path where there is your form file
    3. Backup the 2 files with extensions ".form" and ".java"
    4. Edit the 2 files with extensions ".form" and ".java" in notepad editor. For example if your form name is "myForm" you must have the files "myForm.form" and "myForm.java" in the folder.
    5. The first file ".form" is xml file and the second ".java" is a code java file
    6. Edit carefully your code in both files save changes and open NETBEANS. Thats it!

提交回复
热议问题