ProgramPlayDialog draft GUI improved

This commit is contained in:
romanman 2014-06-02 18:24:10 +03:00
parent a49f8b5e5c
commit c44920edd2
2 changed files with 7 additions and 4 deletions

View File

@ -65,21 +65,22 @@ public class ProgramPlayDialog extends JPanel implements ActionListener, ChangeL
stepSlider.setPaintLabels(true);
stepSlider.setBorder(
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.addChangeListener(this);
//Create the label that displays the animation.
add(stepSlider);
int i = stepSlider.getValue();
console = new JTextArea(outputList.get(i));
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(stepSlider);
this.setPreferredSize(new Dimension(600, 300));

View File

@ -210,7 +210,9 @@ public class Program {
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(" -- STACK -- ").append(stackData).append("\n");
global.append(" -- MEMORY -- ").append(memoryData).append("\n");