for(int i=0; i<n; i++) buf[i] = (byte) in.read();
} catch (IOException ex) {
}
schema.setIcon(new ImageIcon(buf));
ExtRefModel ref = new ExtRefModel();
ref.setContentType("image/jpeg");
ref.setTitle("Schema Image");
schema.setExtRef(ref);
schema.setFileName("Test");
ref.setHref("Test");
editor.addPropertyChangeListener(new PropertyChangeListener(){
public void propertyChange(PropertyChangeEvent evt) {
// System.out.println("oldValue = " + evt.getOldValue());
// System.out.println("newValue = " + evt.getNewValue());