Somehow fixed the problem with the timer activating too soon by changing the timer start to when it is in the "inner process" of the main method
This commit is contained in:
@@ -16,8 +16,7 @@ public class axis extends JComponent {
|
||||
yBound = currentY;
|
||||
}
|
||||
|
||||
public void paint(Graphics g)
|
||||
{
|
||||
public void paint(Graphics g) {
|
||||
Graphics2D g2 = (Graphics2D) g;
|
||||
g2.setColor(Color.green);
|
||||
g2.drawLine(xBound/2, 0, xBound/2, yBound);
|
||||
|
||||
Reference in New Issue
Block a user