File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ScrolledComposite won Watch "ScrolledComposite won New topic
Author

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 ..

Thanks


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