Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2010
    Posts
    47
    Rep Power
    0

    Question How to customize a JButton?

    Hello.
    I want to give my Jbuttons a custom look, i don't want to change their geometrical shape or so, i want to know how i can make my own button in photoshop or whatever, and complete replace the old JButton look with my jbutton, including borders and all.

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

    Default

    ImageIcon
    setIcon(...)
    setBorder(null)
    setMargin(new Insets(0, 0, 0, 0))

    db

Similar Threads

  1. How to customize JTabbedPane tab header
    By ysbn in forum AWT / Swing
    Replies: 3
    Last Post: 02-10-2011, 04:31 PM
  2. Customize JList
    By kcpavan in forum AWT / Swing
    Replies: 1
    Last Post: 12-01-2010, 04:50 AM
  3. customize formatter class to take in custom format?
    By diskhub in forum Advanced Java
    Replies: 1
    Last Post: 05-17-2010, 06:50 PM
  4. customize sorting
    By evermore in forum Advanced Java
    Replies: 5
    Last Post: 03-28-2010, 04:28 AM
  5. How to Customize Jfreechart value axis?
    By neeraj.singh in forum AWT / Swing
    Replies: 0
    Last Post: 02-16-2009, 08:57 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
  •