code: private JPanel makePanel(String sDefPID) throws IOException {
  
          JTextArea supportsMethodsTextArea = new JTextArea("   defines method");
          supportsMethodsTextArea.setLineWrap(false);
          supportsMethodsTextArea.setEditable(false);
          supportsMethodsTextArea.setBackground(Administrator.BACKGROUND_COLOR);
          JTextArea methodParametersTextArea = new JTextArea("   with parm(s)");
          methodParametersTextArea.setLineWrap(false);
          methodParametersTextArea.setEditable(false);
          methodParametersTextArea.setBackground(Administrator.BACKGROUND_COLOR);
  
          JComponent[] left =
                  new JComponent[] {supportsMethodsTextArea,
                          methodParametersTextArea};
  
          //
          // Methods
          //
          List<MethodDefinition> methodDefs = Util.getMethodDefinitions(sDefPID);
          String[] methodSelections = new String[methodDefs.size()];
          for (int i = 0; i < methodDefs.size(); i++) {
              MethodDefinition def = (MethodDefinition) methodDefs.get(i);
              StringBuffer buf = new StringBuffer();
              buf.append(def.getName());
              if (def.getLabel() != null) {
                  buf.append(" - ");
                  buf.append(def.getLabel());
              }
              methodSelections[i] = buf.toString();
          }
          final JComboBox<String> methodComboBox =
                  new JComboBox<String>(methodSelections);
          Administrator.constrainHeight(methodComboBox);
  
          //
          // Parameters... ParameterPanel handles the switching and displaying
          //
          final ParameterPanel parameterPanel = new ParameterPanel(methodDefs);
  
          methodComboBox.addActionListener(new ActionListener() {
  
              public void actionPerformed(ActionEvent evt) {
                  String[] parts =
                          ((String) methodComboBox.getSelectedItem())
                                  .split(" - ");
                  parameterPanel.show(parts[0]);
                  parameterPanel.revalidate();
              }
          });
  
          JComponent[] right = new JComponent[] {methodComboBox, parameterPanel};
  
          GridBagLayout gb = new GridBagLayout();
          JPanel panel = new JPanel(gb);
          panel.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
          Util.addRows(left, right, gb, panel, true, false);
  
          return panel;
      }
docs: Create and return a new panel describing the service definition. Methods
  dropdown "methodName - descriptionIfExists" Parameters "None." |
  tabbedPane