Help - I don't want to trigger an event!!

public void tableChanged( TableModelEvent event ){
  int row = event.getFirstRow();
  int area = c.area(input);
  if(table.getValueAt(row,QUANTITY) != null){
    table.setValueAt(""+area,row,SUBTOTAL); //This causes an infinite loop!  I don't want it to trigger an event!
}How can I get it to ignore this event, or stop it from triggering an event?

private boolean respond = true;
public void tableChanged( TableModelEvent event ){if (!respond) return;
int row = event.getFirstRow();
int area = c.area(input);
if(table.getValueAt(row,QUANTITY) != null){respond = false;
table.setValueAt(""+area,row,SUBTOTAL); //Thisrespond = true;
How can I get it to ignore this event, or stop it from
triggering an event?

Similar Messages

  • Gif - file help: i don't want to read the gif each time from the file.....

    Hello there guys,
    i'm making a game and therefor i need to read a gif file like 20 times.
    i don't want my program to read the gif each time from the file, but only once.
    so i load it into an image or something?
    cuz opening the gif 20 times from my hard disk is a lot of time loss....
    opening it once and store it is much more efficient
    thx in advance
    plz help me out, cuz i don't really know how to do it.
    (in Delphi it's easy, but Java......)
    greetz,
    SpeciesXX
    Ramon Ribbe

    yes, it works, i used this code, thx man
    void button1_ActionPerformed(java.awt.event.ActionEvent event)
              ImageIcon image = new ImageIcon("f:/a.gif");          
              JLabel label = new JLabel();          
              label.setIcon(image);                    
              this.getContentPane().add(label);
              label.setBounds(10,10,100,100);
    and there i see my image :-)
    but 1 more thing, should i display all those blocks (images) on an applet, or should i use something else? (like what??)
    a sort of frame?
    because later on i have the field where all the blocks are in, and i have an area surrounding it, displaying all kinda information about the game, like how many lives remaining....
    can i put 2 applets in eachother? like applet1 is the parent of applet2?
    or should i use something else?
    plz help me, cuz java is kinda new to me i see....
    in delphi i just used 2 forms, form 1 with the blocks, form2 with the rest of info, and also being the parent of form1
    thx again, soon i can help ya guys too, i hope..
    (im learning java at school, but way too slow and to ez)
    Ramon

  • Want to trigger an event in Javascript using Actionscript

    Hello forum,
    I am trying to trigger an event in Javascript from an SWF.  In HTML the triggering event is this:
    <a href="#" onclick="return GB_showFullScreenSet(page_setWEB1, 1)"><img src="images/Thumbnails/IMAGE-NAME.jpg" /><br />Link Label</a>
    This line trggers a pop-up style portfolio image slideshow.  I am trying to figure out how to trigger this event from actionscript.  I am not sure what this would even be called so any help would be great.
    Thanks,
    Brett

    The communication works both ways.  Here's the description from that page.
    "From ActionScript, you can call any JavaScript function on the HTML page. It passes any number of arguments of any data type, and receives a return value from the call.
    From JavaScript on the HTML page, you can call an ActionScript function in Flash Player. The ActionScript function can return a value. JavaScript receives it immediately as the return value of the call."
    It can be a bit confusing to implement, so you might want to search for other examples/tutorials if you can't get it working from the one linked already.

  • Don't want to trigger alert in mapping failure

    Hi Experts,
    I have defined one alert category and corresponding rule in RWB to trigger alert for any failure like Receiver determination error, mapping error etc for all interfaces like Create order, cost center, shipments etc.
    I have done complete configuration and getting alerts email in mail box if any interface fails with any reason.
    But, Now, I came up with requirement that for one particular interface the alert should not trigger for mapping failure only and other interface should also not affect.
    Need your help to configure the same.
    Thanks in advance for your help.
    Regards,
    Shele.

    Thanks a lot for replies.
    the solution achived by defining as suggested.
    u2022 Created alert rule for interface specific with u201CNo Restrictionu201D to handle all types of error instead of one generic rule to handle all interfaces.
    u2022 Created Multiple Rules ( Like Receiver determination error, IDOC Adapter errors etc) instead of "No Restriction" for required interface to handle errors excluding mapping error. It had sucessfully suppressed the alerts only if u201Cmapping Erroru201D occurs.
    Thanks,
    Shele.

  • Help - I DON'T want iTunes to run on all XP profiles

    I couldn't find this topic addressed before, so here goes:
    I've set up 2 profiles on XP and I'd like one of them to be as bare-bones as possible. Is there any way to disable iTunes on one of my profiles? I can't find any place in the Preferences section to do this and XP doesn't seem to be any help either.
    Any ideas would be welcome!

    If you want all remnants of itunes gone in the one profile, that is going to take some time for research and registry editing.
    As a start, you could move itunes out of this All Users folder and put it into just the user folder that you want to have itunes.
    C:\Documents and Settings\All Users\Start Menu\Programs

  • Firefox is now closing unexpectedly shortly after I open it. There is not even enough time to click on help, then disable ad-ons. I also don't receive any error messages. It just closes after a few seconds. Help! Don't want to use other browsers.

    I came here to post because it seems my question wasn't posting when simply clicking on "ask this question".

    I think in the circumstances, an uninstall/reinstall is called for. Please follow these instructions.
    Go to [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 4.0] and download a fresh installation file using IE8 or 9 and choose to save it to your desktop when you see the prompt.
    Then go to Add/Remove Programs, scroll down to '''Mozilla Firefox '''and remove it, choosing to keep your bookmarks, customizations etc., (don't checkmark the box).
    Then reboot and delete the folder called '''Mozilla Firefox '''at this location: ''C:\Program Files\Mozilla Firefox''
    Finally run the installation file you downloaded to the desktop earlier.
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.

  • I need some advice on replacing my ipod touch 4th generation screen. The silver plate won't go back into it's original place and i can't put the screws back in. I really need help i don't want my ipod to be broken!!!

    I started to replace my ipod 4g screen but the silver plate that goes on top of the battery won't go back into place. It's not lining up with the screw holes so i can't finish the repair. Please I'm begging you all to help me with some advice and tips!!!!!!!!!!!!!! It will be greatly appreeciated. ASAP

    Your best bet is to email the company that sold you the screen for advice.  Or you could search on YouTube for repair instructions.  Hopefully, you will see where you went wrong.  Apple will not do an out-of-warranty replacement on an iPod that has been opened.

  • HT1386 unable to sync my ipad2   receive an error message 1140 (unknown error)  HELP..don't want to have to go to the apple store to be able to sync my ipad to my desktop !!

    For some unknown reason, I am unable to sync my ipad2 with my desktop.  I receive a message saying it cannot sync due to an unknown error 1140.
    Hate to have to run to the apple store to get this resolved...hope someone here knows the answer !!  I need to sync !!
    Thank You.

    Experienced User Terrell Smith recently posted on this Error Code:
    Terrell Smith:
    "Today I was in an Apple Store, and four Apple Geniuses could not solve this problem. It seems to have something with large iPhoto Libraries, because when I started iPhoto up with a small library (1,100 photos), the problem did not occur. In iTunes, under the Photo's option "Sync Photos," if the iPhoto library is large (38,000 photos), the option to select the radio button "Selected albums, Events, and Faces" is grayed out, and you cannot select it.
    My guess is that since the large iPhoto library will not fit on your iOS device, iTunes throws the 1140 error.
    As others have noted, if you uncheck "Sync Photos" in iTunes, the rest of things will sync instead of throwing the 1140 error message.
    But you don't have synced photos then.
    The Apple Store told me they have no solution for this error. We should file iPhoto Feedback, and that this issue has been escalated to Apple Engineering."
    http://www.apple.com/feedback/iphoto_ios.html
    Hope this helps

  • HELP! Don't Want Headaches!

    I use a Canon FS200 and (maybe) a Canon SureShot. I realized thatto use these video clips in Final Cut Express 4, I have to use MPEG Streamclip to convert the videos into two different formats. DV-PAL for the video and Quicktime DV-NTSC for the audio for approximately 50 clips for my usual projects. I then have to make sure my In and Out points are in the same place for each feed (for lack of a better word) and put in the audio, Option-Shift delete the video part, de-select A1 and A2 and then Superimpose the video into the Timeline. I then have to crop the video, because I get a flickering black bar at the top when I view it in the Canvas.
    Does anyone know a way around this or a way to combine the audio and video before editing to make it easier?
    HELP!

    OK, anyway if you shoot in 4:3 drag the file to MPEG Streamclip and go to the menu File > export to Quicktime.
    When the settings window opens, change the compression to Apple DV/DVCPRO -NTSC and the other options like this:
    !http://www.spotsbeforeyoureyes.com/MPEGStreamClipDV.jpg!
    if you are shooting widescreen 16:9 then click the options button next to the Compression and set it for 16:9.
    Click on Make Movie.
    Open up FCE. Go to the menu Final Cut Express > Easy Setup and choose DV-NTSC.
    This will not affect any of your existing projects - only new ones. Create a new project and import the file you converted from MPEG Steamclip. You should be able to move it to the timeline and play back without rendering audio and video.
    Hope this helps.

  • Ios7 No push notifications. Help. Don't want to backup an restore if I don't have to.

    Updated to os7 on my iPhone 4S. Now says"hook up to iTunes to enable push notifications." In phone settings everything is set up right. ANY OTHER WAY2 fix? Besides hookingUp 2iTunes,backingUp phone, thenRestoring phone-Which isthe onlyanswer I've found.

    Please don't post here about beta software. There are confidential forums set aside for developers to use. Developer Forums. If you are a paid developer or seed tester then it's a violation of your NDA to post in these forums. If you aren't a developer or seed tester then you have an illegal copy.

  • I cannot print web pages. Tried printing with IE and it worked, so this is Firefox-specific. I will have to stop using it unless someone can help me figure out why it won't let me print a web page. Help! Don't want to go back to IE!

    Can't print from Firefox. ONLY Firefox, and only since downloading v.4. Can I get back to V. 3? Kind of reminds me of when Windows XP "advanced" to Vista.

    Try to create a new profile as a test to check if your current profile is causing the problem.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Don't want random keyboard & mouse events to wake from sleep

    is there any way to prevent a random keyboard press or mouse movement from waking up the computer? a terminal setting or something? ideally, i'd just like to use the power button to do this--or at the very least to completely disable the mouse's ability to wake the machine, and specify a certain key or something.
    seems like an obvious setting that's missing...or that i'm overlooking...?
    thanks!
    various Macs   Mac OS X (10.4.8)  

    markhimself wrote:
    Is there any way to disable the mouse from waking from sleep mode? Additionally, can you disable the mouse from waking the display from display sleep only? And is this done the same way?
    Thanks.
    If it's a BlueTooth mouse you can uncheck the option in the Keyboard & Mouse preferences.

  • If I don't want or need an 'event'....

    Is there any way to load photos directly from my camera into the photo library without having an event automatically created for them?
    I have many pictures for which the concept of an event is irrelevant and I would like to be able to choose which of them are grouped into an event and which are not.
    thanks
    Gary

    In a word, No.
    But it really doesn't matter. On the left hand pane of iPhoto there's the word 'Photos' and that's a view of the self-same library not broken into Events.
    Now you can customise that as you wish - Check out the View Menu for more.
    In more detail: simply, Events are just a word. They're just Folders with a fancy icon. You can move pics between Events, consolidate events rename them etc etc, just like any folder. BUt every pic is in one of these folders somewhere. They're the basic building block of the Library.
    Other than that, of course, for real flexibility, keywording and Albums offer pretty much unlimited flexibility in organising your Photos.
    Regards
    TD
    Regards
    TD

  • I want to decline my payment monthly and I don't want to be a member I want out can any one help me and I want my money back that being going out of my account I need help please

    I Need help I don't want to be a member I want out and I want my money back that being taking out of my account I need help please

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • I accidentally hit "download all" in iTunes. I don't want all that music on my phone. How do I stop it?

    Please help. Don't want all these songs on my iPhone. Accidentally hit "download all" on iTunes. How do I stop it!!??

    Once it finishes, you can go back into iTunes and unselect sync music, resync the phone and it will remove the music. You can then select certain tracks or playlists if you want. You also have the choice to manually manage music. See the User Guide http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

Maybe you are looking for

  • Ipod Restore - Unknown Error

    I turned on my ipod this morning, and updated it from my library, on unpluggin my ipod from the USB, it stopped working, it then began to display the message "Connect to computer, use iTunes to restore". So i did, My computer didnt recognise my ipod.

  • Scheduling Crystal report from BOE

    Hi, I have a Crystal report (based on ECC Function module) which doesn't retrieve data when I schedule it from BOE (infoview). I have Integration kit installed, and the crystal report works fine when i execute it manually. I think it is an issue with

  • Solaris 10 with Matlab

    matlab does not work with the latest kernel patches. Why?...

  • JAVA SP level of BW System??

    Hello All,               Our BW ABAP Support Pack level is 18,I need to confirm JAVA Support Pack level.How Can I do it?When I am trying to login to the portal of BW ---System Information I am getting the following error: Error - Unable to read compo

  • Upgrade to the new version make my machine Clash

         I upgraded my flash to the new version and it clashes every time i try to open it. Machin does not respond and i h ave to shut down and restart my computer again. Theprogram freezes with flash logo