×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    103

    Login screen with button in form

    Hi,I want to make login screen which contain on icon in top of screen then
    1)Label:-Name
    2)Textbox to enter name
    3)Lable:-Password
    4)Textbox to enter password
    5)Login Button on which i can press it can navigate to next page.
    6)Background image
    My problem is i can able to get name and password and append image code through google.
    1)But i cant able to set button image in the center of the scrren.Becoz as i try to append it in the form by
    form.append(LoginButton);
    The button appears in the left side of the screen.
    How can i do the allignment of the image and textbox in form.

    2)My 2nd problem is i want to set background image and want that this textbox and image component lies on that backgorung image.

    Can any one help me and send me the code.

    Please help me

    Thanks in advance

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Login screen with button in form

    Quote Originally Posted by shwetadseema View Post
    1)But i cant able to set button image in the center of the scrren.Becoz as i try to append it in the form by
    form.append(LoginButton);
    The button appears in the left side of the screen.
    How can i do the allignment of the image and textbox in form.

    2)My 2nd problem is i want to set background image and want that this textbox and image component lies on that backgorung image.

    1. There is nothing much you can do customize your GUI in case of the High Label API you are using. You can't set the layout using this. For such kind of GUI you can have a look over the third party GUI like GUI.

    2. You can't draw the components on the image, this kind of GUI can not be drawn using the high label,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    103

    Re: Login screen with button in form

    ok thank you.But now i use canvas then for login screen.So how can i interact with qwerty keypad if i am using canvas.

    Please help me

    Thank

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    6

    Re: Login screen with button in form

    Quote Originally Posted by shwetadseema View Post
    So how can i interact with qwerty keypad if i am using canvas.
    well, using Canvas for text entering can be painfull - especially when application have to run on many different devices. Maybe you should use one of graphic libraries instead of using pure Canvas (e.g. LWUIT), if this is for new Nokia devices you can consider using TextEditor object, or just display new TextBox to enter text when user clicks on your text field in Canvas (this will use native phone text entering).

  5. #5
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    103

    Re: Login screen with button in form

    i know LWUIT.but i dont know how to make use of it for login screen.I can able to add LWUIT but i can't able to use themes.
    And please help me out how can i use themes and how can i able to make proper login screen for entering text.
    As i have to make use of different devices.

    Please help me.
    It is urgent
    Thank you

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Login screen with button in form

    Quote Originally Posted by shwetadseema View Post
    i know LWUIT.but i dont know how to make use of it for login screen.I can able to add LWUIT but i can't able to use themes.
    And please help me out how can i use themes and how can i able to make proper login screen for entering text.
    As i have to make use of different devices.

    Please help me.
    It is urgent
    Thank you
    LWUIT these days is a famous third party GUI designing and developing technology and hence on the web there are many toutorials avaiable. Try to search the web too, however here the complete flow of working the LWUIT theme.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Regular Contributor
    Join Date
    Jan 2011
    Posts
    103

    Re: Login screen with button in form

    Thanks,but i had put forward slash befor res file but then also it is showing error.
    The code which i use to add theme is:--
    try {
    Resources r = Resources.open("/JavTheme.res");
    UIManager.getInstance().setThemeProps(r.getTheme("javTheme"));
    } catch (IOException ioe) {
    System.out.println("Couldn't load theme.");
    }
    *******************************************************************************************************
    The error which i m getting is::--
    java.lang.NullPointerException: 0
    at com.sun.lwuit.plaf.UIManager.buildTheme(UIManager.java:382)
    at com.sun.lwuit.plaf.UIManager.setThemePropsImpl(UIManager.java:377)
    at com.sun.lwuit.plaf.UIManager.setThemeProps(UIManager.java:353)
    at LwuitMidlet.startApp(LwuitMidlet.java:29)
    at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(), bci=1
    at com.sun.midp.midlet.MIDletPeer.startApp(), bci=7
    at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=269
    at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
    at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
    at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
    at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26


    I had added the javtheme.res file in my src folder But then also it is showing this error.

    Please help me.

    Thank you in advance

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Login screen with button in form

    First suggestions , please check the same details in the link. This can be the other solution...to check that the Form has been initialized and the theme was loaded correctly.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Login Form
    By ierpe in forum Mobile Java General
    Replies: 2
    Last Post: 2008-07-02, 13:21
  2. Login form
    By vilastalewale in forum Mobile Java General
    Replies: 1
    Last Post: 2007-02-22, 13:06
  3. Can't get UI to work with simple login form
    By sheadley in forum Symbian
    Replies: 1
    Last Post: 2005-04-26, 14:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×