Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Textfiled unenditable?

Posted on 1997-03-30
3
Medium Priority
?
231 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 60 total points
ID: 1219316
jiayan,

use this code:

Textarea t;
t.setEditable(true);

Hope this helps.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

604 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