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

  • Home
  • SEARCH
  • 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 6571471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:53:14+00:00 2026-05-25T14:53:14+00:00

Is there any way to write in a textArea without going to a LCDUI

  • 0

Is there any way to write in a textArea without going to a LCDUI window?
I want to edit my textArea in my LWUIT app but everytime I try to do this, the app send me to a LCDUI window.

  • 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-25T14:53:14+00:00Added an answer on May 25, 2026 at 2:53 pm

    To disable the LWUIT edit control trigger you can use the following code.

    textArea.setNativeTextboxTrigger(false);
    

    You need to implement the following code in the LWUIT TextArea source code

    static final String CLIENT_PROPERTY_FIRE_ACTION_TIMES = "FIRE-ACTION-TIMES";
    static final String CLIENT_PROPERTY_DEAFULT_TEXT = "DEFAULT-TEXT";  
    
    
    public void setNativeTextboxTrigger(boolean enable) {
            registerNativeTextboxTriggerEvent = enable;
    
             static final String CLIENT_PROPERTY_FIRE_ACTION_TIMES = "FIRE-ACTION-TIMES";
                static final String CLIENT_PROPERTY_DEAFULT_TEXT = "DEFAULT-TEXT";          
            try {
                if( registerNativeTextboxTriggerEvent ) {
                    String text = null != ( text = getText() ) ? text : "";  
                    this.putClientProperty(CLIENT_PROPERTY_DEAFULT_TEXT, text);
                    this.putClientProperty(CLIENT_PROPERTY_FIRE_ACTION_TIMES, String.valueOf(0));
                    final UIManager m = UIManager.getInstance();
                    setNativeCommandsText(m.localize("ok", "OK"), m.localize("cancel", "Cancel"));
                    this.addActionListener(nativeTriggerListener = getNativeTriggerActionListener());
                } else {
                    this.putClientProperty(CLIENT_PROPERTY_DEAFULT_TEXT, null);
                    this.putClientProperty(CLIENT_PROPERTY_FIRE_ACTION_TIMES, null);
                    setNativeCommandsText(null, null);
                    if( null != nativeTriggerListener ) {
                        this.removeActionListener(nativeTriggerListener);
                        nativeTriggerListener = null;
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    
    
    
    
           ActionListener getNativeTriggerActionListener() {
            return new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    if( evt.getSource() instanceof TextArea ) {
                        final TextArea tar = (TextArea)evt.getSource();
                        final String textEntered = tar.getText().trim();
                        final String defaultText = (String)tar.getClientProperty(CLIENT_PROPERTY_DEAFULT_TEXT);
                        int fireActionTimes = Integer.parseInt((String)tar.getClientProperty(CLIENT_PROPERTY_FIRE_ACTION_TIMES));
                        ++fireActionTimes;
                        int value = fireActionTimes % 2;
    
                        if( 0 == value ) {
                            fireActionTimes = 0;
                            if( textEntered.equals("") || textEntered.toUpperCase().equals(defaultText.toUpperCase())) {
                                tar.setText(defaultText);
                            }
                            triggeredNativeToLwuit(tar);
                        } else
                        //Switching to native edit screen
                        if( 0 < value ) {
                            if( textEntered.toUpperCase().equals(defaultText.toUpperCase()) ) {
                                tar.setText("");
                            }
                            triggeredLwuitToNative(tar);
                        }                   
                    }
                }
            };
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to write a CSS selector for this snippet, but without
Is there any way to write a MIDlet, but still use BlackBerry API classes
Is there any way to write something like this without taking over emacs? (defun
Is there any way to write a using statement without instantiating the IDisposable immediately?
maybe is stupid question but is there any way to write good looking (short
Is there any way to write a C program without a main function? If
Is there any way to Write files to App_Data under medium trust hack? Im
Is there any way to write a valid header/link/image? Something like <a href=index.html><h1 id=logo>Company
Is there any way to write Shoes application using IDE (NetBeans for example)? I
Is there any way to write binary output to sys.stdout in Python 2.x? In

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.