1 package com
.swabunga
.spell
.swing
;
3 import com
.swabunga
.spell
.event
.*;
5 import javax
.swing
.text
.*;
8 import java
.awt
.event
.*;
10 /** Implementation of a spell check dialog.
12 * @author Jason Height (jheight@chariot.net.au)
14 public class JSpellDialog
extends JDialog
implements ActionListener
, WindowListener
{
15 private JSpellForm form
= new JSpellForm();
16 private SpellCheckEvent event
= null
;
18 public JSpellDialog(Frame owner
, String title
, boolean modal
) {
19 super(owner
, title
, modal
);
23 public JSpellDialog(Dialog owner
, String title
, boolean modal
) {
24 super(owner
, title
, modal
);
28 private void initialiseDialog() {
29 getContentPane().add(form
);
30 form
.addActionListener(this);
31 addWindowListener(this);
32 //setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
37 public void show(SpellCheckEvent e
) {
38 // System.out.println("Show");
40 form
.setSpellEvent(e
);
44 public void actionPerformed(ActionEvent e
) {
48 public void windowOpened(WindowEvent e
) {
50 /** Cancel the event if the Dialog Close button is pressed*/
51 public void windowClosing(WindowEvent e
) {
55 public void windowClosed(WindowEvent e
) {
57 public void windowIconified(WindowEvent e
) {
59 public void windowDeiconified(WindowEvent e
) {
61 public void windowActivated(WindowEvent e
) {
63 public void windowDeactivated(WindowEvent e
) {