1.

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

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);



Discussion

No Comment Found

Related InterviewSolutions