Results 1 to 3 of 3
  1. #1
    badass708 is offline Member
    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Default Need help with JButton

    If i want to use an image on my JButton, where do I store it on my hard drive?

    I used System.out.println(System.getProperty("user.dir")) ;

    To see the working dir and stored my images there but it is still not working. please help me out

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

    Default Re: Need help with JButton

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

  3. #3
    badass708 is offline Member
    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Replies: 1
    Last Post: 01-15-2013, 06:44 PM
  2. JButton
    By Proshitness in forum AWT / Swing
    Replies: 11
    Last Post: 12-07-2011, 04:25 PM
  3. ActionListener for JButton after changing Button to JButton
    By ravi.joshi53 in forum Java Applets
    Replies: 2
    Last Post: 10-07-2011, 07:35 AM
  4. jbutton
    By Patea2000 in forum NetBeans
    Replies: 1
    Last Post: 03-16-2011, 08:56 AM
  5. Help with JButton
    By geoffreybarwise in forum New To Java
    Replies: 4
    Last Post: 05-21-2008, 10:48 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
  •