Permalink
Browse files

Fixes #48

  • Loading branch information...
Markus Binsteiner
Markus Binsteiner committed Jun 28, 2012
1 parent 3756c2f commit d67d9fd83dc6fccd12383a16cdd25bf91854eb08
@@ -7,6 +7,7 @@
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Cursor;
+import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
@@ -20,6 +21,7 @@
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
import javax.swing.table.TableColumn;
@@ -82,6 +84,9 @@ private void showMenu(MouseEvent e) {
private JMenuItem mntmKillSelectedJobs;
private JMenuItem mntmKillAndClean;
+ /**
+ * @wbp.parser.constructor
+ */
public SimpleSingleJobsGrid(ServiceInterface si,
EventList<JobObject> jobList) {
this.si = si;
@@ -327,14 +332,22 @@ protected void killSelectedJobs(final boolean clean) {
message.append(job.getJobname() + "\n");
}
- final int n = JOptionPane.showConfirmDialog(getRootPane(),
- message.toString(), "Kill and clean job(s)",
+ JTextArea text = new JTextArea();
+ text.setText(message.toString());
+ text.setLineWrap(false);
+ JScrollPane scrollPane = new JScrollPane(new JTextArea(
+ message.toString()));
+ scrollPane.setPreferredSize(new Dimension(320, 240));
+
+ final int n = JOptionPane.showConfirmDialog(getRootPane(), scrollPane,
+ "Kill and clean job(s)",
JOptionPane.YES_NO_OPTION);
if (n == JOptionPane.YES_OPTION) {
lockUI(true);
+
for (final JobObject job : getSelectedJobs()) {
// getTable().getSelectionModel().clearSelection();
try {

0 comments on commit d67d9fd

Please sign in to comment.