This commit is contained in:
hyung-hwan 2007-12-15 17:23:03 +00:00
parent 09ea9e862f
commit dc2f886968

View File

@ -448,7 +448,21 @@ public class AseAwkPanel extends Panel implements DropTargetListener
{ {
public void itemStateChanged (ItemEvent e) public void itemStateChanged (ItemEvent e)
{ {
String name = ((Checkbox)e.getItem()).getLabel(); Object x = e.getItem();
String name;
if (x instanceof Checkbox)
{
// gcj
name = ((Checkbox)x).getLabel();
}
else if (x instanceof String)
{
// standard jdk
name = (String)x;
}
else name = x.toString();
for (int i = 0; i < options.length; i++) for (int i = 0; i < options.length; i++)
{ {
if (options[i].getName().equals(name)) if (options[i].getName().equals(name))