×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    33

    3 fields in 1 row

    Good day. I would like to know how to code for 3 fileds in 1 row.

    For example: dd(day)/mm(month)/yyyy(year)
    ^ ^ ^
    1st field /2nd field/ 3rd field =in 1 row

    So, mind to tell me how to code it? thanks a lot


    KEN

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    u can use three text fields for the dd/mm/yy and code accordingly..if i missed the point do let me know..
    ciao

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    33

    Thanks

    Yes, i am using 3 text field now, but unable to put it into 1 row. What do u think?

    However, thanks a lot.

    Warm Regards
    KEN

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    when u say one row..do u mean in the database or on the display u want it to appear in one row..??
    ciao

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    33
    Yes, appear to be in one row.

    For example:

    dd/mm/yyyy

    dd is one file, mm is one field and yyyy is another field.
    all is place in only 1 row.

    In adddition, is it possible to request focus on specific field?

    For example:

    by default the blinking is in the 2nd field. Mean i wanna set the clinking point to the 2nd filed instead of the 1st field.

    Thanks

    Warm Regards
    KEN

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    yes u can do it..what u need to do is specify the size of the text using setPreferredSize(int width,int height) also u can setfocus on the field u want.
    ciao

Posting Permissions

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