From b50d0784e3e93f2713c11ac568a1080a40fe767d Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 4 Jun 2012 13:40:56 +0200 Subject: [PATCH] Set Notes window to open by default. Changed name of the menu item in the Tools menu. Slightly shorter default note text. --- tools/cooja/java/se/sics/cooja/plugins/Notes.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/Notes.java b/tools/cooja/java/se/sics/cooja/plugins/Notes.java index 960eed103..942e10e22 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/Notes.java +++ b/tools/cooja/java/se/sics/cooja/plugins/Notes.java @@ -56,13 +56,13 @@ import se.sics.cooja.PluginType; import se.sics.cooja.Simulation; import se.sics.cooja.VisPlugin; -@ClassDescription("Notes") -@PluginType(PluginType.SIM_PLUGIN) +@ClassDescription("Notes...") +@PluginType(PluginType.SIM_STANDARD_PLUGIN) public class Notes extends VisPlugin { private static final long serialVersionUID = 1L; private static Logger logger = Logger.getLogger(Visualizer.class); - private JTextArea notes = new JTextArea("enter simulation notes here"); + private JTextArea notes = new JTextArea("Enter notes here"); private boolean decorationsVisible = true; public Notes(Simulation simulation, GUI gui) { @@ -100,7 +100,10 @@ public class Notes extends VisPlugin { }); } - this.setSize(300, 300); + + /* XXX HACK: here we set the position and size of the window when it appears on a blank simulation screen. */ + this.setLocation(680, 0); + this.setSize(gui.getDesktopPane().getWidth() - 680, 160); } public String getNotes() {