Fix issue with dialog not being shown up relative to the MainWindow.
Bu işleme şunda yer alıyor:
ebeveyn
23fa24377d
işleme
bd1c393053
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
|
|
@ -185,7 +185,7 @@ public class MainWindow extends JFrame {
|
||||||
|
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
int confirmed = JOptionPane.showConfirmDialog(null,
|
int confirmed = JOptionPane.showConfirmDialog(MainWindow.this,
|
||||||
"Are you sure you want to close the application?", "Exit Confirmation",
|
"Are you sure you want to close the application?", "Exit Confirmation",
|
||||||
JOptionPane.YES_NO_OPTION);
|
JOptionPane.YES_NO_OPTION);
|
||||||
|
|
||||||
|
|
@ -683,7 +683,7 @@ public class MainWindow extends JFrame {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
if (currentThread.isRunning()) {
|
if (currentThread.isRunning()) {
|
||||||
int confirmed = JOptionPane.showConfirmDialog(null,
|
int confirmed = JOptionPane.showConfirmDialog(MainWindow.this,
|
||||||
"Are you sure you want to kill the running thread?",
|
"Are you sure you want to kill the running thread?",
|
||||||
"Kill Confirmation", JOptionPane.YES_NO_OPTION);
|
"Kill Confirmation", JOptionPane.YES_NO_OPTION);
|
||||||
if (confirmed == JOptionPane.YES_OPTION) {
|
if (confirmed == JOptionPane.YES_OPTION) {
|
||||||
|
|
|
||||||
Yükleniyor…
Yeni konuda referans