Results 1 to 6 of 6
  1. #1
    Poonam is offline Member
    Join Date
    Nov 2007
    Posts
    15
    Rep Power
    0

    Default Problem with Midlet back button

    I have one text box on a form(say form1) and one ok button.
    when enter some text in text box and click ok button it goes to other
    form (say form2)which has a back button.
    When i click on back button it comes to form1 with text box is populated with previous entered text. But i want empty text box after clicking on back.

  2. #2
    try.test.abc is offline Member
    Join Date
    Jan 2008
    Posts
    3
    Rep Power
    0

    Default

    use while press back button TextBox.setString(" ");

  3. #3
    mjagadish is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    Default Adding back button to Midlet

    Hi all,

    I am new to mobile application development can anyone please tell me how to add back button to midlwt

    Thanks & Regards,
    Jagadish

  4. #4
    arnab321 is offline Member
    Join Date
    Oct 2008
    Posts
    40
    Rep Power
    0

    Default

    u can just create a new instance of that text box, when the user presses back. or else u can set the value of the txt box to null, using mytxtbox.setString(null);

  5. #5
    arnab321 is offline Member
    Join Date
    Oct 2008
    Posts
    40
    Rep Power
    0

    Default

    for that back button, it can be implemented in a form using form.addCommand(Command typpe variable) and form.addCommandListener(MIDlet instance). then, u can check using that commandlistener function if the back command was fired, and then use Diaplsy.getCurrent(this).setCurrent(he displayable u want go view).

    y dont u do a google srch? so many samples der.

  6. #6
    mjagadish is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    Default Adding back Butto to Midlet

    Hi all,

    Thanks a lot a got the back button.I was developing mobile application in netbean 5.5 now when i open the same application in Netbean 6.0.1 , its asking to convert the Midlet which was developed in Netbean 5.5.And after conversion it will show some errors:

    FileConnection filecon = (FileConnection)Connector.open(_musicPath+"WormWir e/", Connector.READ_WRITE);

    Can't find symbol.

    Thanks & Regards,
    Jagadish M

Similar Threads

  1. Browser's back button refresh the pages
    By hasansheikh18 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-31-2011, 05:44 PM
  2. java applet button problem .. :( plz help!
    By i4gotmyid in forum Java Applets
    Replies: 1
    Last Post: 04-17-2008, 05:11 PM
  3. java applet button problem .. :( plz help
    By i4gotmyid in forum New To Java
    Replies: 0
    Last Post: 04-05-2008, 10:55 AM
  4. Back Ground Midlet
    By krmlkr in forum CLDC and MIDP
    Replies: 1
    Last Post: 03-06-2008, 02:41 PM
  5. Adding EXIT button on MIDlet form
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-22-2007, 11:13 AM

Posting Permissions

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