diff --git a/grendel/addressbook/AddressBook.java b/grendel/addressbook/AddressBook.java index 154e7d6754b..550a8edcb26 100644 --- a/grendel/addressbook/AddressBook.java +++ b/grendel/addressbook/AddressBook.java @@ -195,7 +195,7 @@ public class AddressBook extends GeneralFrame { /** * Find the hosting frame, for the file-chooser dialog. */ - protected Frame getParentFrame() { + protected JFrame getParentFrame() { // for (Container p = getParent(); p != null; p = p.getParent()) { // if (p instanceof Frame) { // return (Frame) p; diff --git a/grendel/addressbook/Makefile b/grendel/addressbook/Makefile index a6363cc91f2..c5f7684f040 100644 --- a/grendel/addressbook/Makefile +++ b/grendel/addressbook/Makefile @@ -25,6 +25,7 @@ SUBDIRS= \ SRCS= \ AddressBook.java \ NewCardDialog.java \ + SearchDirectoryDialog.java \ $(NULL) include ../rules.mk diff --git a/grendel/addressbook/SearchDirectoryDialog.java b/grendel/addressbook/SearchDirectoryDialog.java index 88759c6a74c..b9a9c3b77e3 100644 --- a/grendel/addressbook/SearchDirectoryDialog.java +++ b/grendel/addressbook/SearchDirectoryDialog.java @@ -1,10 +1,43 @@ +/* -*- Mode: java; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and limitations + * under the License. + * + * The Original Code is the Grendel mail/news client. + * + * The Initial Developer of the Original Code is Netscape Communications + * Corporation. Portions created by Netscape are Copyright (C) 1997 + * Netscape Communications Corporation. All Rights Reserved. + * + */ + package grendel.addressbook; -import java.awt.*; -import java.awt.event.*; -import java.util.*; +import java.awt.GridLayout; +import java.awt.FlowLayout; +import java.awt.BorderLayout; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.awt.event.ActionListener; +import java.awt.event.ActionEvent; -import javax.swing.*; + +import javax.swing.JComponent; +import javax.swing.JButton; +import javax.swing.JTextField; +import javax.swing.JCheckBox; +import javax.swing.JTabbedPane; +import javax.swing.JPanel; +import javax.swing.JLabel; +import javax.swing.JDialog; +import javax.swing.JFrame; public class SearchDirectoryDialog extends JDialog { @@ -17,7 +50,7 @@ public class SearchDirectoryDialog extends JDialog { JCheckBox cLoginPassword; JCheckBox cSavePassword; - public SearchDirectoryDialog(Frame aParent) { + public SearchDirectoryDialog(JFrame aParent) { //FIX: Resource super(aParent, "Directory Server Property", true);