perfsonar-dev - perfsonar: r5188 - in branches/perfsonarui/src/org/perfsonar/perfsonarui: ma/ui/panels ui/panels
Subject: perfsonar development work
List archive
perfsonar: r5188 - in branches/perfsonarui/src/org/perfsonar/perfsonarui: ma/ui/panels ui/panels
Chronological Thread
- From:
- To:
- Subject: perfsonar: r5188 - in branches/perfsonarui/src/org/perfsonar/perfsonarui: ma/ui/panels ui/panels
- Date: Wed, 17 Jun 2009 10:00:20 -0400
Author: nina
Date: 2009-06-17 10:00:20 -0400 (Wed, 17 Jun 2009)
New Revision: 5188
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/BarChartPanel.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/TimeOptionsToolbar.java
Log:
Fix for bug 376 - modified UI elements to look better in crossplatform L&F
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/BarChartPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/BarChartPanel.java
2009-06-17 13:55:02 UTC (rev 5187)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ma/ui/panels/BarChartPanel.java
2009-06-17 14:00:20 UTC (rev 5188)
@@ -182,7 +182,8 @@
pagePanel.setFloatable(true);
pagePanel.setMinimumSize(new Dimension(50,6*12));
pagePanel.setPreferredSize(new Dimension(95,50));
- pagePanel.setBorder(BorderFactory.createTitledBorder("Page"));
+ //pagePanel.setBorder(BorderFactory.createTitledBorder("Page"));
+ pagePanel.add(new JLabel("<html><u>Page</u></html>"));
pagePanel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
JButton label;
page = new JLabel("1 / 1",SwingConstants.CENTER);
@@ -235,6 +236,7 @@
new
JButton(caption,ActionPanel.createImageIcon(iconfile));
label.setMinimumSize(new Dimension(64,8));
label.setToolTipText(tooltip);
+ label.setBorder(null);
return label;
}
/**
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/TimeOptionsToolbar.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/TimeOptionsToolbar.java
2009-06-17 13:55:02 UTC (rev 5187)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/TimeOptionsToolbar.java
2009-06-17 14:00:20 UTC (rev 5188)
@@ -32,6 +32,7 @@
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
+import javax.swing.JLabel;
import javax.swing.JToolBar;
import javax.swing.SwingConstants;
@@ -59,8 +60,9 @@
setRollover(true);
setEnabled(true);
//setBorderPainted(false);
-
- setBorder(BorderFactory.createTitledBorder("Time"));
+ JLabel label = new JLabel("<html><u>Time</u></html>");
+ label.setPreferredSize(new Dimension(100,24));
+ add(label);
timeActions = new ArrayList<ITimeSetAction>();
ButtonGroup bg = new ButtonGroup();
rb = new JButton[timeIntervals.length];
@@ -69,6 +71,7 @@
for (int i=0; i < timeIntervals.length;i++) {
rb[i] = new JButton(timeTitles[i]);
rb[i].setBounds(0,0,100,8);
+ rb[i].setBorder(null);
rb[i].setActionCommand(Long.toString(timeIntervals[i]));
//rb[i].setContentAreaFilled(false);
//rb[i].addItemListener(this);
@@ -91,9 +94,12 @@
//setEnabled(false);
try {
- for (int i=0; i < rb.length;i++)
- ((JButton)rb[i]).setSelected(false);
+ for (int i=0; i < rb.length;i++) {
+ ((JButton)rb[i]).setSelected(false);
+ ((JButton)rb[i]).setBorder(null);
+ }
+
((JButton)e.getSource()).setBorder(BorderFactory.createEtchedBorder());
((JButton)e.getSource()).setSelected(true);
long ti = Long.parseLong(e.getActionCommand());
for (int i=0; i < timeActions.size();i++) {
- perfsonar: r5188 - in branches/perfsonarui/src/org/perfsonar/perfsonarui: ma/ui/panels ui/panels, svnlog, 06/17/2009
Archive powered by MHonArc 2.6.16.