COMP 1406/1006 Tutorial 2 Tips
- Many people are getting a bug in their JscrollPane/JList so that some extra blank lines are added at the beginning. I don't know what's causing this yet, but I think it's related to the settings on your scroll pane. If you figure it out let me know. (Don't worry, you won't lose marks if it happens to you.)
- If your prev/next/etc controls aren't showing the images, and you have added them to the buttons, make sure that
- You have downloaded the images from the tutorial website
- The image files are in the same directory as your java files
- You're using the right filenames
- Note that if you're having trouble, instead of "prev.gif" etc. you can also use the full path and filename. eg: "z://comp1406/tut2/prev.gif"