Results 1 to 3 of 3
  1. #1
    SMITTY is offline Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Default JOptionPane Help

    I am trying to set a .jpg as the background to a JOptionPane and I can't figure it out.

    Please Help

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: JOptionPane Help

    Subclass JPanel and override paintComponent(...) to draw the image. Add components as required and pass an instance of the subclassed JPanel as the message argument to the JOptionPane's static method.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: JOptionPane Help

    Moved from New to Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. JOptionPane help....
    By outforlunch in forum New To Java
    Replies: 1
    Last Post: 09-15-2012, 10:00 PM
  2. JOptionPane
    By louiedogg418 in forum New To Java
    Replies: 3
    Last Post: 07-03-2011, 07:04 PM
  3. Help with JOptionPane
    By javaman1 in forum New To Java
    Replies: 6
    Last Post: 11-13-2010, 11:40 PM
  4. JOptionpane
    By tommyyyy in forum New To Java
    Replies: 2
    Last Post: 03-20-2009, 09:33 AM
  5. JOptionPane
    By whosadork in forum New To Java
    Replies: 2
    Last Post: 10-23-2008, 03:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •