equal
deleted
inserted
replaced
30 import javax.swing.border.*; |
30 import javax.swing.border.*; |
31 import javax.swing.event.SwingPropertyChangeSupport; |
31 import javax.swing.event.SwingPropertyChangeSupport; |
32 |
32 |
33 import java.io.IOException; |
33 import java.io.IOException; |
34 import java.io.InputStream; |
34 import java.io.InputStream; |
|
35 import java.io.PrintWriter; |
|
36 import java.io.StringWriter; |
35 import java.io.UncheckedIOException; |
37 import java.io.UncheckedIOException; |
36 import java.lang.reflect.*; |
38 import java.lang.reflect.*; |
37 import java.util.HashMap; |
39 import java.util.HashMap; |
38 import java.util.Map; |
40 import java.util.Map; |
39 import java.util.Enumeration; |
41 import java.util.Enumeration; |
806 } |
808 } |
807 catch (NoSuchMethodException e) { |
809 catch (NoSuchMethodException e) { |
808 getUIError("static createUI() method not found in " + uiClass); |
810 getUIError("static createUI() method not found in " + uiClass); |
809 } |
811 } |
810 catch (Exception e) { |
812 catch (Exception e) { |
811 getUIError("createUI() failed for " + target + " " + e); |
813 StringWriter w = new StringWriter(); |
|
814 PrintWriter pw = new PrintWriter(w); |
|
815 e.printStackTrace(pw); |
|
816 pw.flush(); |
|
817 getUIError("createUI() failed for " + target + "\n" + w); |
812 } |
818 } |
813 } |
819 } |
814 |
820 |
815 return (ComponentUI)uiObject; |
821 return (ComponentUI)uiObject; |
816 } |
822 } |