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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:33:09+00:00 2026-06-12T07:33:09+00:00

Creating a Blackberry app. Just a beginner, I have searched but couldn’t find a

  • 0

Creating a Blackberry app.

Just a beginner, I have searched but couldn’t find a solution for it though its common. If anyone could tell me how to show a password hint and a numeric hint for blackberry applications in Java.
Thanks in Advance!!

  • 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-06-12T07:33:10+00:00Added an answer on June 12, 2026 at 7:33 am
    According to your query , you want a field that shows password hint and a numeric hint for blackberry applications ..
    
    Well blackberry follow some different way , it will not show hint (PopUp Screen). Another way is to put some (information) Text in the [EditField][1] when EditField is empty .Here is the sample code for demonstration :-
    
    *******************************************************
        EditField _userName_edtField = new EditField()
            {
                protected void layout(int width, int height) 
                {
                    super.layout(width, height);
                    setExtent(150, height);
                };
                protected void paint(Graphics graphics) 
                {
                    graphics.setColor(Color.BLACK);
    
    
                    if(isFocus())
                    {
                        if(getTextLength() == 0)
                        {
                            setCursorPosition(0);   
                        }
                    }
                    else
                    {
                        if(getTextLength() == 0)
                        {
                            graphics.drawText("User Name", 0, (getHeight() - getFont().getHeight()) >>1);   
                        }
                    }
    
    
                    invalidate();
    
                    super.paint(graphics);
                }
            };
    
                    add(_userName_edtField);
    
    *******************************************************
    
    this is Just a simple EditField , you can customize the field according to your requirement  if this is empty it will show "User Name"  and if you enter some text the "User Name" will disappear ..
    means the EditField is act like a Hint and this will help you ..!!!
    
    
      [1]: http://www.blackberry.com/developers/docs/5.0.0api/index.html
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mobile app I am creating with JQuery Mobile. When a blackberry
I'm working on a blackberry app with intended target OS5+. I'm creating a GridFieldManager
I am creating an HTML5 app for a blackberry playbook. I am wondering how
I am creating an app for iOS, Android and Blackberry and am using phonegap
I am creating a splash screen for my BlackBerry app. Right now the image
I am creating blackberry application to view PDF files in my application. I have
Creating a voting system just like stackoverflow. Questions like this have been asking several
The tutorials for creating blackberry applications seem to be severely limited. Even on the
Creating an a app, where I store bunch of photos in the drawable folder,
Creating a JApplet I have 2 Text Fields, a button and a Text Area.

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.