There is only one jcombobox and one jbutton on the interface, click JButton Print JComboBox the current value.
If the JButton focusable is set to false, the focus cannot be obtained.
Then when editing the value of JComboBox, click JButton to Print Cmb.getselecteditem (). toString (), not the value in the current JComboBox edit box, but the value of the last selection.
This means that after editing the JComboBox, you must wait for JComboBox to lose focus, and the current edit value will be "submitted" before you can use GetSelectedItem to get it.
When you need attention, it is useless to use other.requestfocusinwindows () in the JButton click Response function.
The order of the internal mechanisms here is not yet clear. In short, it is a lesson to be able to edit jcombobox and JButton when cooperating, JButton need to pay attention to focusable attributes.