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

前端 未结 8 1440
情书的邮戳
情书的邮戳 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:37

    I discovered by trial and error, that initialization which needs to be done before the user sees the panel should be added as "Pre-Init Code". In my case, I needed to populate a drop down box (called "Choice" in AWT). There seems to be very little detailed documentation available on using Matisse. So, I hope this will help others.

提交回复
热议问题