Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Custom Image as the window in JFrame

  1. #1
    Junior Member Ivanskodje's Avatar
    Join Date
    Jun 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Custom Image as the window in JFrame

    Greetings!

    I am looking for a solution that will allow me to use a custom background image to replace the JFrame window.
    I am able to add a background Image, however I am not able to remove the "white" that is supposed to be transparent.

    For example; if the image was shaped like a bird with transparent background (.PNG), I would like that to be put on the JFrame. Usually it will be a square with the image in the middle with white background, which I am unable to remove.

    Help appreciated.
    Last edited by Ivanskodje; June 12th, 2014 at 02:34 PM.


  2. #2

  3. #3
    Junior Member Ivanskodje's Avatar
    Join Date
    Jun 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Custom Image as the window in JFrame

    I saw it before; but somehow I missed the perPixel transparency. Thank you

Similar Threads

  1. Problem In JFrame Window
    By Suryanshi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 14th, 2014, 03:28 AM
  2. Replies: 1
    Last Post: December 17th, 2011, 03:32 AM
  3. [SOLVED] Can't Import AWT Image into custom JPanel
    By JavaSquared in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 9th, 2011, 12:59 AM
  4. Setting JFrame to be only selectable window
    By aussiemcgr in forum AWT / Java Swing
    Replies: 3
    Last Post: July 22nd, 2010, 12:43 PM
  5. how to make a simple JButton on a JFrame window?
    By chronoz13 in forum AWT / Java Swing
    Replies: 8
    Last Post: November 20th, 2009, 10:08 PM