-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1, 1.1.2
-
generic, sparc
-
generic, solaris_2.5.1
Choice can be resized by setSize on Windows but Solaris
import java.awt.*;
public class fjtest extends java.applet.Applet{
Choice ch;
Button bt;
public void init(){
ch = new Choice();
bt = new Button("button");
ch.add("item1");
ch.add("item2");
ch.add("item3");
ch.add("item4");
ch.add("item5");
ch.add("item6");
ch.add("item7");
ch.add("item8");
ch.add("item9");
ch.add("item10");
add(ch);
add(bt);
}
public boolean action(Event ev, Object arg) {
if (ev.target instanceof Button) {
ch.setSize(200,200);
//ch.setLocation(0,0);
}
return true;
}
}
import java.awt.*;
public class fjtest extends java.applet.Applet{
Choice ch;
Button bt;
public void init(){
ch = new Choice();
bt = new Button("button");
ch.add("item1");
ch.add("item2");
ch.add("item3");
ch.add("item4");
ch.add("item5");
ch.add("item6");
ch.add("item7");
ch.add("item8");
ch.add("item9");
ch.add("item10");
add(ch);
add(bt);
}
public boolean action(Event ev, Object arg) {
if (ev.target instanceof Button) {
ch.setSize(200,200);
//ch.setLocation(0,0);
}
return true;
}
}
- duplicates
-
JDK-4056359 Choice components in GridLayout don't fill entire cells.
- Closed
-
JDK-4093226 Cannot set size of awt.Choice control
- Closed
-
JDK-4124213 java.awt.Choice ignores vertical sizing in JDK 1.1.6i
- Closed