...

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



viddz
06-07-2012, 08: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:

pattinson
06-07-2012, 09: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 );
}
}

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

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum