wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Scroll panel problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Scroll panel problems" Watch "Scroll panel problems" New topic
Author

Scroll panel problems

Manny Ruiz
Ranch Hand

Joined: Dec 01, 2010
Posts: 40
Hello I am having alot of problems getting this scroll panel to work. Specifically I have the [panel on my GUI, but I cant figure out how to get the text area to populate it. Can someone please tell me what I a,m doing wrong here.

These are the code portions that pertain to the scroll panel only.





And here is the code as a whole.



I am, almost done with this I just need to get the scroll panel to work. Please can someone help me out.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Don't use a null layout and hardcoded bounds. Use a layout manager or a combination of layout managers to achieve your layout.
http://download.oracle.com/javase/tutorial/uiswing/layout/index.html


luck, db
There are no new questions, but there may be new answers.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

This appears to be continued from http://www.coderanch.com/t/522325/GUI/java/Event-problems
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Scroll panel problems
 
Similar Threads
First GUI program
Mortgage Calculator -In Frames
Pressing a button to open a new window
Event problems
JMenu help