All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lphystudio.core.swing.DataDiamondButton Maven / Gradle / Ivy

The newest version!
package lphystudio.core.swing;

import lphystudio.core.theme.ThemeColours;

import java.awt.*;

public class DataDiamondButton extends DiamondButton {

    public DataDiamondButton(String text) {
        super(text, ThemeColours.getDataButtonColor(), ThemeColours.getDataButtonBorderColor());
    }

    @Override
    public void paintComponent(Graphics g) {

        ((Graphics2D)g).setStroke(new BasicStroke(2.0f));
        super.paintComponent(g);
        ((Graphics2D)g).setStroke(new BasicStroke(1.0f));

        //g.setColor(Color.lightGray);
        //g.drawString("data", 0, 0);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy