Example usage for javax.swing JButton setOpaque

List of usage examples for javax.swing JButton setOpaque

Introduction

In this page you can find the example usage for javax.swing JButton setOpaque.

Prototype

@BeanProperty(expert = true, description = "The component's opacity")
public void setOpaque(boolean isOpaque) 

Source Link

Document

If true the component paints every pixel within its bounds.

Usage

From source file:org.ut.biolab.medsavant.client.view.component.SearchableTablePanel.java

private JButton niceButton() {
    JButton b = new JButton();
    b.setBorder(null);//from   www  . j  a  v  a 2s  . c  o m
    b.setBorderPainted(false);
    b.setOpaque(false);
    return b;
}

From source file:org.ut.biolab.medsavant.client.view.genetics.GeneticsSection.java

private JButton createExportVCFButton() {
    JButton exportButton = new JButton("Export Variants");
    exportButton.setOpaque(false);
    exportButton.addActionListener(new ActionListener() {
        @Override// www .j a v a2s  .  c  om
        public void actionPerformed(ActionEvent e) {
            try {
                new ExportVCFWizard().setVisible(true);
            } catch (Exception ex) {
                ClientMiscUtils.reportError("Unable to launch Variant Export wizard: %s", ex);
            }
        }
    });
    return exportButton;
}