Java Get JComboBox Value

JComboBox<Object> jcb = new JComboBox<Object>();
Object selected = jcb.getSelectedItem();
This is my name