如何在jess中实现java中的combobox?我必须做这样的事情:如何在JESS中实现java swing
;defglobals
(defglobal ?*combobox* = 0)
;deffunctions
(bind ?*combobox* (new JComboBox))
(deffunction add-widgets()
(?*c* add ?*combobox* (BorderLayout.CENTER)))
(?*combobox* addActionListener (implement ActionListener
using (lambda (?name ?evt)
(bind ?*combobox* ("slot1" "slot2"))))
我需要这些插槽可在列表后,点击确定,另一个列表可以在同一组合框中显示出。我必须为每个多插槽制作另一个组合框?