No!, No! i wasn't referring to that. I wanted to say a "textfield" but inside the game. For example Minecraft when you make a new world you must write a name for it... There's a textfield when you can put the name. Or another example is Titan Attacks. You must write a user name in a textfield inside the game. So i was referring to that

Both of those games use custom gui toolkits of their own making, but each of them likely follows the same design where there's a method to get the string out of the text widget, the same as in Swing. If you're using LWJGL, you're probably better off using something like TWL instead of rolling your own GUI.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org