A couple of comments regarding your code.
You should mark your fields as private and then access to them trough getter/setter.
class RF
{
private final String nom;
private final String ref;
private final String num;
I don’t know why they are final (I don’t hink they should) anyway. Then
RF n = (RF) jComboBox1.getSelectedItem();
For sure this throws a ClassCastException, so this line is never reached
if(!(n.num.equals(""))) // dont work !!
2
solved How to do test on Item selected In JCombobox