ProgramPlayDialog draft GUI improved
This commit is contained in:
parent
a49f8b5e5c
commit
c44920edd2
|
@ -65,21 +65,22 @@ public class ProgramPlayDialog extends JPanel implements ActionListener, ChangeL
|
||||||
stepSlider.setPaintLabels(true);
|
stepSlider.setPaintLabels(true);
|
||||||
stepSlider.setBorder(
|
stepSlider.setBorder(
|
||||||
BorderFactory.createEmptyBorder(0, 0, 10, 0));
|
BorderFactory.createEmptyBorder(0, 0, 10, 0));
|
||||||
Font font = new Font("Serif", Font.ITALIC, 15);
|
Font font = new Font("Courier New", Font.PLAIN, 10);
|
||||||
stepSlider.setFont(font);
|
stepSlider.setFont(font);
|
||||||
stepSlider.addChangeListener(this);
|
stepSlider.addChangeListener(this);
|
||||||
|
|
||||||
|
|
||||||
//Create the label that displays the animation.
|
//Create the label that displays the animation.
|
||||||
add(stepSlider);
|
|
||||||
|
|
||||||
int i = stepSlider.getValue();
|
int i = stepSlider.getValue();
|
||||||
console = new JTextArea(outputList.get(i));
|
console = new JTextArea(outputList.get(i));
|
||||||
console.setFont(new Font("Courier New", Font.PLAIN, 13));
|
console.setFont(new Font("Courier New", Font.PLAIN, 13));
|
||||||
console.setForeground(Color.GRAY);
|
console.setForeground(new Color(143, 170, 220));
|
||||||
|
console.setBackground(Color.BLACK);
|
||||||
|
|
||||||
|
|
||||||
add(console);
|
add(console);
|
||||||
|
add(stepSlider);
|
||||||
|
|
||||||
|
|
||||||
this.setPreferredSize(new Dimension(600, 300));
|
this.setPreferredSize(new Dimension(600, 300));
|
||||||
|
|
|
@ -210,7 +210,9 @@ public class Program {
|
||||||
logger.debug(" -- STORAGE -- {}\n", storageData);
|
logger.debug(" -- STORAGE -- {}\n", storageData);
|
||||||
|
|
||||||
|
|
||||||
StringBuilder global = new StringBuilder();
|
StringBuilder global = new StringBuilder("\n");
|
||||||
|
if (stackData.length() > 0) stackData.append("\n");
|
||||||
|
|
||||||
global.append(" -- OPS -- ").append(opsString).append("\n");
|
global.append(" -- OPS -- ").append(opsString).append("\n");
|
||||||
global.append(" -- STACK -- ").append(stackData).append("\n");
|
global.append(" -- STACK -- ").append(stackData).append("\n");
|
||||||
global.append(" -- MEMORY -- ").append(memoryData).append("\n");
|
global.append(" -- MEMORY -- ").append(memoryData).append("\n");
|
||||||
|
|
Loading…
Reference in New Issue