Java Swing Icon getbtniconpresspress(String Iconpath1, String pressIconpath2, String pressIconpath3)

Here you can find the source of getbtniconpresspress(String Iconpath1, String pressIconpath2, String pressIconpath3)

Description

getbtniconpresspress

License

Apache License

Declaration

public static JButton getbtniconpresspress(String Iconpath1, String pressIconpath2, String pressIconpath3) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class Main {
    public static JButton getbtniconpresspress(String Iconpath1, String pressIconpath2, String pressIconpath3) {

        JButton button = new JButton();
        button.setIcon(new ImageIcon(Iconpath1));
        button.setPressedIcon(new ImageIcon(pressIconpath2));
        button.setPressedIcon(new ImageIcon(pressIconpath3));
        button.setBorder(null);/*  w ww.  j a  va2 s  .c o  m*/
        button.setFocusPainted(false);
        button.setContentAreaFilled(false);

        return button;

    }
}

Related

  1. darken(Icon icon)
  2. emptyIcon(final int width, final int height)
  3. getApplicationIcons()
  4. getBadgedIcon(Icon icon, Icon badge)
  5. getbtnIcon(String iconpath)
  6. getClosestIcon(Collection icons, int height)
  7. getDefaultIcon()
  8. getDefaultIcon()
  9. getDefaultIcon()