Re: cobbling a ComboBox



(new javax.swing.JComboBox()).getUI() I causing a NP Exception
~
sh-3.1# javac DanieleFurttorovic00.java
sh-3.1# java DanieleFurttorovic00
UIDefaults.getUI() failed: no ComponentUI class for:
javax.swing.JComboBox[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,
flags=16777224,maximumSize=,minimumSize=,preferredSize=,isEditable=false,
lightWeightPopupEnabled=true, maximumRowCount=8,selectedItemReminder=One]
java.lang.Error
at javax.swing.UIDefaults.getUIError(UIDefaults.java:711)
at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:117)
at javax.swing.UIDefaults.getUI(UIDefaults.java:741)
at javax.swing.UIManager.getUI(UIManager.java:1012)
at javax.swing.JComboBox.updateUI(JComboBox.java:247)
at javax.swing.JComboBox.init(JComboBox.java:212)
at javax.swing.JComboBox.<init>(JComboBox.java:178)
at DanieleFurttorovic00$1.run(DanieleFurttorovic00.java:23)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
// __ jcb:
javax.swing.JComboBox[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,
flags=16777224,maximumSize=,minimumSize=,preferredSize=,isEditable=false,
lightWeightPopupEnabled=true,maximumRowCount=8,selectedItemReminder=One]|
// __ jcb.getUI(): |null|
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at DanieleFurttorovic00$1.run(DanieleFurttorovic00.java:29)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

.



Relevant Pages

  • Re: cobbling a ComboBox
    ... ~ sh-3.1# javac DanieleFurttorovic00.java ... sh-3.1# java DanieleFurttorovic00 ... UIDefaults.getUIfailed: no ComponentUI class for: ... Note the package declaration in the code I posted: ...
    (comp.lang.java.gui)
  • Re: Learning JAVA need help
    ... I also tried to run the compile from the command line using the command ... Exception in thread "main" java.lang.NoClassDefFoundError: ... The exception is thrown by the javac command and not by your ...
    (comp.lang.java.help)
  • JRE and foo.jar
    ... I'd like to know how to un-jar foo.jar from the command line, ... Exception in thread "main" java.lang.NoClassDefFoundError: jedit41install/jar ... javac at mail dot com ...
    (Fedora)
  • getting error: java.lang.NoClassDefFoundError
    ... im starting out in java and i'm getting the error: Exception in thread ... "main" java.lang.NoClassDefFoundError: blurf ... if i run "javac blurf.java", it compiles fine and without any troubles. ...
    (comp.lang.java)
  • getting error: java.lang.NoClassDefFoundError
    ... im starting out in java and i'm getting the error: Exception in thread ... "main" java.lang.NoClassDefFoundError: blurf ... if i run "javac blurf.java", it compiles fine and without any troubles. ...
    (comp.lang.java.programmer)