package com.macfaq; import java.awt.*; import java.net.*; import java.beans.*; public class URLBean extends Label { private URL u; static { String temp[] = PropertyEditorManager.getEditorSearchPath(); String[] sp = new String[temp.length + 1]; sp[0] = "com.macfaq"; System.arraycopy(temp, 0, sp, 1, temp.length); PropertyEditorManager.setEditorSearchPath(sp); } public URLBean() { try { // all properties must be initialized (non-null) u = new URL("http://sunsite.unc.edu/nywc/"); } catch (MalformedURLException e) { } setText(u.toString()); } public URL getTheUrl() { return u; } public synchronized void setTheUrl(URL u) { this.u = u; setText(u.toString()); } }