如何使用户无法选择组合框值?
String [] names = {"john", "jack", "frank"};
JComboBox box = new JComboBox(names);
lezioniBox.insertItemAt("-- Choose a name --", 0);
lezioniBox.setSelectedIndex(0); \\ I wanted to have a sort of hint
但我不想-- Choose a name --
选择。我能怎么做?