Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx
private void typeof_patronJComboBoxitemStateChanged(ItemEvent event)
{
// clear JTextFields
clearComponents();
// determine whether checkbox selected
if (event.getStateChange()== ItemEvent.SELECTED)
offaddressJTextField.setEditable( true[typeof_patronJComboBox.getSelectedIndex(0)]);
// enable or make editable appropriate components
addJButton.setEnabled( true );
PatrondetailsJPanelEditable( true );
// grab focus
nameJTextField.requestFocusInWindow();
}