This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ScrolledComposite won't wrap but supersize the composite

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I'm trying to create a ScrolledComposite inside a GridLayout and it freaks me out. It sizes the Composite so it can accomodate all components inside of it in one row that totally outgrows the space available. I checked the snippets and did exactly the same thing but it won't work!

Here is some code.


clientArea.width returns 1232 or something else that is huge ... too huge for me to think that it's correct.


The constructor of AuthorizedAreaComposite looks like this:


I don't know why this doesn't work. So please advise ..

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic