0

While creating a new project in Netbeans, I selected Java with Swings class. Then I created a form using drag and drop in Design. However, when I navigated to its Source, much of it was uneditable. Things like hiding a field unless a button is clicked etc. couldn't be done.

Is there a way to make the code in source of a java swings class editable?

KNIGHT MAHAJAN
  • 503
  • 1
  • 5
  • 12
  • You can’t modify the “unedited” sections, they get regenerated anyway, but you can reference the components on other parts of you code and modify there states. Having said that , personally I’d avoid the form designer - but that’s me – MadProgrammer May 05 '18 at 05:29
  • 1
    Possible duplicate of [How to change non-editable/generated code in netbeans](https://stackoverflow.com/questions/17131589/how-to-change-non-editable-generated-code-in-netbeans) – Robin Green May 05 '18 at 06:10
  • @MadProgrammer thanks for the answer! – KNIGHT MAHAJAN May 05 '18 at 08:08

0 Answers0