So its easy
1. create a String in your main class called username
2. make a new GuiScreen called GuiLogin or something
3. add a guiTextfield
4. create a keyTyped method (you will need this for typing in your username)
5. create a done button
6. create a actionPerformed void
7. if the button done is pressed, change the username in your main class to the text in the guiTextField(You can do this with [textfieldname].getText)
8. thats it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.