Search:

Type: Posts; User: macko

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,567

    Re: Need help int JTextField

    woot if i finaly understood you ^.^ think i need to have abit of a sleep now lol.


    Limiting the amount of characters that can be put in a textfield before you cannot type anymore:


    import...
  2. Replies
    7
    Views
    1,567

    Re: Need help int JTextField

    oh sorry.. do you mean you would like to only allow a certain amount of characters to be entered into the textbox ?
  3. Replies
    7
    Views
    1,567

    Re: Need help int JTextField

    simply change the 20 to longer or shorter depending on the size you want it..



    Echo = new JTextField(10);


    Also dont bother putting "", before the int if you do not want to have default...
  4. Replies
    7
    Views
    1,567

    Re: Need help int JTextField

    what do you mean by length?
    Altho just an estimated guess at what your trying to do..

    Try using BorderLayout:



    Panel.setLayout(new BorderLayout());
    Panel.add(Echo, BorderLayout.WEST);
Results 1 to 4 of 4