how to get text from?

i have code like this ?

import javax.swing.*;

import javax.swing.border.*;

import java.awt.event.*;

import java.awt.*;

class ParamGUIFirstextends JPanel

{

private JLabel lblHH =new JLabel("HH :");

private JLabel lblD =new JLabel("D :");

private JLabel lblDL =new JLabel("DL :");

private JLabel lblTH =new JLabel("TH :");

private JLabel lblRD =new JLabel("RD :");

private JTextField textFieldHH =new JTextField(5);

private JTextField textFieldD =new JTextField(5);

private JTextField textFieldDL =new JTextField(5);

private JTextField textFieldTH =new JTextField(5);

private JTextField textFieldRD =new JTextField(5);

ParamGUIFirst()

{

showGUI();

}

publicvoid showGUI()

{

setLayout(null);

setPreferredSize(new Dimension(200,250));

Insets insets = getInsets();

Dimension size = lblHH.getPreferredSize();

lblHH.setBounds(15+insets.left,30+insets.top,size.width,size.height);

size = textFieldHH.getPreferredSize();

textFieldHH.setBounds(130+insets.left,30+insets.top,size.width,size.height);

size = lblD.getPreferredSize();

lblD.setBounds(15+insets.left,70+insets.top,size.width,size.height);

size = textFieldD.getPreferredSize();

textFieldD.setBounds(130+insets.left,70+insets.top,size.width,size.height);

size = lblDL.getPreferredSize();

lblDL.setBounds(15+insets.left,110+insets.top,size.width,size.height);

size = textFieldDL.getPreferredSize();

textFieldDL.setBounds(130+insets.left,110+insets.top,size.width,size.height);

size = lblTH.getPreferredSize();

lblTH.setBounds(15+insets.left,150+insets.top,size.width,size.height);

size = textFieldTH.getPreferredSize();

textFieldTH.setBounds(130+insets.left,150+insets.top,size.width,size.height);

size = lblRD.getPreferredSize();

lblRD.setBounds(15+insets.left,190+insets.top,size.width,size.height);

size = textFieldRD.getPreferredSize();

textFieldRD.setBounds(130+insets.left,190+insets.top,size.width,size.height);

setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),"Title"));

add(lblHH);

add(textFieldHH);

add(lblD);

add(textFieldD);

add(lblDL);

add(textFieldDL);

add(lblTH);

add(textFieldTH);

add(lblRD);

add(textFieldRD);

}

publicvoid showParamGUI()

{

ParamGUIFirst paramGUI =new ParamGUIFirst();

JOptionPane pane =new JOptionPane();

int n = pane.showConfirmDialog(this,paramGUI,"SettingParameter",JOptionPane.OK_CANCEL_OPTION);

}

}

class DeformGUIextends JFrame

{

private JPanel deformPanel =new JPanel();

private JPanel btnPanel =new JPanel();

private JLabel lblTitle =new JLabel("Title..");

private JLabel lbl1 =new JLabel("lbl1.. :");

private JLabel lbl2 =new JLabel("lbl2.. :");

private JLabel lbl3 =new JLabel("lbl3.. :");

private JButton btn1 =new JButton("SET");

private JButton btn2 =new JButton("SET");

private JButton btn3 =new JButton("SET");

private JButton btnProcess =new JButton("Process");

private JButton btnCancel =new JButton("Cancel");

publicvoid showGUI()

{

deformPanel.setLayout(null);

deformPanel.setPreferredSize(new Dimension(225,200));

btnPanel.setLayout(null);

btnPanel.setPreferredSize(new Dimension(225,100));

Insets insets = deformPanel.getInsets();

Insets insets2 = btnPanel.getInsets();

Dimension size = lbl1.getPreferredSize();

lbl1.setBounds(25+insets.left,45+insets.top,size.width,size.height);

size = btn1.getPreferredSize();

btn1.setBounds(150+insets.left,45+insets.top,size.width,size.height);

size = lbl2.getPreferredSize();

lbl2.setBounds(25+insets.left,85+insets.top,size.width,size.height);

size = btn2.getPreferredSize();

btn2.setBounds(150+insets.left,85+insets.top,size.width,size.height);

size = lbl3.getPreferredSize();

lbl3.setBounds(25+insets.left,125+insets.top,size.width,size.height);

size = btn3.getPreferredSize();

btn3.setBounds(150+insets.left,125+insets.top,size.width,size.height);

size = btnProcess.getPreferredSize();

btnProcess.setBounds(25+insets2.left,40+insets2.top,size.width,size.height);

size = btnCancel.getPreferredSize();

btnCancel.setBounds(125+insets2.left,40+insets2.top,size.width,size.height);

btnCancel.addActionListener(new ActionListener()

{

publicvoid actionPerformed(ActionEvent e)

{

dispose();

}

});

//event for button

btn1.addActionListener(new ActionListener()

{

publicvoid actionPerformed(ActionEvent e)

{

//event btn1

ParamGUIFirst paramGUI =new ParamGUIFirst();

paramGUI.showParamGUI();

}

});

btn2.addActionListener(new ActionListener()

{

publicvoid actionPerformed(ActionEvent e)

{

//event btn2

}

});

btn3.addActionListener(new ActionListener()

{

publicvoid actionPerformed(ActionEvent e)

{

//event btn3

}

});

btnProcess.addActionListener(new ActionListener()

{

publicvoid actionPerformed(ActionEvent e)

{

//event btnProcess

}

});

deformPanel.add(lbl1);

deformPanel.add(btn1);

deformPanel.add(lbl2);

deformPanel.add(btn2);

deformPanel.add(lbl3);

deformPanel.add(btn3);

btnPanel.add(btnProcess);

btnPanel.add(btnCancel);

deformPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),"Title"));

setTitle("please set title");

setMaximizedBounds(new Rectangle(250,400));

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

setLayout(new BorderLayout());

getContentPane().add(deformPanel,BorderLayout.NORTH);

getContentPane().add(btnPanel,BorderLayout.SOUTH);

setLocation(200,200);

pack();

setVisible(true);

}

}

publicclass MainGUI

{

publicstaticvoid main(String arg[])

{

DeformGUI frame =new DeformGUI();

frame.showGUI();

}

}

i want to get value from textFieldHH,textFieldD,textFieldDL,textFieldTH,textFieldRD ?

it's so difficult any idea?

[11221 byte] By [mas_dadanga] at [2007-11-26 15:00:21]
# 1
> i want to get value from textFieldHH, textFieldD, textFieldDL, textFieldTH, textFieldRD ?You where given the answer in your last
camickra at 2007-7-8 8:49:10 > top of Java-index,Desktop,Core GUI APIs...