Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scroll panel problems

 
Manny Ruiz
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This appears to be continued from http://www.coderanch.com/t/522325/GUI/java/Event-problems
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic