ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/QueueFrame.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/QueueFrame.java (file contents):
Revision 1.6 by ajm, Thu Mar 1 15:48:22 2001 UTC vs.
Revision 1.9 by ajm, Thu Mar 15 01:05:46 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.conient;
2 > package uk.org.iscream.conient;
3  
4   //---IMPORTS---
5 < import uk.ac.ukc.iscream.util.*;
6 < import uk.ac.ukc.iscream.conient.datacomponents.*;
5 > import uk.org.iscream.util.*;
6 > import uk.org.iscream.conient.datacomponents.*;
7   import javax.swing.*;
8   import javax.swing.border.*;
9   import java.util.*;
# Line 95 | Line 95 | public class QueueFrame extends JFrame {
95          newQueueDisplay.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 102)), queueName));
96          newQueueDisplay.add(date);
97          newQueueDisplay.add(total);
98 <        _queuesDisplays.put(queueName, newQueueDisplay);
98 >        _queuesDisplays.put(queueHashCode, newQueueDisplay);
99          try {
100              SwingSafeAdd task = new SwingSafeAdd(_content, newQueueDisplay);
101              SwingUtilities.invokeAndWait(task);
# Line 128 | Line 128 | public class QueueFrame extends JFrame {
128                  // if there are no components looking after this data
129                  // create a new StringDataComponent for it
130                  if(!components.containsKey(dataKey)) {
131 <                    // check if its a disk drive, if it is then we need to deal with it
131 >                    // check if its a queue, if it is then we need to deal with it
132                      if(dataKey.startsWith("packet.queue.attributes.queue")) {
133                          VisibleDataComponent queue = new StringDataComponent("Current length of " + dataKey.substring(dataKey.lastIndexOf('.') + 1), dataKey);
134                          components.put(dataKey, queue);
# Line 136 | Line 136 | public class QueueFrame extends JFrame {
136                              SwingSafeAdd task = new SwingSafeAdd((JPanel)_queuesDisplays.get(queueHashCode), queue);
137                              SwingUtilities.invokeAndWait(task);
138                          } catch (Exception e) {
139 <                            // don't care
139 >                            // if there was a problem
140 >                            System.err.println("ERROR Failed To Add Component - " + e);
141                          }
142                          pack();
143                      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines