< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HSDB.java

Print this page
rev 59104 : imported patch serviceability


 464           attachDialog.setVisible(false);
 465           desktop.remove(attachDialog);
 466           workerThread.invokeLater(new Runnable() {
 467               public void run() {
 468                 attach(pidTextField.getText());
 469               }
 470             });
 471         }
 472       };
 473 
 474     pidTextField.addActionListener(attacher);
 475     panel.add(pidTextField);
 476     attachDialog.getContentPane().add(panel, BorderLayout.NORTH);
 477 
 478     Box vbox = Box.createVerticalBox();
 479     panel = new JPanel();
 480     panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
 481     panel.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
 482     JTextArea ta = new JTextArea(
 483                                  "Enter the process ID of a currently-running HotSpot process. On " +
 484                                  "Solaris and most Unix operating systems, this can be determined by " +
 485                                  "typing \"ps -u <your username> | grep java\"; the process ID is the " +
 486                                  "first number which appears on the resulting line. On Windows, the " +
 487                                  "process ID is present in the Task Manager, which can be brought up " +
 488                                  "while logged on to the desktop by pressing Ctrl-Alt-Delete.");
 489     ta.setLineWrap(true);
 490     ta.setWrapStyleWord(true);
 491     ta.setEditable(false);
 492     ta.setBackground(panel.getBackground());
 493     panel.add(ta);
 494     vbox.add(panel);
 495 
 496     Box hbox = Box.createHorizontalBox();
 497     hbox.add(Box.createGlue());
 498     JButton button = new JButton("OK");
 499     button.addActionListener(attacher);
 500     hbox.add(button);
 501     hbox.add(Box.createHorizontalStrut(20));
 502     button = new JButton("Cancel");
 503     button.addActionListener(new ActionListener() {
 504         public void actionPerformed(ActionEvent e) {




 464           attachDialog.setVisible(false);
 465           desktop.remove(attachDialog);
 466           workerThread.invokeLater(new Runnable() {
 467               public void run() {
 468                 attach(pidTextField.getText());
 469               }
 470             });
 471         }
 472       };
 473 
 474     pidTextField.addActionListener(attacher);
 475     panel.add(pidTextField);
 476     attachDialog.getContentPane().add(panel, BorderLayout.NORTH);
 477 
 478     Box vbox = Box.createVerticalBox();
 479     panel = new JPanel();
 480     panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
 481     panel.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
 482     JTextArea ta = new JTextArea(
 483                                  "Enter the process ID of a currently-running HotSpot process. On " +
 484                                  "most Unix operating systems, this can be determined by " +
 485                                  "typing \"ps -u <your username> | grep java\"; the process ID is the " +
 486                                  "first number which appears on the resulting line. On Windows, the " +
 487                                  "process ID is present in the Task Manager, which can be brought up " +
 488                                  "while logged on to the desktop by pressing Ctrl-Alt-Delete.");
 489     ta.setLineWrap(true);
 490     ta.setWrapStyleWord(true);
 491     ta.setEditable(false);
 492     ta.setBackground(panel.getBackground());
 493     panel.add(ta);
 494     vbox.add(panel);
 495 
 496     Box hbox = Box.createHorizontalBox();
 497     hbox.add(Box.createGlue());
 498     JButton button = new JButton("OK");
 499     button.addActionListener(attacher);
 500     hbox.add(button);
 501     hbox.add(Box.createHorizontalStrut(20));
 502     button = new JButton("Cancel");
 503     button.addActionListener(new ActionListener() {
 504         public void actionPerformed(ActionEvent e) {


< prev index next >