HI,
All I want to do is put a straight line under my 3 labels which I have loaded into a JFrame.
After my JFrame has loaded I use the method repaint()
which is supposed to call:
public void paintComponent(Graphics comp) {
Graphics2D comp2D = (Graphics2D)comp;
comp2D.drawLine(0,60,100,60);
}
Which does not draw my line. The method repaint()
does not even allow me to go to the method paintComponent(Graphics comp)
. What am I doing wrong
Any help would be appreciated