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

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

    Presumably what you are doing is writing an application using the Matisse GUI tool.

    Matisse generates non editable code blocks. This is required by Matisse so that the tool remains synchronized with the code base.

    There are a number of options provided by Matisse to allow insertion of custom code before, after or within code blocks such as initComponents().

    See the image below:

    Code insertion

    This shows the properties tab for a jPanel and some of the code insertion options.

提交回复
热议问题