Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Composite with background image that automatically fills as shell grows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Composite with background image that automatically fills as shell grows" Watch "Composite with background image that automatically fills as shell grows" New topic
Author

Composite with background image that automatically fills as shell grows

Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Hey guys,

I am trying to have a component that has this image as a background and I would lay out all the components on top if it.

This is the image: http://marckremers.com/portrait-of-an-unknown-document/portrait-of-an-unknown-document.jpg

Upon resizing, I want to image to dynamically grow. Not the whole image however (the fold of this document image would grow too) but only - when resizing vertically - the sheet's length would grow, when resizing horizontally, the width would fill up.

Now, before I start shredding code I would like to hear about your approaches ...

Thanks :-)

-- edit: there was a typo in the title .. i meat SWT composite and not component


JDBCSupport - An easy to use, light-weight JDBC framework -
 
 
subject: Composite with background image that automatically fills as shell grows
 
Similar Threads
Dialog resize in SWT
SWT Composite setBackgroundImage() doesn't support transparency?
Comparing Date and Timestamp: unexpected result
Boardgame to interactive GUI -- need help
GridBagLayout