You Are Here:

Community: Developer Discussion Boards

#1 Old Flashing screens between TextBoxes - 2003-10-05, 16:01

Join Date: Sep 2003
Posts: 98
Location: Finland
Send a message via ICQ to rooster13
rooster13
Offline
Regular Contributor
Ok, first I have to admit that I'm just a novice with this matter, trying to learn anyway...

I'm having this problem, the phone flashes previous menu between two separate TextBox displays..

The code example:

> public void textbox(int dt) {
> Display textDisplay = Display.getDisplay(this);
> input = null;
>
> if (dt == 0) {
> input = new TextBox("Enter name: ", "", 16, TextField.ANY);
> input.addCommand(addRankCommand);
> input.addCommand(backCommand);
> input.setCommandListener(this);
> textDisplay.setCurrent(input);
> }
> if (dt == 1) {
> input = new TextBox("Enter rank: ", "", 3,TextField.NUMERIC);
> input.addCommand(saveCommand);
> textDisplay.setCurrent(input);
> input.setCommandListener(this);
> }
>
>
> public void commandAction(Command c, Displayable d) {
> String label = c.getLabel();
>
> if (label.equals("Add Player")) {
> textbox(0); //To display textBox name
> }
>
> if (label.equals("Add Rank")) {
> String name = getString(input);
> textbox(1); //To display textBox rank
> }
>
> if (label.equals("Save")) {
> do the saving things.
> }
>

So when choosing "Add rank", there flashes the previous menu, before the Rank textbox appear on the display. How can I avoid this, so this annoying flashing won't happen.

Thanks...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ