[3924] in java-interest
How Do I Resize a Choice Item?
daemon@ATHENA.MIT.EDU (David Strauss)
Sun Dec 3 14:55:02 1995
Date: Sun, 3 Dec 1995 12:52:26 -0500 (EST)
To: java-interest@java.sun.com
From: dstrauss@panix.com (David Strauss)
I am trying to change the width of the text area that displays the current
selection in a Choice awt component. For example:
Chooser = new Choice();
for (int i = 0; i < number_of_choices; i++) {
Chooser.addItem(choice[i]);
}
Dimension d = Chooser.size();
Chooser.resize(new Dimension(d.width+50, d.height));
This has no effect. What do I need to do?
--
------------------------------------------------
David Strauss
E-mail: dstrauss@.panix.com
dstrauss@lehman.com
-------------------------------------------------
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com