i am programming a game, and i wanted to make an LoggIn window where you can put in email username password etc. in. The Problem is that a JTextField doesnt work, so i need to programm the textfield for myself. Everyone works at all but it is just taking the Uppcase of the letters A, Z, S a.e. But i want to have lower and upper case letters. Also if you press Backslash, it writes Backslash in the String. Would be cool if you can help me Sry for my bad English at all im from Germany ^^
Here is where the KeyListener for the Textfield is in. The rest of the Class is just Graphic things, but if you need it too :
That is the full code of this class. I am using a GameStateManager so this is just the GameState for managing the screen which is shown when you start the game.
I'm not sure I understand your question, what is it exact you need? Also please use codetags to post you code in,
without them it makes everything verry hard to read, especially for big blocks like yours
It's good to be able to use someting, it's better to understand how it works.
Daniel Demesmaecker wrote:. . . Also please use codetags to post you code in, . . .
He did use code tags, just not right (see here), which I have corrected. But there are still too many blank lines, and many of the lines are too long for use to read the whole of. All those empty lines don't enhance legibility.