PropertyEditor<Insets> () { if (myEditor == null) { myEditor = new IntRegexEditor<>(Insets.class, myRenderer, new int[]{0, 0, 0, 0}) { @Override public Insets getValue() throws Exception { // if a single number has been entered, interpret it as same value for all parts (IDEADEV-7330) try { int value = Integer.parseInt(myTf.getText()); final Insets insets = new Insets(value, value, value, value); myTf.setText(myRenderer.formatText(insets)); return insets; } catch (NumberFormatException ex) { return super.getValue(); } } }; } return myEditor; }