Is there a way to remove a image?

hi
is there a way to remove a image that is created and append to the form in J2me.? thanks

i will be a bit more specific so u can get a rough idea-below is my code
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.io.*;
public class TCPClient extends MIDlet implements CommandListener {
private Display display;
private Form form;
private Command exit, scgIndex;
private TextField txtField;
private ChoiceGroup sImage;
private int sIndex;
public TCPClient(){
display=Display.getDisplay(this);
form=new Form("TCPClient");
txtField=new TextField("type what u want to send","that's all folks",30,TextField.ANY);
sImage= new ChoiceGroup("pls select", Choice.EXCLUSIVE);
sImage.append("no image",null); //=0
sImage.append("image",null); //=1
exit=new Command("Exit",Command.EXIT,1);
scgIndex=new Command("select", Command.ITEM,1);
form.append(txtField);
form.append(sImage);
form.addCommand(exit);
form.setCommandListener(this);
     }// end of constructor
public void startApp(){
     ItemStateListener listener = new ItemStateListener() //an anonymous class
     public void itemStateChanged(Item item)
                         if(item==sImage){
                              sIndex=sImage.getSelectedIndex();
                              switch(sIndex){
                                   case 0:System.out.println(sIndex);
                                   break;
                                   case 1:System.out.println(sIndex);
                                   try{
                         ImageItem logo= new ImageItem("",Image.createImage ("/misa.jpg"), ImageItem.LAYOUT_CENTER,"");
                                   form.append(logo);
                                   System.out.println("success");
catch(IOException e)
{System.out.println("error");}
break;
default: System.out.println("kiss my ass");
                                   }//end of switch
                              }//end of if
                         //do something
     // register for events
form.setItemStateListener(listener);
display.setCurrent(form);
public void pauseApp(){}
public void destroyApp(boolean unconditional){}
public void commandAction(Command c, Displayable s){
if(c==exit){
          destroyApp(false);
          notifyDestroyed();
          }} // end of commandAction
/*public void commandAction(Command c, Item item){
     }//emd of commandAction method*/
after the "image "radio button is selected,the image will appear.if the user does not want the image, the user click the "no image " radiobutton .
then the image(imageitem) will disappear. if it possible to achieve it ???
thanks :)

Similar Messages

  • Is there a way to remove the autoformatting of the "Places" slideshow theme?

    The Places slideshow theme in Aperture is a great one for what I want to do; however, it automatically formats the slides where it will place two or three images per slide.  I'd like to have only one image per slide.  Is there a way to remove or adjust the autoformatting of this theme to have only one image per slide?  If not, do you know of a way to add a map to any of the other slideshow themes?  Thanks for the help!

    What is your phone model?
    It will help us offer more complete suggestions.

  • Is there a way to remove the date and time from pictures?

    Is there a way to remove the date and time from phoos in iPhoto?

    Are you referring to the Date and Time some cameras put right on the image?  If so there is nothing really good in iPhoto to do this. You could try the Retouch tool and see how that looks but I think you will need something more precise and powerful, like the clone tool in Aperture.
    Also something like PhotoShop or GIMP - The GNU Image Manipulation Program (free) should do what you want also.
    If your asking about some other date post back.
    regards

  • I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?

    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!

    My apologies for the lack of photos, here is my post again with photos.
    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!
    iPhone 6, iOS 8.3, Also an issue on my iPad mini iOS 8

  • Is there a way to remove an app from the list of previously installed apps?

    Is there a way to remove an app from the list of previously installed app?
    The list that comes up when you click on the Purchased icon when updating apps.
    The list is becoming quite large after I installed and tried out a few apps.

    nvm. I found it.

  • I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)

    I would like to know, on the ringtone page, where you can select songs out of your music library, is there a way to remove a song from the list after its selected? I would thin there would be a way to "delete" the songs from the list. (Clock app)
    Let me explain:
    In the clock app for ios 6.0.2 I am a little confused. It allows you to go into your music library, and create a ringtone using any songs you choose. However, I cannot find a way to remove a song from this list, just like I cannot delete one of the preset ringtones (which I'm not trying to do, but just as an example)
    Thanks for your time! If you need more information just ask.
    (I believe both my iPod and iTunes are up to date)

    I believe you just are able to delete them from iTunes.
    Hope it will be helpful

  • Is there a way of aligning the images in iweb photoalbums other than have them be a square?I have them at same height and resolution but htere is a default that shrinks them and aligns them at the bottom.Thanks.

    Is there a way of aligning the images in iweb photoalbums other than have them be a square?I have them at same height and resolution but htere is a default that shrinks them and aligns them at the bottom.Thanks.

    So how did you do it?
    by understand what iweb widgets do, in this case setting gridEntry widget's scalMode preference from fill to fit.
    then reset the displayed image, so it fits in the display area even if it's portrait aspect.
    however, i found some glitches in gridEntry widget that's quite strange... but all fix-able.
    perhaps, iweb experts (whose had poked at my example) here can chime in.

  • Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    When you click on "My Snippets", it will list down all saved user snippets, which you can right-click and click on "delete" to delete it.

  • Is there a way to remove the extended phot info attached to a picture in iphoto?

    I imported some pictures into iphoto, and they have extended info attached, like my location.  Is there a way to remove it?
    T

    Hi Fiona,
    Okay, the 4th parameter is the issue.
    There are four options:
    0 = OK (will not have an 'x')
    1 = OK, Cancel (will have an 'x')
    2 = Yes, No (will not have an 'x')
    3 = Yes, No, Cancel (will have an 'x')
    Where you do not include a cancel button (0 or 2) then there wont be an 'x':
    However where you do include a cancel button (1 or 3) then there will be an 'x':
    There wont be a workaround here (afaik), as the messagebox is driven by the OS, eg is automatically appears different on a Mac verses a Windows machine.
    Good luck,
    Niall

  • Is there a way to remove the GNome border for Firefox in Fedora 20 (gnome desktop)

    Hi I have Fedora 20 with Gnome 3 desktop. The Firefox 31.0 has a bar above the tabs where it displays a bar and it shows the page title. Is there any way to remove it as it uses some space and I hate it. Is there any way to hide it or remove it.
    I have added screenshots just for reference: https://www.flickr.com/photos/jayabharat/15136543446/ https://www.flickr.com/photos/jayabharat/15159579845/

    Well, that works in my Windows, but not in Gnome 3. So In order to remove the title bar, I had to use Add-ons.
    HTitle 2.13 did wonders.
    Hide Caption Titlebar Plus 2.8.6 is also a good option.

  • Is there a way to remove "Applet running..." when launching Applet in JWS?

    Is there any way to remove the "Applet running..." message at the bottom of the applet when launch in JWS? I have searched in the forum and bug database and cannot find a reference in how to remove it.
    I remember in the old applet days (JDK 1.1, 1.2?), everybody are mad at the yellow warning message when launching a new frame from an applet window. It is hard to believe this issue reappears in JDK 1.4.
    FYI, all the jar files are signed. And I am using JDK 1.4.1.
    Thanks,
    Nelson Fong

    Dietz,
    Thanks for your response. Unfortunately, our application requested all-permission in the jnlp file, and all jar files are signed as well.
    In fact, the warning is more like a status bar. The message was changed from "Initializing Applet..." to "Applet running...." during init() method.
    Any help would be appreciated. Thanks

  • Is there a way to remove a painting on a wall in a shot?

    a couple walk by a wall with a painting hanging behind them. is there a way to remove it? like copy a blank space and paste it on the painting? something like that possible? do i have to go frame by frame? its like 15 total seconds...

    I agree.
    Blurring the area sounds more viable.
    Perhaps our friend might go to Andy Mees' site and download his FREE key frame-able "Andy's Region Blur":
    http://web.mac.com/andymees/Freeand_Easy/main/Entries/2008/3/19_Andy%E2%80%99s_Region_Blur3.html
    I use it all the time and it's really easy to learn.
    Andy Mees is a God.
    Best
    Harry.
    Message was edited by: Harry Davenport

  • Is there a way to remove only parts of audio in a clip (remove music but keep voiceover)

    I've been given a promotional video to edit, with a voiceover and background music. The file I have is an MP4 file, and I do not have the separate pieces of the file (Video, audio, and music).
    Is there a way to remove the music but keep the voiceover? I doubt there is..
    Thanks

    If the voiceover is in a narrow range of frequencies you might get lucky. You can use the Graphic Equalizer to reduce the volume of all frequencies except those that the voice is using. There may still be some music in these frequencies as well, but it is worth a try.
    Select your clip and open the inspector to the Audio Tab. Under Audio Enhancements, you will see the word "Equalization". Over to the right you will see a small icon of a graphic equalizer. Click this and it will open the Graphic Equalizer.
    That will bring up the Graphic Equalizer window. You can set the Graphic Equalizer to display 10 bands of frequencies or 31 bands. Choosing 31 bands will give you more control.
    There are probably many other things you could try, since you have access to all the Logic Pro X synthesizers in FCPX, but that is the most straightforward.

  • Is there a way to remove one or more words in the dictionary list of auto-completion?

    Is there a way to remove one or more words from the dictionary list of auto-completion?

    Hi Gordon,
    Auto-completion does not involve the dictionary. The process is dynamic, and remembers the text string you have entered into each cell. The auto completion list is constructed using data you have entered into cells above the one you are currently working with. Suggestions presented contain the same character string as a previous entry in that column. Editing the list presented is not possible.
    Auto-Correction does involve the spelling dictionary. It monitors the text as you type. If it finds an 'unregognized word,"' AND has more than one suggestion as to the 'correct' word, it opens a dialogue, giving you a chance to choose one of the suggestions, enter your own corection, or to accept the current spelling. If there is only one suggestion offered, Auto-correction automatically replaces the unrecognized word wth that suggestion.
    Regards,
    Barry

  • Is there a way to remove additional BP Address in BP Master Data using DTW

    Hi,
    While updating the BP addresses using DTW it got duplicated. Is there a way to remove those Shipto/ Billto addresses which got duplicated. Individually it is possible to remove but using DTW can I create a template?
    Thanks.
    Kishor

    You need to first check if the address line actually exists.  What you have got from Natalia is a guideline which you have to apply to your context.
    Query the CRD1 table and check which line number you want to delete and if it really exists
    The query below will give you cardcode, address type (billto or shipto), Address Name and LineNumber. 
    If you run this query wthin SBO, if you see a blank on the linenum column that means linenum 0.
    SELECT T0.[CardCode] AS 'BP Code', T0.[AdresType] AS 'Address Type',
    T0.[Address] AS 'Address Name', T0.[LineNum] AS 'Row Number'
    FROM  [dbo].[CRD1] T0

Maybe you are looking for

  • Variable Screen Refresh in IP

    Hi Gurus, I am useing Tabs in my Layouts, onces the user in layout after entering the Variables. he can move from one tab to another tab. We have provided the option Variable button in order the changes the variables. so when the user clicks on this

  • Updating to iPhoto 9.5.1 lost all my photos. How can I retreive them?

    Updating to iPhoto 9.5.1 lost all my photos. How can I retreive them? I'm on a MacBook Pro using OS X version 10.9.5. When I attempted to edit a photo in the version I had at the time, I got a message that I must update to iPhoto 9.5.1 to use that fu

  • Firefox will not load.

    I installed Fedora onto my computer and the built in Firefox will not connect to the internet. I have turned off the Proxy, I have turned off IPv6. Nothing works, however when I run Windows on the same computer Internet Explorer connects and works ju

  • Flash player keeps making a constant plopping noice

    Hello, I have an issue with Adobe Flash Player. Today I was watching a youtube video like normal when all of a sudden, something on my pc started making a weird plopping sound. I didn't know where it came from, restarted the computer and it stopped..

  • Problem with onboard LAN

    Hi, I have the following problem: After playing around with overclocking and having to reset the CMOS a couple of times, my onboard LAN stops working even if I don't overclock anything. No ping, and the traffic LED is always on. And most interesting,