Code:
JOptionPane.showOptionDialog(null, "Ist die eingescannte Farbe vom Farbsystem RAL?", "Farbsystem",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
null, options, options[0]);
if(options.toString.equals("Nein")){
}
else{
jComboBox5.removeAllItems();
jComboBox5.addItem("RAL");
jComboBox6.removeAllItems();
jComboBox6.addItem(jTextField5.getText().substring(8,12));
}