Justyn Dooley

Greenhorn
+ Follow
since Aug 03, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Justyn Dooley

It isn't executable due to the fact that I would have to upload a ton of resources for it to be. And what do you mean by EDT?
14 years ago
I am having a problem with a JScrollPane vertical scroll bar. This part of my program reads in questionnaire questions and responses from a file, and then places them on a screen with radio buttons for selection. Everything works fine other than the fact that on questionnaires in which the question and response panel is larger than the screen, the Vertical scroll bar starts scrolled to the bottom of the panel; I need it to start at the top of the page, always. I have tried setting the value of the scroll bar to zero, and setting the caret position of all the JTextAreas to zero, but to no avail. As a matter of fact, I printed out the value of the scroll bar when it was scrolled down, and it said it WAS zero. I really need some help, I cant figure this out.

14 years ago
Thank you so much Michael, it worked =]
14 years ago
Alrighty. I did what I could. I made two programs, one for setting up the frame, and one for making the panel. Here they are:





Hopefully, this will help you, help me.
14 years ago
Michael, I tried your suggestion, but it is still not working. It has made the pane scrollable, but it is still not displaying all of the text that is being read in. Would it help if I posted ALL of my current code?
14 years ago
This is a continuation to my last thread, which can be found at here. Due to the size of file being read in, I have decided that I need to go with a JTextArea wrapped in a JScrollPane, as someone suggested. However, I am not sure how to make it so the scroll pane will adjust to how much is being read in (THere is more text than there is being shown, and it will not scroll). This is what I have. What am I doing wrong?

14 years ago
Thank you very, very much. Have any other general tips for the program?
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.
14 years ago