I set up ,the below, dialog box as a test of the called window. How could I
modify this to use the content pane to add the last name, city, state, zip
etc..;
============================================================================
=
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class testdialog extends JFrame {
private JTextField type;
private JTextField address;
public testdialog() {
super("Test Dialog");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
String name = JOptionPane.showInputDialog(null,"Enter Your name: ");
address = new JTextField(name,20);
System.out.println(name);
}
public static void main (String[] arguments) {
JFrame frame = new testdialog();
frame.setVisible(true);
}
}
============================================================================
==========
-----Original Message-----
From: Dwan, James [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 10:52 AM
To: JDJList
Subject: [jdjlist] Re: Calling Windows
Have a look at the java doc for JDialog. You can set the content pane of the
JDialog to whatever you want. Not sure if this solves your problem but
JDialog is a lot more versatile than you describe.
-----Original Message-----
From: William Rice [mailto:[EMAIL PROTECTED]]
Sent: 21 November 2002 15:39
To: JDJList
Subject: [jdjlist] Re: Calling Windows
No JDialog is just ask and the user has one input field to put in an answer.
The child screen is build with JFrame and has many fields for input "Name
Address parent etc".
=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission. There is no intention to
create any legally binding contract or other commitment through the use
of this email.
Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________