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

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

The newest version!
package lphystudio.core.swing;

import lphystudio.core.theme.ThemeColours;

import java.awt.*;

public class DataButton extends SquareButton {

    public DataButton(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);
        //((Graphics2D)g).drawString("data", (float)origin.getX(), (float)origin.getY()+10.0f);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy