jsp.setPreferredSize(new Dimension(400, 100));
jsp.setPreferredSize(new Dimension(550, 200));
  private void displayPlugins(String agentName) {    ArrayList entries =       console.getAgentComponentDescriptions(nodeName, agentName);    if (entries == null)      return;    JList plugInsList = new JList(entries.toArray());    JScrollPane jsp =       new JScrollPane(plugInsList,                       ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,                      ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);    jsp.setPreferredSize(new Dimension(400, 100));    JPanel agentInfoPanel = new JPanel();    agentInfoPanel.setLayout(new GridBagLayout());    plugInsList.setBackground(agentInfoPanel.getBackground());    int x = 0;    int y = 0;    agentInfoPanel.add(new JLabel("SubComponents:"),                   new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0,                                          GridBagConstraints.WEST,                                          GridBagConstraints.NONE,                                          new Insets(10, 0, 5, 5),                                          0, 0));    agentInfoPanel.add(jsp,                   new GridBagConstraints(x, y++, 1, 1, 0.0, 0.0,                                          GridBagConstraints.WEST,                                          GridBagConstraints.NONE,                                          new Insets(0, 0, 5, 0),                                          0, 0));    JOptionPane.showMessageDialog(this, agentInfoPanel,                                   "Information: " + agentName,                                  JOptionPane.PLAIN_MESSAGE);  }