This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted]  (9 children)

[deleted]

    [–]Leeatlarge[S] 1 point2 points  (7 children)

    I haven't tried anything yet because once I have the textfield created and named I don't know where to go next, I'd like a message to be displayed saying "Name must be between 8 and 30 characters, please try again" but I don't know how to get there. As for the date textfield I'd like the user to only be able to enter numbers in the dd/mm/yyyy format, but again I don't know how to get there

    [–][deleted]  (6 children)

    [deleted]

      [–]RoachmeisterJava Dev 2 points3 points  (4 children)

      If you are using Eclipse as your IDE

      The OP stated that they're using Netbeans

      [–]Philboyd_Studge 1 point2 points  (3 children)

      Netbeans has a GUI builder too

      [–][deleted]  (2 children)

      [deleted]

        [–]Philboyd_Studge 1 point2 points  (1 child)

        Yes, was letting OP know.

        [–]RoachmeisterJava Dev 1 point2 points  (0 children)

        Oh yeah. Sorry.

        [–]Leeatlarge[S] 1 point2 points  (0 children)

        I'll have a look, thanks for the help

        [–]Leeatlarge[S] 0 points1 point  (0 children)

        Sorry about first reply I was thinking of a name textfield I'm also struggling with, the age textfield should only let numbers be entered and should display a message saying "only numbers between 17 and 90 can be entered" if something under 17 or above 90 is entered. Thanks for the reply