//Create a ValidationPanel - this is a panel that will show
//any problem with the input at the bottom with an icon
ValidationPanel panel = new ValidationPanel();
panel.setInnerComponent(inner);
ValidationGroup group = panel.getValidationGroup();
//This is all we do to validate the URL:
group.add(f, Validators.REQUIRE_NON_EMPTY_STRING,
Validators.NO_WHITESPACE,
Validators.URL_MUST_BE_VALID);
panel.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
//Convenience method to show a simple dialog
if (panel.showOkCancelDialog("URL")) {