java.awt.Choice silliness

John B. Lee jbl at cordelia.res.cmu.edu
Thu Apr 22 19:33:36 PDT 1999


Has anyone experienced problems whereby selecting
a choice from a java.awt.Choice component produces
the follow exception:

java.lang.NullPointerException
        at java.awt.RowCanvas.repaintRows(RowCanvas.java:257)
        at java.awt.RowCanvas.repaintRows(RowCanvas.java:265)
        at java.awt.List.select(List.java:711)
        at java.awt.Choice$ChoiceWindow.popUpAt(Choice.java:64)
        at java.awt.Choice.openPrompt(Choice.java:229)
        at java.awt.Choice.mousePressed(Choice.java:208)
        at java.awt.Component.processMouseEvent(Component.java:1046)
        at java.awt.Component.processEvent(Component.java:941)
        at java.awt.MouseEvt.dispatch(MouseEvt.java:185)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:76)
        at java.awt.Dialog.show(Dialog.java:125)
        at java.awt.Component.show(Component.java:1456)
        at java.awt.Component.setVisible(Component.java:1419)
        at ThinkApp$Clicker.mouseClicked(ThinkApp.java:352)
        at java.awt.Component.processMouseEvent(Component.java:1052)
        at java.awt.Component.processEvent(Component.java:941)
        at java.awt.MouseEvt.dispatch(MouseEvt.java:214)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:39)

The component is in a GridBagLayout managed Dialog
box. Should I post code?

-- 
John B. Lee, Undergraduate
Social and Decision Science; Carnegie Mellon University
jbl at andrew.cmu.edu


More information about the kaffe mailing list