Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7412079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:29:09+00:00 2026-05-29T06:29:09+00:00

There are a TextField , a ListBox and a TextArea inside my Form .

  • 0

There are a TextField , a ListBox and a TextArea inside my Form. The TextArea is the last item. When navigating the items through the navigational button keys of the phone then I cannot see the cursor blinking in the TextArea and I cannot write text ! Although I know that the cursor is within the TextArea because there is no blinking focus in the two previous items. Here is the code :

public class CompteRendu extends Form implements FocusListener, DataChangedListener {
    private Container x1 = new Container(new BoxLayout(BoxLayout.X_AXIS));
    private Container x2 = new Container(new BoxLayout(BoxLayout.X_AXIS));
    private Container x3 = new Container(new BoxLayout(BoxLayout.X_AXIS));
    private Container x4 = new Container(new BoxLayout(BoxLayout.X_AXIS));
    private Container x5 = new Container(new BoxLayout(BoxLayout.X_AXIS));
    private Container CntnrYforAll = new Container(new BoxLayout(BoxLayout.Y_AXIS));
    private Label dateL, lieuL, dossier, client, resultat;
    private Label dateData, dossierData, clientData;
    private TextField lieu;
    private int nbVKBshow;
    private ListBox resultatList;
    private TextArea compteRendu;
    public CompteRendu(boolean general)
    {
        super();
        if (general)
            setTitle("Compte rendu général");
        dateL       = new FicheLibelle("Date");
        lieuL       = new FicheLibelle("Lieu");
        dossier     = new FicheLibelle("Dossier");
        client      = new FicheLibelle("Client");
        resultat    = new FicheLibelle("Résultat");
        dateL.setPreferredW(Comparator.max(new int[]{dateL.getPreferredW(),lieuL.getPreferredW(),dossier.getPreferredW(),client.getPreferredW(),resultat.getPreferredW()}));
        lieuL.setPreferredW(Comparator.max(new int[]{dateL.getPreferredW(),lieuL.getPreferredW(),dossier.getPreferredW(),client.getPreferredW(),resultat.getPreferredW()}));
        dossier.setPreferredW(Comparator.max(new int[]{dateL.getPreferredW(),lieuL.getPreferredW(),dossier.getPreferredW(),client.getPreferredW(),resultat.getPreferredW()}));
        client.setPreferredW(Comparator.max(new int[]{dateL.getPreferredW(),lieuL.getPreferredW(),dossier.getPreferredW(),client.getPreferredW(),resultat.getPreferredW()}));
        resultat.setPreferredW(Comparator.max(new int[]{dateL.getPreferredW(),lieuL.getPreferredW(),dossier.getPreferredW(),client.getPreferredW(),resultat.getPreferredW()}));
        dateData    = new Label(Formatage.dateToStringHH24(new Date()));
        dossierData = new Label();
        clientData  = new Label();
        lieu        = new ChpModif(100, this, this, null);
        resultatList = new ListBox(new String[]{"Oui","Non"},lieu.getPreferredH(),getPreferredW(),getPreferredH(),lieu.getSelectedStyle().getMargin(Component.TOP),lieu.getSelectedStyle().getMargin(Component.BOTTOM));
        compteRendu = new TextArea(5, 100);
        compteRendu.setGrowByContent(true);
        compteRendu.setFocusable(true);
        compteRendu.setEditable(true);
        x1.addComponent(dateL);
        x1.addComponent(dateData);
        x2.addComponent(lieuL);
        x2.addComponent(lieu);
        if (!general)
        {

        }
        x5.addComponent(resultat);
        x5.addComponent(resultatList);
        CntnrYforAll.addComponent(x1);
        CntnrYforAll.addComponent(x2);
        if (!general)
        {

        }
        CntnrYforAll.addComponent(x5);
        CntnrYforAll.addComponent(compteRendu);
        setLayout(new FlowLayout(Component.CENTER));
        addComponent(CntnrYforAll);
    }

So how to make cursor visible and permitting writing text when navigating into the TextArea ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:29:10+00:00Added an answer on May 29, 2026 at 6:29 am

    You can’t do it. You have to use LWUIT TextField. Look at this:

    TextArea question

    TextArea question

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are Label , TextField and a Container in a Form. I set :
I have a wicket form which contains many TextField input components. There's a Validator
I have a form here in which there is a textfield which contains a
Is there a way to catch a valueDidChange-Event for a Textfield? oO I've got
Is there any way to place an image inside of a text field with
I am trying to save the items from a listbox to a file. So
There is a TextField populated by a value from a RecordStore , and the
is there some fix for this <form> <input type=text ... </form> hitting the enter
Is there a way to clear a textfield when all else fails? This is
Is there any way we can specify the max number of chars a TextField

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.