Results 1 to 5 of 5
  1. #1
    blackstardlb is offline Member
    Join Date
    Jun 2011
    Posts
    10
    Rep Power
    0

    Default Make an image Popup??

    What code is needed to make an image pop up when u press a button?


    thanks in advance.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by blackstardlb View Post
    What code is needed to make an image pop up when u press a button?
    Sorry, but this is a very general, and in fact overly-broad question without context. What library are you talking about? Swing? AWT? SWT? Other? What have you tried? What errors have you seen?

    Please give us a little to go on. Otherwise I will assume that it's Swing and recommend that you put an ImageIcon in a JLabel, the JLabel in a JOptionPane and display the JOptionPane. The Swing tutorials and API can help provide you with the details and the rest is up to you. Good luck, and hoping you find success (and ask better questions )

  3. #3
    blackstardlb is offline Member
    Join Date
    Jun 2011
    Posts
    10
    Rep Power
    0

    Default

    I'm using netbeans GUI so i think its Swing

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by blackstardlb View Post
    I'm using netbeans GUI so i think its Swing
    My suggestion is to not use NetBeans to generate your GUI code, because all that happens is you create GUI code without any understanding about what it does. Instead use NetBeans as your IDE but create your own Swing code from scratch so you gain an understanding about what it does. You can learn more about Swing here: Using Swing Comonents

  5. #5
    blackstardlb is offline Member
    Join Date
    Jun 2011
    Posts
    10
    Rep Power
    0

Similar Threads

  1. Help! (How To Make An Image Popup?)
    By Snowball in forum New To Java
    Replies: 10
    Last Post: 06-16-2011, 11:15 PM
  2. Make a clickable moving image?
    By scheffetz in forum New To Java
    Replies: 1
    Last Post: 04-08-2011, 07:54 PM
  3. How to make a background image
    By Purple Turtle in forum Java Software
    Replies: 2
    Last Post: 11-04-2010, 07:32 AM
  4. To make image move
    By mneskovic in forum New To Java
    Replies: 4
    Last Post: 05-08-2010, 08:23 PM
  5. Replies: 1
    Last Post: 01-15-2008, 07:12 PM

Tags for this Thread

Posting Permissions

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