Created
June 10, 2012 22:47
-
-
Save Cherubi/2907576 to your computer and use it in GitHub Desktop.
näkyvyysratkaisu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nopeustesti; | |
import java.awt.Graphics; | |
import javax.swing.JButton; | |
public class Nappula extends JButton { | |
public Nappula(String teksti) { | |
super(teksti); | |
} | |
@Override | |
public void paintComponent(Graphics g) { | |
g.setColor(getBackground()); | |
g.fillOval(0, 0, getWidth(), getHeight()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment