Mentions légales du service

Skip to content
Snippets Groups Projects
Commit aed9d2a6 authored by PECHOUX Romain's avatar PECHOUX Romain
Browse files

JMenuBar added to MainFrame

parent b050e7ff
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ public class EditorView extends JPanel {
area.setText(area.getText());
m.setSyntaxError(true);
m.update();
}
}
}
}
});
......
......@@ -19,11 +19,16 @@ package view;
import complexityparser.Model;
import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.awt.event.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
/**
* The main window.
*/
public class MainFrame extends JFrame {
public MainFrame(Model m) {
setTheme();
setVisible(true);
......@@ -34,6 +39,8 @@ public class MainFrame extends JFrame {
add(new EditorView(m, this), BorderLayout.WEST);
add(new TreePanel(m), BorderLayout.CENTER);
add(new MessageView(m), BorderLayout.EAST);
//add(new Menu(m,this));
setJMenuBar(new Menu(m,this));
pack();
//setSize(600,600);
}
......
......@@ -26,6 +26,7 @@ import java.awt.*;
* This class is used to show error and standard output caught by the model during the type analysis performed by the TierTypingListener class.
*/
public class MessageView extends JScrollPane implements Observer {
private JTextArea area;
private Model m;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment