+2 votes
in Mathematics by kratos

What method obtain the current selection of a combo box? Give a code-example.

1 Answer

+3 votes
by kratos
 
Best answer
  • get Selected Item()
  • Example

private void j Combo Box 1 Action Performed(java. awt. event .Action Event evt)

{

String dur=( String)j Combo Box 1. get Selected Item();

}

jLabel1.setText(dur);

...