So, I made a jar file which runs a class that has JFrame, panel and a button. Once the button is clicked it runs the main method of my class that runs a method with parameter(String s);
I would like this parameter to change depending on the user's needs.
For example, if clicking the button shows a message s,
I would like the user to type in the message that they want.
So if they type in hi, they would get hi, on their screen.
Is there a way to do this?