How to combine and validate two text fields for a swt dialog?
问题 i have another question. I use a ModifyListener for one textfield to activate and deactivate the OK-Button in a swt dialog. It works great. Now I want to add a ModifyListener for another textfield. I want that the OK-Button only is activated if in both text fields is min one char. This is the code of the two fields: descriptionText.addModifyListener(new ModifyListener(){ public void modifyText(ModifyEvent e) { Text text = (Text) e.widget; if (text.getText().length() == 0) { getButton