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); |
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); |
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 |
|
} |