posted 14 years ago
So. I am writing a program for a Psychology study that will track mouse movement. I have not gotten too far into the project and I have already encountered a problem. In one part of the program, a consent message is to be displayed (read from a file) and then the user selects if he/she agrees. I have everything down, including reading in the file, aside from displaying the block of text (The consent message). At first, I tried a JLabel, but apparently you can not return (\n or \r) in a JLabel. Can anyone suggest a simple solution for me as to what I should do in order to get the entire block of text to display? By the way, with the way I am reading the file in, it is doing the returns, which can be checked by printing the read-in file to the console. I will post the program in it's entirety; please be nice, it is a ROUGH work in progress.
MusicMouseMain
MusicMousePanel
Any, and all help would be greatly appreciated.