How to include custom panel with NetBeans GUI Builder?

前端 未结 3 1466
孤独总比滥情好
孤独总比滥情好 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:44

    You can use the Palette Manager to add your component to the palette, then you can use it in the GUI builder as you would any other class.
    See How can I use a custom subclass of a Swing component? in the NetBeans Wiki.

提交回复
热议问题