I would like to implement a list of interactive buttons using Swing. It is something similar as on the picture (from NetBeans UI designer):
You can drag and drop the items to a canvas, or single click on the item and then single click on the canvas. However, I don'开发者_开发知识库t know which swing components I should use. Are that JList or JButtons or something different?
There is a tutorial avalaible on how to achieve such functionality. It is utilizing the NetBeans Palette API, which makes you dependent on NetBeans as Framework, not IDE.
Depending on the goal, you might want to look into developing for the NetBeans Platform.
精彩评论