183184185186187188189190191192193
if (tabs) { if (radarTab == null) { tabPane.add("Radar", radarTab = new RadarTab(tmp)); } if (chatTab == null) { tabPane.add("Chat", (ChatTab) (chatTab = new ChatTab(tmp))); } } else { if (radarTab != null) { tabPane.remove(radarTab); radarTab = null;
244245246247248249250251252253254
public void run() { if (radarTab == null) { tabPane.add("Radar", radarTab = new RadarTab(tmp)); } if (chatTab == null) { tabPane.add("Chat", (ChatTab) (chatTab = new ChatTab(tmp))); } chatTab.addNicks(userList); } }); }