• Post Reply Bookmark Topic Watch Topic
  • New Topic

image problem  RSS feed

 
shane ocon
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help me here...
I am trying to get this peice of code working from the site below....

http://www.java-tips.org/java-se-tips/javax.swing/wrap-a-swing-jcomponent-in-a-background-image.html

Well i have got it working its just...when i try to maximise the application the image stays at its original size.

What can i do to get the image to maximise to the full screen with the app. aswel???

Any help will be ~REALLY~ helpful!!!
thanks
 
Brian Cole
Author
Ranch Hand
Posts: 947
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well that code seems to presume that the background image provide will be large enough. Notice how the example uses a 600x525 background image even though the frame is only 450x200 or so. If you were to stretch that frame wider than 600 then part of the frame would be outside the background image.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!