Hi all. Im creating a chat system and have a question about the cursor.
The Gui is set up as follows: I have a chatArea where all the dialogs shows (JTextArea), I have a message window where you type what you wanna say (JTextField).
Here is the question. When the program starts I would like the cursor to be shown directly in the message window (JTextField). That is, you shouldnt have to mouse-click the message window to get the cursor active in that window.
Do you guys know if this is possible and give me a tip how to solve this?
Thx, Peter
The Gui is set up as follows: I have a chatArea where all the dialogs shows (JTextArea), I have a message window where you type what you wanna say (JTextField).
Here is the question. When the program starts I would like the cursor to be shown directly in the message window (JTextField). That is, you shouldnt have to mouse-click the message window to get the cursor active in that window.
Do you guys know if this is possible and give me a tip how to solve this?
Thx, Peter