How to include custom panel with NetBeans GUI Builder?

前端 未结 3 1468
孤独总比滥情好
孤独总比滥情好 2020-11-30 11:31

I have written a class that extends JPanel. Is it possible to use this in the NetBeans GUI Builder and have it survive all of the automatic code generation?

I have

3条回答
  •  佛祖请我去吃肉
    2020-11-30 11:39

    Just provide a public no-arg constructor for your class. You can then add the class to the Palette by right clicking on it and selecting Add to Palette.

提交回复
热议问题