|
From: <doc...@us...> - 2007-08-22 00:08:08
|
Revision: 160
http://openpcl.svn.sourceforge.net/openpcl/?rev=160&view=rev
Author: documentsystems
Date: 2007-08-21 17:08:10 -0700 (Tue, 21 Aug 2007)
Log Message:
-----------
Howard Hoagland. In the OpenPCLViewer class, changed the setPreferredSize on the status bar to be 1 line of text high instead of 2 lines of text for the status bar. Also, don't initially put the app name and version and description on the status bar at app startup time.
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/OpenPCLViewer.java
Modified: openpcl/src/com/openpcl/viewer/OpenPCLViewer.java
===================================================================
--- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-08-21 21:03:25 UTC (rev 159)
+++ openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-08-22 00:08:10 UTC (rev 160)
@@ -632,9 +632,8 @@
mPosStatusBar = new PosStatusBar();
FontMetrics tFm = getFontMetrics((new JLabel("H")).getFont());
// Make the height of the status bar from the current font for JLabels
- mPosStatusBar.setPreferredSize(new Dimension(1, (tFm.getHeight() * 2) + 12));
- mPosStatusBar.setStatusBarText(getAppName() + getAppDescription());
- mPosStatusBar.setStatusBarTextLine2(getAppVersion());
+ mPosStatusBar.setPreferredSize(new Dimension(1, tFm.getHeight() + 6));
+ mPosStatusBar.setStatusBarText("");
// If startup options allows, add the status bar
if (mPosStartupOptions.getShowStatusbar()) {
add(mPosStatusBar, BorderLayout.SOUTH);
@@ -1065,7 +1064,8 @@
FontMetrics tFm = getFontMetrics((new JLabel("H")).getFont());
// Adjust the height of the status bar
- mPosStatusBar.setPreferredSize(new Dimension(1, (tFm.getHeight() * 2) + 12));
+ mPosStatusBar.adjustCursorPixelLocationPanelSize();
+ mPosStatusBar.setPreferredSize(new Dimension(1, tFm.getHeight() + 6));
revalidate();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|