So I wanted to start with the following. I don't want the border painted and I dont want the area filled, so I tried overriding the methods. The docs say it has a boolean b, so I tried setting that to false. Now since I overrode it, I'm missing the rest of the method correct? If so, how do I find the rest of it? Is this the best way to achieve what I want. The scenario is I have several buttons and I want to change them, like a css sheet. (I tried using JavaFX but that seems insane)
import javax.swing.JButton;
@SuppressWarnings("serial")
public class SCJButton extends JButton {
/**
* @param args
*/
public SCJButton(String label){
super(label);
}
@Override
public void setBorderPainted(boolean b){
b = false;
}
@Override
public void setContentAreaFilled(boolean b){
b=false;
}
}






