Results 1 to 6 of 6
Thread: Problem with Midlet back button
- 11-27-2007, 03:27 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 15
- Rep Power
- 0
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.
- 01-03-2008, 12:37 PM #2
Member
- Join Date
- Jan 2008
- Posts
- 3
- Rep Power
- 0
use while press back button TextBox.setString(" ");
- 11-13-2008, 12:33 PM #3
Member
- Join Date
- Nov 2008
- Posts
- 2
- Rep Power
- 0
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
- 11-14-2008, 05:32 PM #4
Member
- Join Date
- Oct 2008
- Posts
- 40
- Rep Power
- 0
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);
- 11-14-2008, 05:36 PM #5
Member
- Join Date
- Oct 2008
- Posts
- 40
- Rep Power
- 0
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.
- 11-17-2008, 09:14 AM #6
Member
- Join Date
- Nov 2008
- Posts
- 2
- Rep Power
- 0
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
-
Browser's back button refresh the pages
By hasansheikh18 in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 05-31-2011, 04:44 PM -
java applet button problem .. :( plz help!
By i4gotmyid in forum Java AppletsReplies: 1Last Post: 04-17-2008, 04:11 PM -
java applet button problem .. :( plz help
By i4gotmyid in forum New To JavaReplies: 0Last Post: 04-05-2008, 09:55 AM -
Back Ground Midlet
By krmlkr in forum CLDC and MIDPReplies: 1Last Post: 03-06-2008, 01:41 PM -
Adding EXIT button on MIDlet form
By Java Tip in forum Java TipReplies: 0Last Post: 11-22-2007, 10:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks