Hello I have a problem creating a cache simulator.
I created a panel in witch I want to draw nrofblocks
blocks each with blocksize
lines.
I don't know what is the best way to do this, that is why I am asking for help.
private static final int LEN = 1024;
/*...*/
int blocksize = Integer.parseInt(textField.getText());
int nrofblocks = LEN/blocksize;
JPanel block_panel = new JPanel();
block_panel.setBounds(140, 16, 534, 398);
getContentPane().add(block_panel);