131 |
|
} catch (NumberFormatException e) { |
132 |
|
throw new NumberFormatException("unable to obtain a valid value for Host.UDP/TCPUpdateTime"); |
133 |
|
} |
134 |
< |
_north.setLayout(new BoxLayout(_north, BoxLayout.Y_AXIS)); |
135 |
< |
_north.add(new JLabel("Showing data from - " + hostName, JLabel.LEFT)); |
136 |
< |
Box top = Box.createHorizontalBox(); |
137 |
< |
top.add(_dataTimer); |
138 |
< |
top.add(Box.createGlue()); |
139 |
< |
top.add(info); |
140 |
< |
top.add(Box.createGlue()); |
141 |
< |
top.add(_heartbeatTimer); |
142 |
< |
_north.add(top); |
134 |
> |
_north.setLayout(new GridLayout(2,1)); |
135 |
> |
JPanel top1 = new JPanel(new GridLayout(1,1)); |
136 |
> |
top1.add(new JLabel("Showing data from - " + hostName, JLabel.CENTER)); |
137 |
> |
_north.add(top1); |
138 |
> |
JPanel top2 = new JPanel(new GridLayout(1,3)); |
139 |
> |
top2.add(_dataTimer); |
140 |
> |
top2.add(info); |
141 |
> |
top2.add(_heartbeatTimer); |
142 |
> |
_north.add(top2); |
143 |
> |
|
144 |
|
|
145 |
|
JPanel date = new JPanel(); |
146 |
|
addVisibleDataComponent(date, new DateDataComponent("Host Time", "packet.attributes.date")); |