public HelpFrame(JFrame f) { super("Help menu"); setSize(320, 240); setLocationRelativeTo(f); setResizable(false); JTextArea message = new JTextArea(); message.setEditable(false); message.setText( "Default keybindings:\n -Cmd+e to toggle terminal\n -Cmd+k to run\n -Cmd+/ to show help\n -Cmd+o for options\n\n" + "Special keywords: \n -'import' can be typed anywhere \n -'method' and then a method will compile\n\n" + "Other: \n -You can also use this for normal Java editing!"); add(message, "Center"); setVisible(true); }