Hi,
the following patch (affecting just
ConfigureButton.java) adds a menu item (Un)Hide that
can be used to hide the title bar which makes the
pspdash window a lot more compact and less intrusive.
--- pspdash/ConfigureButton.java 2003-08-24
06:24:06.000000000 +0100
+++ pspdash.new/ConfigureButton.java 2004-01-01
17:04:48.000000000 +0000
@@ -73,6 +73,7 @@
static final String DATA_ANALYSIS = "Data_Analysis";
static final String IMPORT_EXPORT = "Export";
static final String HELP_MENU = "Help";
+ static final String UN_HIDE = "(Un)Hide";
static final String EXIT_PROGRAM = "Exit";
static final String HELP_FRAME = "Help_Topics";
@@ -92,6 +93,7 @@
{ TASK_DIALOG, "TaskAndSchedule???" },
{ DATA_ANALYSIS, "DataChartsAndReports" },
{ IMPORT_EXPORT, "ExportingData" },
+ { UN_HIDE, null },
{ HELP_MENU, null },
{ EXIT_PROGRAM, null } };
@@ -277,6 +279,18 @@
public void launchForum () {
Browser.launch(FORUM_URL); }
public void showConsole () {
ConsoleWindow.showInstalledConsole(); }
+
+ public void Un_Hide() {
+
+ parent.dispose();
+ if (parent.isUndecorated())
+ parent.setUndecorated(false);
+ else
+ parent.setUndecorated(true);
+
+ parent.pack();
+ parent.show();
+ }
public void exitProgram() { parent.exitProgram(); }
@@ -314,6 +328,8 @@
submitBug ();
} else if (cmd.equals(HELP_FORUM)) {
launchForum ();
+ } else if (cmd.equals(UN_HIDE)) {
+ Un_Hide ();
} else if (cmd.equals(HELP_CONSOLE)) {
showConsole ();
} else if (cmd.equals(EXIT_PROGRAM)) {
@@ -321,4 +337,4 @@
}
}
Templates/resources/PSPDashboard.properties needs to be
modified to add the following line
(Un)Hide=(Un)Hide
Also, maybe (Un)Compact would be a more appropriate
menu item.
Please let me know if you need any more info.
HTH,
Shri