File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show image all over the dialog

 
swapnel surade
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a dialog its having flowlayout. On that dialog I hve added a panel which is also having flow layout.

I have displayed a image on the panel, but its not occupying the whole screen. its gettting applied only to the center of the dialog.

I want to show that image all over the screen... how I can do that


thanks
 
Rob Camick
Ranch Hand
Posts: 2475
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to scale the image to cover the entire space available. Using a FlowLayout is not the way to go since a FlowLayout always uses the preferred size of the component. So you should probably be using a BorderLayout. You can then add your image to the Background Panel.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic