public class MyFilterEditor extends DefaultFilterEditor { static protected Log cat = LogFactory.getLog( MyFilterEditor.class); private JPanel editor; private PrefillCombo originalValueCB; private PrefillCombo newValueCB; private JTextField resultPropTxt ; private void setup() { originalValueCB = new PrefillCombo( 20, getClass().getName() + ".org", FillProps(), null, LisaPrefs.getLisaPrefsObj(), false, this ); newValueCB= new PrefillCombo( 20, getClass().getName() + ".newValue", FillProps(), null, LisaPrefs.getLisaPrefsObj(), false, this ); resultPropTxt = new JTextField(20); JPanel editor1 = new JPanel( new GridBagLayout() ); editor1.setBorder( Borders.createGroupBox("Replace Data") ); GridBagHelper.addRow2GB( editor1, new JLabel(""), new JLabel("") ); GridBagHelper.addRow2GB( editor1, new JLabel( " String To Replace"), new JLabel( " New String") ); GridBagHelper.addRow2GB( editor1, originalValueCB.getComponent(), newValueCB.getComponent() ); editor = new JPanel(new GridBagLayout()); GridBagConstraints constraints = new GridBagConstraints(); constraints.anchor = GridBagConstraints.WEST; constraints.insets = new Insets(10, 10, 10, 10); constraints.gridx = 0; constraints.gridy = 0; editor.add(new JLabel(" Save To Property: {{"), constraints); constraints.gridx = 1; editor.add(resultPropTxt, constraints); constraints.gridx = 2; editor.add(new JLabel("}}"), constraints); constraints.gridx = 0; constraints.gridy = 2; constraints.gridwidth = 3; constraints.anchor = GridBagConstraints.CENTER; editor.add(editor1, constraints); setLayout( new BorderLayout() ); add(editor,"Center"); } @Override public void display() { if( resultPropCB == null ) setup(); FilterController gg = (FilterController)getController(); ReplaceString udt = (ReplaceString)gg.getControllerFactory(); originalValueCB.setText( udt.getOriginalValue()); newValueCB.setText( udt.getNewValue()); resultPropCB.setText( udt.getPropName()); } @Override public String isEditorValid() { if( StrUtil.isEmpty(resultPropTxt.getText())) // ( resultPropCB.getText() ) ) return " Save To Property Is Mandatory Field"; return null; } @Override public void save() { } }