Results 1 to 2 of 2
  1. #1
    selvin_raj is offline Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Question How to validate JTextFields components in JTreetable in single button click.

    Hai,

    I have a JTreeTable in which the second column has JTextField. I have to validate all the text field at once for mandatory values in a button click. It has to throw a warning message if no value is entered.

    Regards
    Selvin R.Jayaraj

  2. #2
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Hello Selvin,
    First do a textField.getText() for all the mandatory fields and in a put OR condition in if loop.
    If it enter ur for loop it means 1 of the mandatory field is empty else it can go ahead.
    To finish sooner, take your own time....
    Nivedithaaaa

Similar Threads

  1. Have problem in JTreeTable Exapnd Collapse.
    By selvin_raj in forum AWT / Swing
    Replies: 1
    Last Post: 06-27-2008, 07:18 AM
  2. Swing - catching click button event
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 12:03 AM
  3. AWT - catching click button event
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 12:02 AM
  4. How to perform some event to button click
    By eva in forum AWT / Swing
    Replies: 2
    Last Post: 01-16-2008, 01:27 AM
  5. JTextFields with username & password.
    By Eric in forum AWT / Swing
    Replies: 2
    Last Post: 07-02-2007, 12:41 AM

Posting Permissions

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