perfsonar-dev - perfsonar: r4027 - in branches/perfsonarui/src: . org/perfsonar/perfsonarui/ui org/perfsonar/perfsonarui/ui/panels
Subject: perfsonar development work
List archive
perfsonar: r4027 - in branches/perfsonarui/src: . org/perfsonar/perfsonarui/ui org/perfsonar/perfsonarui/ui/panels
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4027 - in branches/perfsonarui/src: . org/perfsonar/perfsonarui/ui org/perfsonar/perfsonarui/ui/panels
- Date: Fri, 20 Jun 2008 03:46:49 -0400
Author: nina
Date: 2008-06-20 03:46:48 -0400 (Fri, 20 Jun 2008)
New Revision: 4027
Added:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/warning.png
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
branches/perfsonarui/src/resources.files
Log:
png image instead of red error box at status bar
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
2008-06-19 12:41:44 UTC (rev 4026)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
2008-06-20 07:46:48 UTC (rev 4027)
@@ -37,6 +37,7 @@
import java.io.StringWriter;
import javax.swing.BorderFactory;
+import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
@@ -65,6 +66,7 @@
protected MetaDataList dataList;
protected Exception theError;
protected JLabel errorsLabel;
+ protected ImageIcon errorIcon;
/**
* Comment for <code>serialVersionUID</code>
@@ -111,6 +113,7 @@
*/
@Override
public void addWidgets(IPerfsonarTab psModel) {
+ errorIcon =
ActionPanel.createImageIcon("org/perfsonar/perfsonarui/ui/warning.png");
theError = null;
setLayout(new GridLayout(1,2));
@@ -134,7 +137,7 @@
errorsLabel.setMaximumSize(box);
errorsLabel.setMinimumSize(box);
errorsLabel.setOpaque(true);
-
errorsLabel.setBorder(BorderFactory.createLineBorder(getBackground(),4));
+
//errorsLabel.setBorder(BorderFactory.createLineBorder(getBackground(),4));
errorsLabel.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
@@ -210,12 +213,14 @@
protected void handleException(Exception x) {
theError = x;
if (theError != null) {
- errorsLabel.setText(theError.getMessage());
- errorsLabel.setBackground(Color.red);
+ //errorsLabel.setText(theError.getMessage());
+ errorsLabel.setIcon(errorIcon);
+ //errorsLabel.setBackground(Color.red);
errorsLabel.setToolTipText("Click here for error details");
} else {
- errorsLabel.setText("");
- errorsLabel.setBackground(getBackground());
+ errorsLabel.setIcon(null);
+ //errorsLabel.setText("");
+ //errorsLabel.setBackground(getBackground());
errorsLabel.setToolTipText("");
}
}
Added: branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/warning.png
Property changes on:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/warning.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: branches/perfsonarui/src/resources.files
===================================================================
--- branches/perfsonarui/src/resources.files 2008-06-19 12:41:44 UTC (rev
4026)
+++ branches/perfsonarui/src/resources.files 2008-06-20 07:46:48 UTC (rev
4027)
@@ -1,5 +1,6 @@
org/perfsonar/perfsonarui/ui/perfSONAR_transparent_small.png
org/perfsonar/perfsonarui/ui/PerfSONAR_icon.png
+org/perfsonar/perfsonarui/ui/warning.png
org/perfsonar/perfsonarui/ui/perfSONARidle-154x32.gif
org/perfsonar/perfsonarui/ui/perfSONARbusy-154x32.gif
org/perfsonar/perfsonarui/ui/flowsa-left.png
- perfsonar: r4027 - in branches/perfsonarui/src: . org/perfsonar/perfsonarui/ui org/perfsonar/perfsonarui/ui/panels, svnlog, 06/20/2008
Archive powered by MHonArc 2.6.16.