|
@@ -8,13 +8,13 @@ import javax.swing.*; |
|
|
import java.awt.*; |
|
|
import java.awt.*; |
|
|
import java.awt.event.*; |
|
|
import java.awt.event.*; |
|
|
|
|
|
|
|
|
public class DeleteBook extends JDialog { |
|
|
|
|
|
|
|
|
public class DeleteBookDialog extends JDialog { |
|
|
private JPanel contentPane; |
|
|
private JPanel contentPane; |
|
|
private JButton buttonOK; |
|
|
private JButton buttonOK; |
|
|
private JButton buttonCancel; |
|
|
private JButton buttonCancel; |
|
|
private JLabel warningLbl; |
|
|
private JLabel warningLbl; |
|
|
|
|
|
|
|
|
public DeleteBook() { |
|
|
|
|
|
|
|
|
public DeleteBookDialog() { |
|
|
setContentPane(contentPane); |
|
|
setContentPane(contentPane); |
|
|
setModal(true); |
|
|
setModal(true); |
|
|
getRootPane().setDefaultButton(buttonOK); |
|
|
getRootPane().setDefaultButton(buttonOK); |
|
@@ -58,7 +58,7 @@ public class DeleteBook extends JDialog { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|
DeleteBook dialog = new DeleteBook(); |
|
|
|
|
|
|
|
|
DeleteBookDialog dialog = new DeleteBookDialog(); |
|
|
dialog.pack(); |
|
|
dialog.pack(); |
|
|
dialog.setVisible(true); |
|
|
dialog.setVisible(true); |
|
|
System.exit(0); |
|
|
System.exit(0); |