Oct 2, 2012 #1 H hssn601 Junior Member level 2 Joined Apr 26, 2011 Messages 24 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Activity points 1,420 I want to get data from textfield and copmare and if user enters yes than stores it in string a else stores it in string b here is my code .. package org.hsn.tut; import java.awt.*; import java.applet.Applet; public class TextFieldDemo extends Applet{ public void init(){ TextField tf = new TextField("Type in the box"); add(tf); } } my question is how to store data from text field in array and compare with "yes" many thanks in advance
I want to get data from textfield and copmare and if user enters yes than stores it in string a else stores it in string b here is my code .. package org.hsn.tut; import java.awt.*; import java.applet.Applet; public class TextFieldDemo extends Applet{ public void init(){ TextField tf = new TextField("Type in the box"); add(tf); } } my question is how to store data from text field in array and compare with "yes" many thanks in advance
Oct 2, 2012 #2 B BradtheRad Super Moderator Staff member Joined Apr 1, 2011 Messages 15,214 Helped 2,901 Reputation 5,814 Reaction score 2,989 Trophy points 1,393 Location Minneapolis, Minnesota, USA Activity points 114,003 I use an electronic circuit simulator written in Java. It opens windows for importing text. It has a few of the same commands which are in your code, and some more besides. The source code is available as a free download at the link below. You can examine it since it is not scrambled. www.falstad.com/circuit Click the link called 'The source' (about halfway down the webpage). It creates a folder called 'src', containing over 90 files. These may be of interest: EditDialog.java EditDialogLayout.java ImportDialog.java ImportDialogLayout.java
I use an electronic circuit simulator written in Java. It opens windows for importing text. It has a few of the same commands which are in your code, and some more besides. The source code is available as a free download at the link below. You can examine it since it is not scrambled. www.falstad.com/circuit Click the link called 'The source' (about halfway down the webpage). It creates a folder called 'src', containing over 90 files. These may be of interest: EditDialog.java EditDialogLayout.java ImportDialog.java ImportDialogLayout.java