Results 1 to 4 of 4
  1. #1
    dpedroia15 is offline Member
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Default Custom Button - Best way?

    Hey, so I was wondering how to make a custom JButton for a GUI I made.

    This is an example, and not what I'm actually planning on, but say I wanted to create a button that would look like zebra skin. Would I have to create and image in Photoshop and somehow use that as the button, or would I create it's look through Java...?

    I've tried Googling this to no avail. I havent found another site that explicitly explains how to do what I need.

    If this is way over my head, then please, tell me. But if someone could possibly give an explanation on how to go about doing this, it would be great.

    Thanks

  2. #2
    dpedroia15 is offline Member
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Default

    Nevermind, I'm just too moronic to check the Official Java Site which has the exact thing I was looking for.

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

    Default

    Good show at solving your own question, and kudos for sharing that solution for everyone else! Surely your post will save someone else the same frustration in the future.

  4. #4
    hero is offline Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    0

    Default

    Just load an image onto that button and set the button undecorated in some way, I remember there are methods for it but i don't know them by heart..
    Then you just have an image as a button.

Similar Threads

  1. Custom GUI...Help?!
    By wadhah.alhaddad in forum New To Java
    Replies: 1
    Last Post: 02-07-2010, 03:54 PM
  2. Custom JTree
    By guyjasper in forum AWT / Swing
    Replies: 0
    Last Post: 10-20-2008, 04:50 PM
  3. Custom tgs in JSP
    By ravian in forum New To Java
    Replies: 2
    Last Post: 12-29-2007, 05:05 PM

Posting Permissions

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