JTextField - Getting Keyboard Input - Java Extra 6

preview_player
Показать описание

In this video, I'm going to explain how to get user input on a window with GUI by using JTextField.

Using:
JFrame
Container
JPanel
JButon
JTextField
JLabel

Java Extra Playlist:

#programming #gamedev #java
Рекомендации по теме
Комментарии
Автор

is still java swing used? Is JAVA FX better?

clickinf
Автор

Hey,
How would you set the switch statement to listen for the player input. I have an action listener but I don't know how to set it up for the switch statement. This is for the player choice.

mukmusicdiary
Автор

Awesome tutorial!! By any chance do you know how to make when enter is pressed? rather than the button?

mukmusicdiary
Автор

Thanks for this! But how do you advance to the next screen after the name is inputted? For example, after you display "hello x, let's start the game!", how do you actually make Java go to the game screen?

marxman
welcome to shbcf.ru