byte[] agentIconBytes, TabPanelCollection tabPanelCollection,
String moduleName) {
super(new BorderLayout());
this.tabPanelCollection = tabPanelCollection;
topPanel = new JPanel();
sessionDropdownPanel = new JPanel(new WrapLayout());
sessionDropdownPanel.add(new JLabel("Session: "));
sessionDropdown = new JComboBox();
sessionDropdown.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Session session = (Session) sessionDropdown.getSelectedItem();
selectSession(session);
}
});
sessionDropdown.setRenderer(new SessionRenderer());
sessionDropdownPanel.add(sessionDropdown);
sessionDropdownPanel.setEnabled(false);
sessionDropdownPanel.setVisible(false);
topPanel.add(sessionDropdownPanel);
moduleDropdownPanel = new JPanel(new WrapLayout());
moduleDropdownPanel.add(new JLabel("Module: "));
moduleDropdown = new JComboBox();
moduleDropdown.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {