Hey guys,
I have an Jlabel class and trying to simply add it to the panel in my main class. However is nowhere to be seen! No errors are being output so currently have no idea what wrong...unless you can see whether my method is wrong...
Jlabel class:
public class egLabel extends JLabel{
int angleOfRotation;
ImageIcon icon;
public egLabel(int angleOfRotation, ImageIcon icon) {
this.angleOfRotation = angleOfRotation;
this.icon = icon;
this.setBounds(0,0,150,250);
this.setVisible(true);
}
. . .
Main class:
labelOne = new egLable(labelAngle, img);
pCenter.add(labelOne, null);
Cleo