View Full Version : Resolved How to reduce size of a list box to 3

06-07-2012, 09:37 AM
I cant re size list box size to 3. why is that? but re sizing is working with bigger sizes greater than 4. If size of the list box is greater than 3 it will affect my layout design. So can any1 tel me how to resize this to 3?:rolleyes:

06-07-2012, 10:02 AM
The width cant be reduced further.

Reply With Quote

Try this code ...

* <applet code=TestApplet codebase=/r-n-d/classes height=100 width=100></applet>
import java.applet.*;
import java.awt.*;

public class TestApplet
extends Applet
public void init()
setLayout( new BorderLayout() );

List ll = new List() {
public Dimension getPreferredSize()
return new Dimension(10,10);

add( ll, BorderLayout.EAST );

06-07-2012, 01:07 PM
Its not working for me

06-07-2012, 05:14 PM
this error only appear in chrome browser in other browsers it works well. can any1 help me pls

06-08-2012, 03:50 PM
Its a bug in the chrome browser.As a workout, you may use something like <select style='height:35px;' size='2'>