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 6949607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:58:37+00:00 2026-05-27T13:58:37+00:00

I want to show the virtual keyboard when the user is editing the textfield

  • 0

I want to show the virtual keyboard when the user is editing the textfield. I take this approach :

public class ChpModif extends TextField {

    public ChpModif(int maxChars, FocusListener focusListener, DataChangedListener dataChangeListener, VirtualKeyboard vkb)
    {
        super();
        setReplaceMenu(false);
        if (maxChars != -1)
            setMaxSize(maxChars);
        addFocusListener(focusListener);
        addDataChangeListener(dataChangeListener);
        if (vkb != null)
            VirtualKeyboard.bindVirtualKeyboard(this, vkb);
    }
    protected Command installCommands(Command clear, Command t9)
    {
        return null;
    }
}

public class ModifierFicheClient extends Ecran implements ActionListener, DataChangedListener, FocusListener
{
    private VirtualKeyboard vkNombre = new VirtualKeyboard();
    private String textFieldStatus, listBoxStatus;
    private ListBox genretxt;
    private boolean modifFromUpdate;
    private ChpModif nomtxt,prenomtxt,cintxt,adressetxt/*,genretxt*/,lieutxt,professiontxt,courieltxt,teltxt,datenaisstxt;
    private Component cursorItem;
    ...
    public ModifierFicheClient(SmartPhoneBanking controller,String prosp_id,int recordStoreID,Form prevForm)
    {
        super("");
        vkNombre.setInputModeOrder(new String[]{VirtualKeyboard.NUMBERS_SYMBOLS_MODE});
        ...
        modifFromUpdate = false;
        cintxt = new ChpModif(12, this, this, vkNombre);
        ...
    }
    public void dataChanged(int type, int index) {
        textFieldStatus = "CHANGED";
        if (!modifFromUpdate)
        {
            try
            {
                if (type == DataChangedListener.ADDED || type == DataChangedListener.CHANGED || type == DataChangedListener.REMOVED)
                {
                    if (Display.getInstance().isVirtualKeyboardShowingSupported())
                    {
                        if (!Display.getInstance().isVirtualKeyboardShowing())
                            cursorItem.pointerReleased(cursorItem.getAbsoluteX(), cursorItem.getAbsoluteY());
                    }
                }
            }
            catch (ClassCastException cce)
            {}
        }
    }
    public void focusGained(Component chp) {
        cursorItem = chp;
    }
    public void focusLost(Component arg0) {
    }
    protected void onShowCompleted()
    {
        ...
        update();
    }
    public void update()
    {
        modifFromUpdate = true;
        cintxt.setText(fichesignalitique.elementAt(0).toString());
        ...
        modifFromUpdate = false;
    }
    ...
}

The problem is that at the first time when I edit the textfield then the virtualkeyboard is shown ; then I click the Ok button of the virtualkeyboard , and then I edit again the textfield. But in this time the virtualkeyboard is not shown !

So how to make the virtualkeyboard shown everytime I edit the textfield ?

  • 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-27T13:58:38+00:00Added an answer on May 27, 2026 at 1:58 pm

    Its entirely possible that this is a 1.4 bug that was fixed in 1.5 since I can’t see it right now. The VKB was brand new in 1.4 .

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

Sidebar

Related Questions

I want to show the virtual keyboard with Prev, Next Buttons above the keyboard.
so with this class i have public class Options { public bool show {
Action method looks like public virtual ActionResult Show(int productId, bool isValid, bool getByStoreId =
I have actions public virtual ActionResult Show(string userId) and public virtual ActionResult Show(int groupId)
I have the following: public Class Vacancy{ public int VacancyID {get;set;} public List<Application> Applications
I want to know what a virtual base class is and what it means.
i want show 123 in my input tag value i write this: <INPUT TYPE=text
I have a basic html page, and i want the show a virtual card
I want show an information page after success db opartions. And after the info
I want show annotation view (above one of my pin) after load map. For

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.