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.*; |
34 |
|
public QueueFrame() { |
35 |
|
super("Server Queue Status"); |
36 |
|
//addVisibleDataComponent(_conent, new StringDataComponent("Host Name", "packet.attributes.machine_name")); |
37 |
< |
|
38 |
< |
getContentPane().add(_content, "Center"); |
37 |
> |
JScrollPane scrollPane = new JScrollPane(_content,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED , JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); |
38 |
> |
getContentPane().add(scrollPane, "Center"); |
39 |
|
JButton close = new JButton("Close Window"); |
40 |
|
close.addActionListener(new ActionListener() { |
41 |
|
public void actionPerformed(ActionEvent e) { |
144 |
|
// note we ignore all other attributes |
145 |
|
} |
146 |
|
if(components.containsKey(dataKey)) { |
147 |
< |
((DataComponent) components.get(dataKey)).setValue(packet.getParam(dataKey)); |
147 |
> |
((DataComponent) components.get(dataKey)).setValue(packet); |
148 |
|
} |
149 |
|
} |
150 |
|
} |