In my java class I created a form and created a button that cleans all fields.
But I can not get it to delete the selection of a list
that I have on the form, it deletes the textfield and radios butto n but not the list.
Note: I'm not using JList and yes List. I've tried this way 'HostName.clearSelection ();' but the code turns red incorrect and does not deselect the item.
NomeCurso = new List(5, false);
Nome Curso.setSize(200, 170);
NomeCurso.setLocation(480, 145);
NomeCurso.addItem("Adm");
NomeCurso.addItem("Biomedicina");
NomeCurso.addItem("Ciencia da computacao");
NomeCurso.addItem("Farmacia");
NomeCurso.addItem("Direito");
NomeCurso.addItem("Educação física");
...
getContentPane().add(NomeCurso);