Add a Help window

This commit is contained in:
Eideen 2021-02-16 17:12:02 +01:00
parent 62a04cf747
commit 74dd97fc44

View File

@ -57,7 +57,18 @@ public class MainFrame extends JFrame {
} }
public void newHelp() { public void newHelp() {
new Help(tabs); JFrame aide = new JFrame();
aide.setTitle("Aide");
aide.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
aide.setSize(700,800);
aide.setLocationRelativeTo(null);
aide.setVisible(true);
JTextArea helpText = new JTextArea();
helpText.setText(Constants.HELP);
helpText.setEditable(false);
aide.add(helpText);
} }
public void newTab() { public void newTab() {
if(nbTabs>2) if(nbTabs>2)
@ -111,4 +122,3 @@ public class MainFrame extends JFrame {
} }
} }