This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
If you want to control the scroll bars visibility then use one of the JScrollPane constructors that always you to set the scroll bar policy for each axis to one of the following (default is XXX_AS_NEEDED):
For vertical axis:
For horizintal axis: