I want that the text that I enter in the textarea is at the right.
So i enter this code (chatArea.append(loginName + ": " + message + "\n");
) and when i execute the program, the text is at the left.
I now thats a stupid question but i'm new at java.
Here my code:
dbHandler.saveNewMessage(message, loginName);
messageInsert.setText("");
chatArea.append(loginName + ": " + message + "\n");
chatArea.setAlignment(chatArea.RIGHT);