1 Replies - 5763 Views - Last Post: 22 May 2012 - 02:21 PM Rate Topic: -----

#1 xamy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 06-May 12

add background image on JFrame

Posted 22 May 2012 - 04:50 AM

how to add background image on JFrame and also resize the image according to the frame with other JComponents on it.....
Is This A Good Question/Topic? 0
  • +

Replies To: add background image on JFrame

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8343
  • View blog
  • Posts: 31,890
  • Joined: 06-March 08

Re: add background image on JFrame

Posted 22 May 2012 - 02:21 PM

Not an easy task at all... discussed many times in this forum
Fill your JFrame with a JPanel (BorderLayout), and ignore the JFrame delegating everything to the JPanel and then it becomes a piece of cake

http://www.dreaminco...snippet5599.htm

the reason being that JFrame, despite their name, are not real JComponent
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1