Hi 
Here is a portion of code to declare a Jdialog

public class insCli extends javax.swing.JDialog {
    
    /** Creates new form insCli */
    public insCli(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }
    public static void main(String args[]) {
        new insCli(new javax.swing.JFrame(), true).show();
    }
}
In the initComponents you have to define all the components of your
dialog JTextField,Jbutton,ecc....



Regards
Rinaldo
-----Messaggio originale-----
Da: William Rice [mailto:[EMAIL PROTECTED]] 
Inviato: venerd� 22 novembre 2002 0.20
A: JDJList
Oggetto: [jdjlist] Re: Calling Windows


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
____________________________________________________



____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to