If i put 10 into the pane, it is fine. Is it a rounding error because i parsed those doubles as ints? It seems the lines get more out of whack the higher the amount of lines the user specifies.
Type: Posts; User: Bamanen
If i put 10 into the pane, it is fine. Is it a rounding error because i parsed those doubles as ints? It seems the lines get more out of whack the higher the amount of lines the user specifies.
Dunno guess I just don't see it. Been looking at this program way to much over past 48 hours. I just don't understand why its fine on the left and not the right.
It has to be .1(10%) from each border. And the grid must scale when the window is enlarged. So I cant really just draw them shorter without messing one of these scenarios up.
package program2;
import javax.swing.JFrame;
import java.awt.*;
import javax.swing.JOptionPane;
public class Program2 extends JFrame {
private static final int FRAME_SIZE = 500;
...
1073
I have worked days on this and I can't figure it out. I just want to comprehend why it isn't working. If anyone have any tips please let me know. Just simply supposed to be a grid, the only...