Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Simple Java Help Required

Status
Not open for further replies.

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 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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top