Re: cobbling a ComboBox



On 2008-06-25 03:50 +0100, Daniele Futtorovic allegedly wrote:
On 2008-06-24 14:42 +0100, Albretch Mueller allegedly wrote:
(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]

Mind the package directory structure.

You must also name the class as I did or make the according modifications to the code.

--
DF.
to reply privately, change the top-level domain
in the FROM address from "invalid" to "net"
.



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: cobbling a ComboBox
    ... I causing a NP Exception ... sh-3.1# javac DanieleFurttorovic00.java ... sh-3.1# java DanieleFurttorovic00 ... UIDefaults.getUIfailed: no ComponentUI class for: ...
    (comp.lang.java.gui)