Search:

Type: Posts; User: that_guy

Search: Search took 0.10 seconds.

  1. Re: adding text to JLabel during actionPerformed

    ok got it...
    instead of

    Welcome.setText("Welcome " + Field2 + " " + Field1);


    I should have had:

    Welcome.setText("Welcome " + Field2.getText() + " " + Field1.getText());
  2. adding text to JLabel during actionPerformed

    Ok so I want the user to enter their name and age and when they press a JButton the program sends a welcome message to the user "Welcome first name last name"

    here is my code:


    import...
Results 1 to 2 of 2