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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:03:27+00:00 2026-05-23T14:03:27+00:00

I have developed a Blackberry application and running it on Simulator(9800) now what i

  • 0

I have developed a Blackberry application and running it on Simulator(9800) now what i want that it should also work for non touch device.
Problem is when I tested on non touch simulator ie. 9780 the two component are missing

Please help me out.
below is the code for my login screen.

public class JLoginScreen extends MyFramePageForLogin
{    
   public MyHttpConnectionClass myhttp=new MyHttpConnectionClass();
   MyParser mypar=new MyParser();
   private LabelField lblalreadymember,lblnotamember;//cotegories for exixtence
   private LabelField lbllogin,lblpassword,rmtemp1,rmtemp2,rmtemp3,rmtemp4;   
   private CustomRoundBorderTextBoxField rblogin;
   private CustomRoundBorderPasswordField rbpassword;
   private LabelField linkforgetpwd; 
   private CustomButtonField cbflogin,cbfregisternow;
   CheckboxField checkRemeberMe;
   CheckboxField cbField;
   int mCheckBoxesCount = 5; 
   public static String membername,person_fname,person_lname,address,
   contactperson,mail,phone,mobile,membertitle,memberid;
   private GridFieldManager gfmlogin;  
   private GridFieldManager gfmtxt;  
   private GridFieldManager hfmforgetlogin;
   Font fontlistfield;  
   MyConnectionClass my_con=new MyConnectionClass();
   MyFont myfont=new MyFont();  
   private int isVal=0;

   public JLoginScreen()
   {      
      lblalreadymember=new LabelField("Already A Member ?")
      {
         public void paint(Graphics g)
         {
            //g.setColor(0x585858);
            super.paint(g);
         }
      };
      lblalreadymember.setFont(myfont.headfont);

      lblalreadymember.setMargin(10,0,0, 10);
      //Login 
      lbllogin=new LabelField("Login",NON_FOCUSABLE)
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      lbllogin.setFont(myfont.boldfont);
      lbllogin.setMargin(0,0,0,10);

      lblpassword=new LabelField("Password")
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      lblpassword.setFont(myfont.boldfont);

      linkforgetpwd=new LabelField("Forget Password?")
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      linkforgetpwd.setPadding(0,0, 0,5);
      linkforgetpwd.setFont(myfont.contentdata);  

      rblogin=new CustomRoundBorderTextBoxField(200,25,3); 
      rblogin.setFont(myfont.contentdata);

      rbpassword=new CustomRoundBorderPasswordField(200,25,3);
      rbpassword.setFont(myfont.loginpassword);
      //rbpassword.setPadding(5,0, 0,2);

      rmtemp1=new LabelField("")
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      rmtemp2=new LabelField("")
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      rmtemp3=new LabelField("")
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      rmtemp4=new LabelField("")
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      checkRemeberMe = new CheckboxField("Remember Me", false)
      {
         public void paint(Graphics g)
         {
            g.setColor(0x585858);
            super.paint(g);
         }
      };
      checkRemeberMe.setPadding(0,0, 0,10);
      checkRemeberMe.setFont(MyFont.contentdata);
      //CustomButtonField For Login
      cbflogin=new CustomButtonField("            Login       ", Color.BLACK);  

      cbflogin.setPadding(0,0, 0, 200);
      cbflogin.setFont(MyFont.contentdata);
      cbflogin.setChangeListener(new FieldChangeListener() 
      {
         public void fieldChanged(Field field, int context) 
         {           
            try
            {
               String url="http://www.jewelvicinity.com/pushmobile.aspx?cmdtype=LOGIN&email="+rblogin.getText()+"&pwd="+rbpassword.getText()+"";
               String response =MyHttpConnectionClass.getPage(url);
               String isActive =mypar.getWIGIBarcodeInfo(response,"<MemberActive>","</MemberActive>",14);
               membername =mypar.getWIGIBarcodeInfo(response,"<MemberName>","</MemberName>",12);
               person_fname =mypar.getWIGIBarcodeInfo(response,"<MemberPersonFName>","</MemberPersonFName>",19);
               person_lname =mypar.getWIGIBarcodeInfo(response,"<MemberPersonLName>","</MemberPersonLName>",19);
               membertitle=mypar.getWIGIBarcodeInfo(response,"<MemberTitle>","</MemberTitle>",13);
               memberid=mypar.getWIGIBarcodeInfo(response,"<MemberID>","</MemberID>",10);

               address =mypar.getWIGIBarcodeInfo(response,"<MemberAdd1>","</MemberAdd1>",12);
               phone =mypar.getWIGIBarcodeInfo(response,"<MemberPhone1>","</MemberPhone1>",14);
               mobile =mypar.getWIGIBarcodeInfo(response,"<MemberMobile>","</MemberMobile>",14);
               mail =mypar.getWIGIBarcodeInfo(response,"<MemberEMail>","</MemberEMail>",13);
               //boolean isActive=Boolean.isActive;
               //Dialog.alert(""+response);
               //Dialog.alert(""+memberid);

               if(isVal==0)
               {                
                  if(isActive.equalsIgnoreCase("true"))                 
                  {                  
                     UiApplication.getUiApplication().pushScreen(new JSearchDiamondPage());                     
                     rblogin.setText("");
                     rbpassword.setText("");
                     Setting.setMemberID(memberid);

                  } 
                  else
                  {
                     Dialog.alert("Enter correct user name and Password");
                     rblogin.setText("");
                     rbpassword.setText("");
                     rblogin.setFocus();           
                  }
               }
            }
            catch(Exception ex)
            {
               Dialog.alert(""+ex);
            }
         }
      });

      hfmforgetlogin =new GridFieldManager(3,2,1|GridFieldManager.NON_FOCUSABLE);
      hfmforgetlogin.setPadding(0, 0, 0, 0);
      hfmforgetlogin.setColumnProperty(0, GridFieldManager.FIXED_SIZE, 160);
      hfmforgetlogin.setColumnProperty(1, GridFieldManager.FIXED_SIZE, 220);
      hfmforgetlogin.add(rmtemp1);
      hfmforgetlogin.add(rmtemp2);
      hfmforgetlogin.add(checkRemeberMe,Field.NON_FOCUSABLE);     
      hfmforgetlogin.add(linkforgetpwd);
      hfmforgetlogin.add(rmtemp3);
      hfmforgetlogin.add(rmtemp4);

      //hfmforgetlogin.add(cbflogin);
      //Grid Field Manager
      gfmlogin=new GridFieldManager(2,1,1|GridFieldManager.NON_FOCUSABLE);
      gfmlogin.setRowProperty(0,GridFieldManager.FIXED_SIZE,30);
      gfmlogin.setRowProperty(1,GridFieldManager.FIXED_SIZE,10);
      gfmlogin.setPadding(10,0, 0, 10);
      gfmlogin.setFont(myfont.contentdata);
      //gfmlogin.nextFocus(2,1);
      gfmlogin.add(lbllogin,GridFieldManager.FIELD_LEFT);
      gfmlogin.add(lblpassword);

      gfmtxt=new GridFieldManager(2,1,1|GridFieldManager.FOCUSABLE);
      gfmtxt.setPadding(10,0, 0, 10);
      gfmtxt.setFont(myfont.contentdata);
      //gfmtxt.setFocus(67,97,);
      gfmtxt.nextFocus(0,0);
      gfmtxt.add(rblogin,FOCUSABLE);
      gfmtxt.add(rbpassword,FOCUSABLE);
      HorizontalFieldManager hfm=new HorizontalFieldManager();
      hfm.setPadding(0,0,0,0);
      hfm.add(gfmlogin); 
      hfm.add(gfmtxt); 
      MyFramePageForLogin.contentarea.add(lblalreadymember);
      MyFramePageForLogin.contentarea.add(hfm);
      MyFramePageForLogin.contentarea.add(hfmforgetlogin);     
      MyFramePageForLogin.contentarea.add(cbflogin);

      /********************************************************/
      //Adding line as image     
      BitmapField lineimg = new BitmapField(Bitmap.getBitmapResource("line.png"), BitmapField.LEFT);
      lineimg.setPadding(20, 30, 10, 10);
      MyFramePageForLogin.contentarea.add(lineimg);
      /**************END of adding Line***********************/

      lblnotamember=new LabelField("Not a Member ?")
      {
         public void paint(Graphics g)
         {
            //g.setColor(0x585858);
            super.paint(g);
         }
      };    
      //lblnotamember.setPadding(Display.getHeight()/2+100,0,0,10);
      lblnotamember.setFont(myfont.headfont);
      lblnotamember.setPadding(10,10,10,10);

      MyFramePageForLogin.contentarea.add(lblnotamember);//End       

      /******Adding Register Button**************/
      /* ButtonField bf=new ButtonField("HEllo");
         contentarea.add(bf);*/
      cbfregisternow=new CustomButtonField("       Register Now", Color.CYAN);
      cbfregisternow.setPadding(5,10,10,200);
      cbfregisternow.setFont(MyFont.contentdata);
      cbfregisternow.setChangeListener(new FieldChangeListener() 
      {
         public void fieldChanged(Field field, int context) 
         {           
            //Dialog.alert("Mobile:"+umobile+",Created On:"+ucreated_on+",Active:"+uactive+",Paid"+umember_paid+",Appr"+umember_appr);
            UiApplication.getUiApplication().pushScreen(new JNewRegistrationPage());
            //UiApplication.getUiApplication().pushScreen(new JVendorDetailsPage(name1,person,address,phone,mobile,mail));          
         }
      });
      MyFramePageForLogin.contentarea.add(cbfregisternow);     
      rblogin.setFocus();
      //setFocus();
   }
   protected boolean onSavePrompt() 
   {
      return true;
   }
}

in above code 2 components that are not displayed on non touch screen are

  1. rblogin
  2. rbpassword

this are the custom text fields.

  • 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-23T14:03:27+00:00Added an answer on May 23, 2026 at 2:03 pm

    The componenets rblogin and rbpassword as I see are custom made (ref : className – CustomRoundBorderTextBoxField )

    The following could cause the problems that you are facing :

    • The class that CustomRoundBorderTextBoxField is extending might not be available in the OS 5.0 (9780 comes with two OS Versions 5.0 and 6.0 depending on the model)

    • The Fields might be misplaced due to screen sizes remember 9800 is 360×480 and 9780 is small size

    • One might forgot it to add to the screen 🙂

    If the problem doesnt get solved still, leave a comment

    Thanks
    Dheeraj Jami

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

Sidebar

Related Questions

I have this application developed for Blackberry 4.5. I´m using Eclipse, and I want
I have developed an application for blackberry 8520 version 5.0 in Blackberry Eclipse. Now
i have been working on developing an blackberry application. as per now i want
I have an application developed on BlackBerry JE 4.6.1 that decrypts an information from
I have developed a website using Razor (Microsoft WebMatrix) and now I want to
I've developed a PhoneGap application that I intend to deploy to my BlackBerry Bold
Hello, i had develop application in blackberry version 5.0. Now i want to install
I am developing BlackBerry application that connects to the web service. When I developed
I have developed an order processing application for BlackBerry. When I look at the
I have to develop a BlackBerry application which runs on all the devices running

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.