wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes ScrolledComposite won't wrap but supersize the composite Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ScrolledComposite won Watch "ScrolledComposite won New topic

ScrolledComposite won't wrap but supersize the composite

Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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 ..


JDBCSupport - An easy to use, light-weight JDBC framework -
I agree. Here's the link: http://aspose.com/file-tools
subject: ScrolledComposite won't wrap but supersize the composite
Similar Threads
refreshing JFreeCharts
Focus issues with SWT Button
org.eclipse.swt.widgets.List - how to set visibile row count?
Eclipse Indigo - Unable to start Window Builder
Issues on focus with composites and their child widgets