Java JButton setTransparent(JButton btn)

Here you can find the source of setTransparent(JButton btn)

Description

set Transparent

License

Open Source License

Declaration

public static void setTransparent(JButton btn) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.JButton;

public class Main {
    public static void setTransparent(JButton btn) {
        btn.setOpaque(false);/*from  w w w  . j  a v a 2  s .  c o m*/
        btn.setContentAreaFilled(false);
        btn.setBorderPainted(false);
        btn.setBorder(null);
    }
}

Related

  1. setCancelButton(final JRootPane rp, final JButton b)
  2. setEmptyBorder(JButton button, int paddingTop, int paddingLeft, int paddingBottom, int paddingRight)
  3. setEnable(boolean b, JButton... bs)
  4. setImageIcon(JButton b, String fileName, String tip)
  5. setMacBevelButton(JButton button)
  6. setupAutoRepeat(final JButton button, final int intervalMs)
  7. setWFActionMap(Vector actionButtons, String action, Map wfActionMap)
  8. showToolTip(final boolean show, final JWindow tip, final JButton boton, final JLabel tipText)
  9. showToolTip(final boolean show, final JWindow tip, final JButton boton, final JLabel tipText)