JOptionPane.OK_OPTION);
JOptionPane.PLAIN_MESSAGE);
  private void displayProcessInfo(ProcessStatus[] ps) {    String[][] psInfo = new String[ps.length][];    for (int i = 0; i < ps.length; i++) {      String[] singlePSInfo = new String[5];      singlePSInfo[0] = String.valueOf(ps[i].getProcessIdentifier());      singlePSInfo[1] = String.valueOf(ps[i].getStartTime());      singlePSInfo[2] = String.valueOf(ps[i].getParentProcessIdentifier());      singlePSInfo[3] = ps[i].getUserName();      singlePSInfo[4] = ps[i].getCommand();      psInfo[i] = singlePSInfo;    }    String[] columnNames = { "PID", "Start Time", "Parent PID",                             "User Name", "Command" };    JTable table = new JTable(psInfo, columnNames);    JScrollPane jsp = new JScrollPane(table);    table.setPreferredScrollableViewportSize(new Dimension(400, 100));    JOptionPane.showConfirmDialog(this, jsp, "Process Status",                                   JOptionPane.OK_OPTION);  }