![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
|
midlet-j2me
I'm using Netbeans IDE 5.5 with mobility pack and I'm making a midlet application.
I have a main form with an "ok" button returning to itself. I have added on form, an imageItem1 on which i haven't put any default image. ( image = none) i have added an image item(image1) As you can see, I'm trying to add the image1 on imageItem1 when the flag boolean is true and dissapear it if not.. It just doesn't work..no errors: if (displayable == helloForm) {
if (command == exitCommand) {
// Insert pre-action code here
exitMIDlet();
// Insert post-action code here
} else if (command == okCommand1) {
// Insert pre-action code here
getDisplay().setCurrent(get_helloForm());
// Insert post-action code here
if(flag == true){
imageItem1.setImage(image1);
flag = false;
}
else{
imageItem1.setImage(null);
flag = true;
}
}
}imageItem1.setImage(image1); any solutions? |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| J2me | Sengbasy | Java | 3 | May 12th, 2006 2:12 PM |
| j2me | Writlaus | Java | 3 | Apr 12th, 2006 3:47 PM |
| J2ME network error | xdev | Java | 2 | Feb 12th, 2006 5:32 AM |
| Errors in microjava midlet | freddielj | Java | 1 | Apr 8th, 2005 11:02 AM |
| possible solutions for microjave | freddielj | Java | 2 | Apr 7th, 2005 9:50 AM |