Solved

Textfiled unenditable?

Posted on 1997-03-30
3
221 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
3 Comments
 

Expert Comment

by:lptsang3
Comment Utility
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
Comment Utility
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
Comment Utility
jiayan,

use this code:

Textarea t;
t.setEditable(true);

Hope this helps.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now