Solved

Textfiled unenditable?

Posted on 1997-03-30
3
227 Views
Last Modified: 2010-04-16
Hi, I have some trouble using the textfield.
I defined it in the class like
textfield t1,t2;
t1 = new textfield(10);

But, later in the program, it draws the textfiled and I seems
to be unable to enter anything in it.  Just like the textarea
set to Edit=False.  I am not sure what happened, or is there
anything I need to do to enter in a text filed.  Please help.
0
Comment
Question by:jiayan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:lptsang3
ID: 1219314
I don't know exactly why you can't enter the textfield.  But try the following if this works:

TextField t1;
t1 = new TextField(10);

t1..enable();
t1.requestFocus();

0
 

Author Comment

by:jiayan
ID: 1219315
Actually, I solved it by using method action instead of handlemethod, not sure why it works:-( but it worked:-)
0
 

Accepted Solution

by:
IsaacW earned 30 total points
ID: 1219316
jiayan,

use this code:

Textarea t;
t.setEditable(true);

Hope this helps.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet and mdb, jms error 1 57
Crystal Reports Licensing Questions 4 64
swing controls 2 23
Java Inheritance super keyword use 8 38
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question