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!
    Bookmark Topic Watch Topic
  • New Topic

image scaling on window resize

 
chop ficaro
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
can i make an image scale to fit the window with BorderLayout.CENTER?
 
Rob Camick
Ranch Hand
Posts: 2475
8
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
You need to do custom painting to scale the image on the fly. BackgroundPanel shows one way to do this.
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Apparently continued here without the courtesy of acknowledging Rob's help.
http://www.coderanch.com/t/508226/GUI/java/BackgroundPanel-java-cannot-placed-BorderLayout
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Chop, please Use One Thread Per Question. I'm going to close this thread; we can continue in the other one.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic