Page 6 of 6 FirstFirst ... 456
Results 101 to 104 of 104
Like Tree2Likes

Thread: What is the absolute easiest way to display an image in Swing?

  1. #101
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    317
    Rep Power
    2

    Default Re: What is the absolute easiest way to display an image in Swing?

    I'm confused guys, what should I do? Neither method worked, both putting the image in the directory with the class and just using the filepath :(
    I think Java hates me.

  2. #102
    Daryn is offline Senior Member
    Join Date
    Oct 2012
    Posts
    177
    Rep Power
    2

    Default Re: What is the absolute easiest way to display an image in Swing?

    Are you trying to set the shorcut image or image on the jframe
    With the right know how, anything is possible

  3. #103
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    317
    Rep Power
    2

    Default Re: What is the absolute easiest way to display an image in Swing?

    Quote Originally Posted by Daryn View Post
    Are you trying to set the shorcut image or image on the jframe
    Am setting the img on the JFrame.

  4. #104
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,360
    Blog Entries
    7
    Rep Power
    20

    Default Re: What is the absolute easiest way to display an image in Swing?

    @OP: congratulations, you thread has crossed the magic barrier and because the chance of a thread to end succesfullly is inversely proportional to its length, this thread will end in misery, probably infested by spam, porn, viagra etc. Coding is not just trying without you knowing what you're doing and not listening to the replies given to you; nor does it help to throw in a bunch of code that doesn't work anyway, over and over again; I wish you all the luck in your programming career, you need it. Jeez ...

    kind regards,

    Jos
    jim829 likes this.
    cenosillicaphobia: the fear for an empty beer glass

Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. Retina Display and Swing
    By MW130 in forum New To Java
    Replies: 0
    Last Post: 01-30-2013, 01:00 AM
  2. Swing Bar Graph will not display in JPanel
    By Redefine12 in forum AWT / Swing
    Replies: 5
    Last Post: 05-01-2012, 01:07 AM
  3. Swing UI display
    By bprakash in forum AWT / Swing
    Replies: 15
    Last Post: 11-20-2011, 02:19 PM
  4. Replies: 4
    Last Post: 04-08-2009, 05:51 AM
  5. Swing program to display JVM information
    By satya007 in forum AWT / Swing
    Replies: 3
    Last Post: 11-13-2007, 09:59 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
  •