187 |
|
*/ |
188 |
|
private void addHostPanel(String host) { |
189 |
|
HostDisplayPanel hostPanel = new HostDisplayPanel(host); |
190 |
< |
//SwingSafeAdd task = new SwingSafeAdd(_displayPane, hostPanel); |
191 |
< |
//SwingUtilities.invokeLater(task); |
190 |
> |
SwingSafeAddCard task = new SwingSafeAddCard(_displayPane, hostPanel, host); |
191 |
> |
SwingUtilities.invokeLater(task); |
192 |
|
_displayPane.add(hostPanel, host); |
193 |
|
_hostList.put(host, hostPanel); |
194 |
|
|
221 |
|
* channel is opened. |
222 |
|
*/ |
223 |
|
public void cleanUpTabs() { |
224 |
+ |
int currloc = getDividerLocation(); |
225 |
|
_displayPaneLayout = new CardLayout(); |
226 |
|
_displayPane = new JPanel(_displayPaneLayout); |
227 |
|
JScrollPane right = new JScrollPane(_displayPane); |
228 |
|
setRightComponent(right); |
229 |
+ |
setDividerLocation(currloc); |
230 |
|
} |
231 |
|
|
232 |
|
//---ACCESSOR/MUTATOR METHODS--- |