11 Replies - 15363 Views - Last Post: 14 July 2009 - 01:23 AM Rate Topic: -----

#1 javamad  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 70
  • Joined: 08-June 09

wait for button press to continue gui

Post icon  Posted 10 July 2009 - 01:24 AM

Hi,

Hope someone can help me with a problem

I have create a gui that will eventually download data from a database. This gui has a number of check boxes and fields to fill in before a download button is pressed where all the values filled in by the user will be used in the datadownload. I however cannot get the program to stop and wait for the user to enter information into the gui and press the button. The program just runs through the action listner i have installed like its not there....

Could someone let me know how I get the program to wait and also how I can use the values entered in the gui through the rest of the program.

Please see my code thus far below

Many thanks
package gui;

import javax.swing.JFrame;


public class guiMain {

	public static void main(String args[]) {

		JFrame frm = new gui();
		
		
		
		//DbDownload dbData = new DbDownload();

		//FilePickUp UxData = new FilePickUp(); 
		
		

	}
}


package gui;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class gui extends JFrame implements ActionListener {

	private JTextField buildUpTextField = null;
	private JTextField totalDPTextField = null;
	private JTextField insampleTextField = null;
	private JTextField outsampleTextField = null;
	private JTextField rollPeriodTextField = null;
	private JTextField numberRollsTextField = null;
	private JTextField mktCapCutOffTextField = null;
	private JTextField volOffTextField = null;
	private JCheckBox sameSectorCheckBox = null;
	private JCheckBox sameCurrencyCheckBox = null;
	private JCheckBox sameRegionCheckBox = null;
	private JCheckBox liveDataCheckBox = null;

	JButton downloadDataButton = null;

	String fieldContents = "";
	int totalDataPoints = 0;

	// this is a JFrame, use it!

	public gui() {

		super("Data");

		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Container contentPane = getContentPane();
		SpringLayout layout = new SpringLayout();
		contentPane.setLayout(layout);

		JLabel buildUpLabel = new JLabel("buildup DPs: ");
		JLabel insampleLabel = new JLabel("insample DPs: ");
		JLabel outsampleLabel = new JLabel("outsample DPs: ");
		JLabel rollPeriodLabel = new JLabel("roll period DPs: ");
		JLabel numberRollsLabel = new JLabel("number of rolls: ");

		JLabel totalNoDpLabel = new JLabel("total no DPs: ");
		JLabel mktCapCutOffLabel = new JLabel("Mkt cap >");
		JLabel volOffTextLabel = new JLabel("volume >");
		JLabel statusTextLabel = new JLabel("download status");
		JLabel startTextLabel = new JLabel("download start");
		JLabel stopTextLabel = new JLabel("download finish");

		JLabel corporateActionTextLabel = new JLabel("corp actions");

		buildUpTextField = new JTextField("0", 5);
		insampleTextField = new JTextField("0", 5);
		outsampleTextField = new JTextField("0", 5);
		rollPeriodTextField = new JTextField("0", 5);
		numberRollsTextField = new JTextField("0", 5);
		totalDPTextField = new JTextField("0", 5);
		totalDPTextField.setEditable(false);
		totalDPTextField.setBackground(Color.WHITE);
		mktCapCutOffTextField = new JTextField("0", 5);
		mktCapCutOffTextField.setEditable(false);
		mktCapCutOffTextField.setBackground(Color.WHITE);
		volOffTextField = new JTextField("0", 5);
		volOffTextField.setEditable(false);
		volOffTextField.setBackground(Color.WHITE);

		sameSectorCheckBox = new JCheckBox("same sector", true);
		sameCurrencyCheckBox = new JCheckBox("same currency", true);
		sameRegionCheckBox = new JCheckBox("same region", true);

		JButton dataPointCalcButton = new JButton("Calculate Dps");

		downloadDataButton = new JButton("Download Data");

		liveDataCheckBox = new JCheckBox("live data", true);

		// add the listener

		buildUpTextField.addActionListener(this);
		totalDPTextField.addActionListener(this);

		ActionListener totalDPListener = new TotalDpListener();
		dataPointCalcButton.addActionListener(totalDPListener);

		// add field to panel
		contentPane.add(buildUpLabel);
		contentPane.add(buildUpTextField);
		contentPane.add(insampleLabel);
		contentPane.add(insampleTextField);
		contentPane.add(outsampleLabel);
		contentPane.add(outsampleTextField);
		contentPane.add(outsampleLabel);
		contentPane.add(outsampleTextField);
		contentPane.add(rollPeriodLabel);
		contentPane.add(rollPeriodTextField);
		contentPane.add(numberRollsLabel);
		contentPane.add(numberRollsTextField);
		contentPane.add(totalNoDpLabel);
		contentPane.add(totalDPTextField);
		contentPane.add(dataPointCalcButton);
		contentPane.add(mktCapCutOffLabel);
		contentPane.add(mktCapCutOffTextField);
		contentPane.add(volOffTextLabel);
		contentPane.add(volOffTextField);
		contentPane.add(sameSectorCheckBox);
		contentPane.add(sameCurrencyCheckBox);
		contentPane.add(sameRegionCheckBox);
		contentPane.add(downloadDataButton);
		contentPane.add(liveDataCheckBox);
		contentPane.add(statusTextLabel);

		// content pane
		layout.putConstraint(SpringLayout.EAST, contentPane, 1500,
				SpringLayout.EAST, buildUpTextField);
		layout.putConstraint(SpringLayout.SOUTH, contentPane, 620,
				SpringLayout.SOUTH, buildUpTextField);

		layout.putConstraint(SpringLayout.WEST, buildUpLabel, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, buildUpLabel, 5,
				SpringLayout.NORTH, contentPane);
		layout.putConstraint(SpringLayout.WEST, buildUpTextField, 24,
				SpringLayout.EAST, buildUpLabel);
		layout.putConstraint(SpringLayout.NORTH, buildUpTextField, 5,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, insampleLabel, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, insampleLabel, 30,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, insampleTextField, 13,
				SpringLayout.EAST, insampleLabel);
		layout.putConstraint(SpringLayout.NORTH, insampleTextField, 30,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, outsampleLabel, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, outsampleLabel, 55,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, outsampleTextField, 5,
				SpringLayout.EAST, outsampleLabel);
		layout.putConstraint(SpringLayout.NORTH, outsampleTextField, 55,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, rollPeriodLabel, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, rollPeriodLabel, 80,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, rollPeriodTextField, 5,
				SpringLayout.EAST, outsampleLabel);
		layout.putConstraint(SpringLayout.NORTH, rollPeriodTextField, 80,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, numberRollsLabel, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, numberRollsLabel, 105,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, numberRollsTextField, 5,
				SpringLayout.EAST, numberRollsLabel);
		layout.putConstraint(SpringLayout.NORTH, numberRollsTextField, 105,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, totalNoDpLabel, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, totalNoDpLabel, 130,
				SpringLayout.NORTH, contentPane);
		layout.putConstraint(SpringLayout.WEST, totalDPTextField, 5,
				SpringLayout.EAST, numberRollsLabel);
		layout.putConstraint(SpringLayout.NORTH, totalDPTextField, 130,
				SpringLayout.NORTH, contentPane);

		// button
		layout.putConstraint(SpringLayout.WEST, dataPointCalcButton, 45,
				SpringLayout.WEST, totalNoDpLabel);
		layout.putConstraint(SpringLayout.NORTH, dataPointCalcButton, 155,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, mktCapCutOffLabel, 0,
				SpringLayout.WEST, totalNoDpLabel);
		layout.putConstraint(SpringLayout.NORTH, mktCapCutOffLabel, 200,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, mktCapCutOffTextField, 100,
				SpringLayout.WEST, mktCapCutOffLabel);
		layout.putConstraint(SpringLayout.NORTH, mktCapCutOffTextField, 200,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, volOffTextLabel, 0,
				SpringLayout.WEST, mktCapCutOffLabel);
		layout.putConstraint(SpringLayout.NORTH, volOffTextLabel, 230,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, volOffTextField, 100,
				SpringLayout.WEST, volOffTextLabel);
		layout.putConstraint(SpringLayout.NORTH, volOffTextField, 230,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, sameSectorCheckBox, 0,
				SpringLayout.WEST, volOffTextLabel);
		layout.putConstraint(SpringLayout.NORTH, sameSectorCheckBox, 260,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, sameCurrencyCheckBox, -100,
				SpringLayout.WEST, volOffTextField);
		layout.putConstraint(SpringLayout.NORTH, sameCurrencyCheckBox, 280,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, sameRegionCheckBox, -100,
				SpringLayout.WEST, volOffTextField);
		layout.putConstraint(SpringLayout.NORTH, sameRegionCheckBox, 300,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, downloadDataButton, 1495,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, downloadDataButton, 410,
				SpringLayout.NORTH, contentPane);

		layout.putConstraint(SpringLayout.WEST, liveDataCheckBox, 1495,
				SpringLayout.WEST, sameRegionCheckBox);
		layout.putConstraint(SpringLayout.NORTH, liveDataCheckBox, 380,
				SpringLayout.NORTH, contentPane);

		pack();

//at this point I would like the program to wait for check boxes to be ticked and values to be entered and to continue (with these values only after the download button has been pressed  


		// download button ActionListener entered, but the program does not stop to listen for a button press
setVisible(true);
		ActionListener downloadDataListener = new DownloadDpListener();

		downloadDataButton.addActionListener(downloadDataListener);

	}

	// //actions fire here
	public void actionPerformed(ActionEvent e) {
		Object src = e.getSource();
		System.out.println(e.getActionCommand());

		fieldContents = e.getActionCommand();
		if (src == this.buildUpTextField) {
			System.out.println(this.buildUpTextField);
			System.out.println(fieldContents);
			String contents = buildUpTextField.getText();
			System.out.println(contents);
			System.out.println();

		}
	}

	private class TotalDpListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			int buildUpText = Integer.parseInt(buildUpTextField.getText());
			int insampleText = Integer.parseInt(insampleTextField.getText());
			int outsampleText = Integer.parseInt(outsampleTextField.getText());
			int rollPeriodText = Integer
					.parseInt(rollPeriodTextField.getText());
			int numberRollsText = Integer.parseInt(numberRollsTextField
					.getText());
			int totalDataPoints = 0;
			totalDataPoints = (buildUpText)
					+ (((insampleText + outsampleText) + (numberRollsText - 1)
							* rollPeriodText));

			totalDPTextField.setText(Integer.toString(totalDataPoints));
		}

	}

	private class DownloadDpListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {

			System.out.println("download button pressed");
			System.out.println();

		}

	}

}


This post has been edited by javamad: 10 July 2009 - 01:29 AM


Is This A Good Question/Topic? 0
  • +

Replies To: wait for button press to continue gui

#2 DaneAU  Icon User is offline

  • Great::Southern::Land
  • member icon

Reputation: 286
  • View blog
  • Posts: 1,619
  • Joined: 15-May 08

Re: wait for button press to continue gui

Posted 10 July 2009 - 01:47 AM

You need to check where the action is coming from

I notice the following buttons dataPointCalcButton

So in your actionPerforme(ActionEvent e)

simply do
public void actionPerformed(ActionEvent e)
{
   if (e.getSouce() == dataPointCalcButton )
   {
       // do something
   } 
}


Hope that is what you want
Was This Post Helpful? 0
  • +
  • -

#3 jpav  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 29
  • Joined: 08-July 09

Re: wait for button press to continue gui

Posted 10 July 2009 - 07:54 AM

View Postjavamad, on 10 Jul, 2009 - 12:24 AM, said:

I have create a gui that will eventually download data from a database. This gui has a number of check boxes and fields to fill in before a download button is pressed where all the values filled in by the user will be used in the datadownload. I however cannot get the program to stop and wait for the user to enter information into the gui and press the button. The program just runs through the action listner i have installed like its not there....

Could someone let me know how I get the program to wait and also how I can use the values entered in the gui through the rest of the program.


Regarding the download button's action listener, there doesn't seem to be a problem: After the application is launched, the GUI waits until the user does something significant (like pressing the download button). When you click the download button, its action listener (the last one in your gui class) prints out "download button pressed" to the console, just like it's coded to do. I'm not sure what you mean by "stop and wait for the user to enter information." Are you saying you don't want the user to be able to press the download button until all of the correct input has been provided? If so, that's a whole different discussion...

As a point of style and good coding practices, let me point out that it's considered very bad form, and in most companies just flat out wrong, to name a class starting with a lowercase letter. Thus, you should really rename your classes to Gui and GuiMain, or GUI and GUIMain, respectively. There's lots of "religion" behind whether acronyms should only have their first letter capitalized or all letters, so that's up to you. My preference is the former, mostly due to readability concerns and avoiding confusing scenarios where 2 or more acronyms appear in a name back-to-back.

This post has been edited by jpav: 10 July 2009 - 07:55 AM

Was This Post Helpful? 0
  • +
  • -

#4 DaneAU  Icon User is offline

  • Great::Southern::Land
  • member icon

Reputation: 286
  • View blog
  • Posts: 1,619
  • Joined: 15-May 08

Re: wait for button press to continue gui

Posted 10 July 2009 - 08:45 AM

to check if input has been entered you will need to access the getText(); for each TextField and compare it to the empty string... eg.. if ( textField.getText().equals("") ) and base the programs actions on the result of that.

also jpag i do belive classes should be named capital letter begging, as for variables, its generally lower case beginning except if its a static final, where you should use all capitals.

class Test
int pInteger;
final static int P_INTEGER = 0;


This post has been edited by bbq: 10 July 2009 - 08:48 AM

Was This Post Helpful? 0
  • +
  • -

#5 jpav  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 29
  • Joined: 08-July 09

Re: wait for button press to continue gui

Posted 10 July 2009 - 11:16 AM

View Postbbq, on 10 Jul, 2009 - 07:45 AM, said:

also jpag i do belive classes should be named capital letter begging, as for variables, its generally lower case beginning except if its a static final, where you should use all capitals.

class Test
int pInteger;
final static int P_INTEGER = 0;


Agreed. I was just referring to classes since he's been following the correct conventions already with variables.
Was This Post Helpful? 0
  • +
  • -

#6 Fuzzyness  Icon User is offline

  • Comp Sci Student
  • member icon

Reputation: 669
  • View blog
  • Posts: 2,438
  • Joined: 06-March 09

Re: wait for button press to continue gui

Posted 10 July 2009 - 11:25 AM

Quote

Could someone let me know how I get the program to wait


As for making something wait, there is a sleep method. It is in milliseconds and would work something like this.

System.out.println("Inncorrect, system will terminate in 5 seconds");
Thread.sleep(5000); // Time in milliseconds, 1 second = 1000
System.exit(0);



and you would have to import interrupted exception
import java.lang.InterruptedException;

Hope this helps!
Was This Post Helpful? 0
  • +
  • -

#7 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8347
  • View blog
  • Posts: 31,913
  • Joined: 06-March 08

Re: wait for button press to continue gui

Posted 10 July 2009 - 02:06 PM

You don't need so many ActionListener
you only need one on your button
Was This Post Helpful? 0
  • +
  • -

#8 javamad  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 70
  • Joined: 08-June 09

Re: wait for button press to continue gui

Posted 13 July 2009 - 12:38 AM

Hi and thankd to everyone who has posted helpful replies.

However I'm not sure I mad myself clear

I would like the gui to load and then I would like the user to create SQL queries based on what they enter in the gui. My problem at the moment is that the program contineues to run without allowing the user to enter information into the gui before hand. Could someone let me know how the gui can allow the entering of information before the program riuns onto the sql element

Many thanks for all your help so far
Was This Post Helpful? 0
  • +
  • -

#9 jpav  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 29
  • Joined: 08-July 09

Re: wait for button press to continue gui

Posted 13 July 2009 - 07:40 AM

View Postjavamad, on 12 Jul, 2009 - 11:38 PM, said:

I would like the gui to load and then I would like the user to create SQL queries based on what they enter in the gui. My problem at the moment is that the program contineues to run without allowing the user to enter information into the gui before hand. Could someone let me know how the gui can allow the entering of information before the program riuns onto the sql element

You must have some other code that you haven't posted then, because I see nothing in gui or guiMain that has anything to do with SQL or a text field to enter SQL. Your app does indeed wait, as expected, for a button to be pressed before performing what's in an ActionListener (although the listener defined directly in the gui class isn't being used). I'm not sure I understand your problem I guess.
Was This Post Helpful? 0
  • +
  • -

#10 javamad  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 70
  • Joined: 08-June 09

Re: wait for button press to continue gui

Posted 13 July 2009 - 09:57 AM

Hi, thanks for the reply,

I haven't written the SQL query yet but as soon as the GUi has been made visable

frm.setVisible(true);



I would like the user to tick a few boxes and enter a few ranges which will be reflected in the SQL query

Something like:

"Select * from table where timeseries = " + buildUpTestField; (or something like that)

but at present the program would run stright over the top of this. The DownloadDpListener does return "download button pressed", when the button is pressed, but the program will not wait for this button to be pressed it just continues. I would like the gui to wait for the user to finish interacting with the interface and only continue only when the button is pressed. If someone can help it would be really appreciated

Many thanks
to all who have so far contributed
Was This Post Helpful? 0
  • +
  • -

#11 jpav  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 29
  • Joined: 08-July 09

Re: wait for button press to continue gui

Posted 13 July 2009 - 10:11 AM

View Postjavamad, on 13 Jul, 2009 - 08:57 AM, said:

The DownloadDpListener does return "download button pressed", when the button is pressed, but the program will not wait for this button to be pressed it just continues. I would like the gui to wait for the user to finish interacting with the interface and only continue only when the button is pressed.

I'm still confused. It sounds like your making contradictory statements. You first say the message is displayed only after the button is pressed, but then say the gui doesn't wait. Which is it? Are you saying the message displays even without the button being pressed? If so, I'm certainly not seeing that behavior. If not, I just don't understand. Waiting for the button to be pressed is the same thing as the gui waiting for the user to click checkboxes, etc. The user would work with the checkboxes before pressing the button, then your ActionListener would analyze the checkboxes for their states and use that information to build your query.

This post has been edited by jpav: 13 July 2009 - 10:12 AM

Was This Post Helpful? 0
  • +
  • -

#12 javamad  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 70
  • Joined: 08-June 09

Re: wait for button press to continue gui

Posted 14 July 2009 - 01:23 AM

Hi, sorry for any confusion on my part and thanks for all your coments. Just to make sure we are on the same page, I have created a small example of what is going wrong. In the gui below the user states whether they want to buy apples and how many they would like. At present the user cannot specify what they want as the program runs to completion with out their input and the output is displayed that they do not wish to buy apples. I would like the user to specify if they wish to buy apples and if so how many they would like to buy before the progam continues.

Please see below for code

Many thanks

package Button;

public class buttonMain {

	public static void main(String args[]) {
		
	gui guiTest = new gui();	
	
	
	//Need the program to wait until the gui has been filled in
	
	System.out.println("I want this to execute only after the download button has been pressed.  If the output from the gui is below this line then there is a problem \n");
	
	if (guiTest.checked == true){
	
		System.out.println("I would like to buy " +  guiTest.TextAreaContents + "apples please");
		
	}else{
		
		System.out.println("I would like to buy no apples thanks");
		
	}
		
	
		
	}
	
}


package Button;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class gui extends JFrame implements ActionListener {
	boolean checked = false;
	String TextAreaContents ="";
	private JCheckBox CheckBox = null;
	private JTextField TextArea = null;
	JButton downloadButton =  null;
	String fieldContents = "";
	
	
	public gui() {
		
		super("Test");
		
		
		TextArea = new JTextField("0", 5);
		CheckBox = new JCheckBox("buy apples?", true);
		downloadButton = new JButton("Apples");
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Container contentPane = getContentPane();
		SpringLayout layout = new SpringLayout();
		contentPane.setLayout(layout);
		
		
		contentPane.add(CheckBox);
		contentPane.add(TextArea);
		contentPane.add(downloadButton);
			
		layout.putConstraint(SpringLayout.EAST, contentPane, 120,
				SpringLayout.EAST, TextArea);
		layout.putConstraint(SpringLayout.SOUTH, contentPane, 120,
				SpringLayout.SOUTH, TextArea);
		
		layout.putConstraint(SpringLayout.WEST, CheckBox, 5,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, CheckBox, 50,
				SpringLayout.NORTH, contentPane);
						
		layout.putConstraint(SpringLayout.WEST, downloadButton, 0,
				SpringLayout.WEST, contentPane);
		layout.putConstraint(SpringLayout.NORTH, downloadButton, 100,
				SpringLayout.NORTH, contentPane);
		
		pack();
		setVisible(true);
		
		
		// add the listener
		downloadButton.addActionListener(this);
		
		ActionListener downloadListener = new DownloadListener();
		downloadButton.addActionListener(downloadListener);
		
	}
	
	
	private class DownloadListener implements ActionListener {
		
		public void actionPerformed(ActionEvent e) {
			
			String TextAreaContents = TextArea.getText();
			boolean checked = CheckBox.isSelected();
			
			System.out.println(TextAreaContents);
			System.out.println(checked);
			
						
		}
		
	}


	public void actionPerformed(ActionEvent e) {
		Object src = e.getSource();
		System.out.println(e.getActionCommand());

		fieldContents = e.getActionCommand();
		if (src == this.TextArea) {
			System.out.println(this.TextArea);
			
			String TextAreaContents = TextArea.getText();
			String CheckBoxContents = CheckBox.getText();
			System.out.println(TextAreaContents);
			System.out.println(CheckBoxContents);
			

		}
	}
	
	
}


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1