Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2012
    Posts
    95
    Thanks
    50
    Thanked 0 Times in 0 Posts

    Arrow How to reduce size of a list box to 3

    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?
    Last edited by viddz; 06-08-2012 at 03:51 PM.

  • #2
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 );
    }
    }

  • #3
    New Coder
    Join Date
    Apr 2012
    Posts
    95
    Thanks
    50
    Thanked 0 Times in 0 Posts
    Its not working for me

  • #4
    New Coder
    Join Date
    Apr 2012
    Posts
    95
    Thanks
    50
    Thanked 0 Times in 0 Posts
    this error only appear in chrome browser in other browsers it works well. can any1 help me pls

  • #5
    New Coder
    Join Date
    Apr 2012
    Posts
    95
    Thanks
    50
    Thanked 0 Times in 0 Posts
    UREKAA !
    Its a bug in the chrome browser.As a workout, you may use something like <select style='height:35px;' size='2'>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •