Help with stopping KeyListerner

Hi there,
I need help with stopping KeyListener{}. Ive made this applet, which functions in a game. Once the player has achieved the goal, i have a results message appear. but if you hold UP arrow key, the message flashes and the image keeps moving, prolonging the message to appear. I've tried a if{} block, but it doesn't work.
iam using DirectionKeyListener implements KeyListener {} with keyPressed (KeyEvent event) {}. The if {}block (mentioned before) i put into the KeyEvent section so it, for example, x == 9, it would work, otherwise display the message.
Thanks in advance
Landon

yeah i include them but i dont ultilise them.
i use the keyPressed (KeyEvent event) {}
the code looks something like this:
public void keyPressed (KeyEvent event) {
if (current == 9){
//all the normal events
} else {
// display results
public void keyTyped (KeyEvent event) {}
public void keyReleased (KeyEvent event) {}
current is the varible that changes when the race is completed. It changes and then should trigger the new event. Iam also using paint(), if that might interfere.
again, thanks in advance

Similar Messages

  • Help with stop sign on screen - please!

    My hard drive has packed up and I have a new one which I have formatted on another G5.
    When I start up now I get a folder with a flashing question mark in it.
    If I insert my copy of panther then the disk spins and the screen goes to the apple grey screen, but then comes up with a stop sign and I can't proceed any further.
    I have tried holding down C when booting up and also alt which brings up a blue screen which shows the osx disc but then it just goes to the stop sign when I proceed.
    Please help, why won't the operating system load on?
    Because the old hard drive is broken, I only have internet at work.

    Hi Kevin, and a warm welcome to the forums!
    While you may get help or a solution here, It's quite acceptable to start a new topic of your own, certainly feel free to start a new topic to attract more helpers to your particular situation, here's a link if as is often the case, it's hard to find out where to do it...
    http://discussions.apple.com/post!default.jspa?forumID=596
    Or the iMac G5 forum where I don't hang out, but many hood helpers there...
    http://discussions.apple.com/post!default.jspa?forumID=134
    The we are hanging here is a Kernel Panic, usually in your situation a wrong Install Disc, bad Disc, or bad Reader.
    Do you have another Mac with Firewire around?

  • Help with stopping a loop..and more :)

    I have a web site called MyNextPet.org. I want to have a
    featured pet on the
    home page that is Random
    I am attempting to write a function that does this:
    Selects the total pets in the database ('Pets') and generate
    a RecordCount
    Create a variable that is random from 1 to the RecordCount of
    'Pets'
    Attempt to select information about that pet based on the
    generated number
    (that must match the auto incremented 'pettag' number)
    If the number does not match any of the pets, loop through an
    do it again
    If the number does match, stop and output the information
    selected
    I winged this function so I am sure I did something wrong and
    the fact that
    I am posting it proves that I did. I am a little (or a lot)
    confused on how
    to break out of a loop if the condition is met.
    Help!
    Code I have:
    <cffunction name="GetFeaturedPet" access="public"
    returntype="query">
    <cfquery name="Pets" datasource="#Request.MainDSN#">
    SELECT * FROM pets
    </cfquery>
    <cfloop>
    <cfset featured = RandRange(1,#Pets.RecordCount#)>
    <cfquery name="GetFeatured"
    datasource="#Request.MainDSN#">
    SELECT P.name, p.age, p.gender, p.breed, R.org
    FROM pets P LEFT OUTER JOIN rescues R
    ON p.username = R.username
    WHERE pettag = #featured# AND active = 1
    </cfquery>
    <cfif #GetFeatured.RecordCount# EQ 0>
    </cfloop>
    </cfif>
    <cfelse>
    <cfabort>
    <cfreturn GetFeatured>
    </cffunction>
    Wally Kolcz
    Developer / Support

    Try this modified function. The first query will pull all
    active pets from your db. The second QoQ ("getPet") will pull one
    random pet from the first query.
    <cffunction name="GetFeaturedPet" access="public"
    returntype="query">
    <cfquery name="GetFeatured"
    datasource="#Request.MainDSN#">
    SELECT p.pettag, P.name, p.age, p.gender, p.breed, R.org
    FROM pets P LEFT OUTER JOIN rescues R
    ON p.username = R.username
    WHERE active = 1;
    </cfquery>
    <cfset featured =
    RandRange(1,#GetFeatured.RecordCount#)>
    <cfquery name="getPet" dbtype="query">
    SELECT * FROM GetFeatured WHERE pettag = #featured#
    </cfquery>
    <cfreturn getPet>
    </cffunction>

  • Help with stopping a simple text annimation after it completes once

    I am new to flash, i am trying to make a simple text annimation that has a word fly into the document from off the screen and only play once, not repeat itself.
    What is the simpleest way to do this in CS4?

    3. Correction: Any library symbol can be animated when it is done on the timeline.  It's only when you use code to animated that you cannot use graphic symbols because you cannot give them instance names, but you can still animate movieclips and button symbols with code.

  • Once and for all, how does one stop losing music on IPOD TOUCH? WHAT settings do you people use to stop losing music? Does anybody have any help with this? Does any body have any help at all? APPLE offers no help!!!!!!!!!

    I constantly loss my music!!!!!!!!!!!!!  I constantly loss my music!!!!!!!!!!!!!!!! I need help to stop this!!!!!!!!!!!!!!!!!

    First of all, is the music only disappearing from your iPod, or from your iTunes Library as well?
    From your other thread, I gather you swap between Manually Managing and Syncing. This is a bad idea, it will lead to confusion on your part about what should be on the iPod. You'll make a choice that iTunes later overrides - because you've told it to. Choose one method or the other, not both.
    Peresonally, I recommend using the iTunes Sync process. Using Sync will not prevent you from deciding what's on your iPod. You will still have a free and full choice in that. The Sync process will however, make it far easier for you to put everything back onto your iPod in the event that you need to Restore your iPod, or when you replace this iPod with a newer one.
    Back to your issue though. Is the music, missing from your iPod, still in your Library?

  • Can anyone help with issue whereby Music, Podcasts and Audiable Book Apps keep stopping when listing via Headphones following IOS 7.01 Updates on Iphone 4?

    Can anyone help with issue whereby Music, Podcasts and Audiable Book Apps keep stopping when listing via Headphones following IOS 7.06 Updates on Iphone 4?
    I have tried the following all ready:
    Resetting Phone
    Resetting Settings on phone
    Change Headsets to speakers
    Reinstalled Phone
    Updated to IOS 7.1
    No of the above has resolved the issue does anyone have any ideas?

    Can anyone help with issue whereby Music, Podcasts and Audiable Book Apps keep stopping when listing via Headphones following IOS 7.06 Updates on Iphone 4?
    I have tried the following all ready:
    Resetting Phone
    Resetting Settings on phone
    Change Headsets to speakers
    Reinstalled Phone
    Updated to IOS 7.1
    No of the above has resolved the issue does anyone have any ideas?

  • Help with wav file, stop and play buttons

    Hey everyone,
    I'm new to actionscript, and flash for that matter. I created
    a new flash file, and a new layer. On that layer I put 2 buttons,
    btnPlay and btnStop.
    I found some code on this forum, and tried it, but it isn't
    working. The code is below. I get no errors, but when I test the
    movie, it doesn't play any music. I selected this layer, selected
    frame 1, and put this code in the actions window.
    mySound = new Sound();
    btnPlay.onRelease = function () {
    mySound.attachSound("adagio");
    mySound.start(0);
    btnStop.onRelease = function() {
    mySound.stop("adagio");
    I should also note, I have another layer with a movie clip on
    it, and another layer with a picture on it.
    Any help would be appreciated,
    Thanks,
    Jesse

    As another note--I right clicked on the wav file in my
    library and selected linkage and export to first frame as well as
    export for actionscript (and named the linkage "adagio"). Might
    help with a solution.

  • Hi. I have an iPhone 4s. The music doesn't play when I connect it to my car stereo. It used to play previously but stopped playing all of a sudden. My phone is getting charged when I cut it to the USB port. Please help with this. The iOS is 6.1.3.

    Hi. I have an iPhone 4s. The music doesn't play when I connect it to my car stereo. It used to play previously but stopped playing all of a sudden. My phone is getting charged when I cut it to the USB port. Please help with this. The iOS is 6.1.3.

    Hello Priyanks,
    I found an article with steps you can take to troubleshoot issues with an iPhone not connecting to your car stereo:
    iOS: Troubleshooting car stereo connections
    http://support.apple.com/kb/TS3581
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Ipod Nano 6th generation setting issue - hi, when i am listening music and the screen goes to sleep my music stop playing.Please help with settings

    hi, when i am listening music and the screen goes to sleep my music stop playing.Please help with settings

    No problem.   And no worries, several people have made this same mistake!
    Either way enjoy the iPod!
    Brock

  • Need help with Sharepoint foundation web application stuck on "STOPPING" error job-service-instance-GUID Number already exists

    Hi All,
         I cant get to stop SharePoint foundation web app service. Its stuck on status stopping
    I have tried the following:
    reset IIS
    restarted the Timer Service
    When I try to use powershell command to stop I get the following error:
    Can anyone who went through this help PLEASE
    Stop-SPServiceInstance : An object of the type
    Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named
    "job-service-instance-1ff39eb2-12d2-457d-a749-265e350eb1b1" already exists
    under the parent Microsoft.SharePoint.Administration.SPTimerService named
    "SPTimerV4". Rename your object or delete the existing object.
    At line:1 char:127
    + ... pplication"} | Stop-SPServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share...ServiceInstance:
    SPCmdletStopServiceInstance) [Stop-SPServiceInstance], SPDuplicateObjectEx
    ception
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStopServ
    iceInstance

    Hi,
    It seems that the issue is in the timer job definition for executing this operation.
    My suggestion is to start the service again and delete the job definition from the error and again try to stop it.
    This might be helpful:
    http://sharepoint.stackexchange.com/questions/22368/is-there-a-powershell-cmdlet-to-delete-a-timer-job 
    I had a lot of issues in the past when try to stop this instance after the Web apps are provisioned.
    As general rule now If I have multi-server Farm topology that has servers that should not serve Web App requests I turn off the service prior to provisioning any Web Apps in the Farm. 
    BR,
    Ivan

  • Need help with Workflow Issue: One notification sending out non-stop email.

    Hi,
    We've created a custom PO Approval Workflow based on standard PO Approval Workflow and we've had this for a while now. Last week, we encountered an issue where the notification keeps on sending email to the Suppliers and Buyers. We found out that the particular notification_id in the WF_NOTIFICATIONS table keeps getting updated by the minute setting the MAIL_STATUS to INVALID then back to SENT then back to INVALID again and so on. We think that whatever is updating this table is the cause but up until now we haven't found what's updating it. Below are some information of our instance.
    Oracle Applications: 11.5.10.2
    Database: 10.2.0.4 64 bit
    OS: AIX
    Custom Workflow based on revision 115.127.11510.16
    Customizations:
    - Created custom notification XX_EMAIL_PO_PDF_SUPP based on EMAIL_PO_PDF_SUPP.
    - Created custom message XX_EMAIL_PO_PDF based on EMAIL_PO_PDF.
    - Added #WFM_CC to XX_EMAIL_PO_PDF.
    - Created custom attribute XX_PO_WF_EMAIL_PERFORMER and set as Performer to notification XX_EMAIL_PO_PDF_SUPP.
    - Created custom function XX_ADDTL_STARTUP_VAL right after function "Set Workflow Startup Values". This function sets #WFM_CC attribute and XX_PO_WF_EMAIL_PERFORMER attribute.
    Not sure if the customizations have anything to do with the issue since not all POs have this issue. Have anyone experience this? Would really appreciate any help with this.
    Thanks,
    Allen

    Kashif M wrote:
    Just review this thread, may help you
    Workflow Notification Mailer is Spamming the Email Accounts of Users [ID 1293792.1]
    thanksHi,
    This note has solved our issue. Hopefully they will release a fix for this as it is a common thing for us to change the email address of Supplier Site.
    Thanks,
    Allen

  • Be grateful for your help with Photoshop Elements which I have been using for several years.

    Be grateful for your help with Photoshop Elements which I have been using for several years.  Does Elements need to have access to ‘My Pictures’ on Windows as when I remove Photos from ‘My Pictures’, Elements later, when backing up, gives a message that it is unable to ‘reconnect’ to the same picture on elements.  On other occasions when removing a photo from Elements catalogue I also get a similar message when backing up saying ‘unable to reconnect’.  1. Is there a relationship between Elements and My Pictures and is Elements dependant on    the Windows ‘My Pictures’? 2. Why does some photos in Elements in some cases cause them to multiply e.g. double; triple; quadruple; and on occasions even more?  Is there something I need to do to stop this or an easy way I can remove the multiples without spending hours doing it manually one by one?  Am I doing something wrong? My O/S is Windows XP SP2 and windows Vista on my Laptop.  I have been using Elements 5 and have just purchased Photoshop Elements 8.0. (Upgrade) and about to install it. Be grateful for any advice as I do enjoy using the program if only I can resolve this issue.  I am not a PC wiz and mainly use Elements to catalogue photos from which I compile collections and from them slide shows with music.  Any advice appreciated Sonny.t PS Have tried to post this previously but without success so hoping to see message appear and a +response

    The organizer doesn't care where you send your photos when you download them via the downloader or where they happen to be when you first bring them in if you use the Get Photos command, but once your pics are in the Organizer, you *must* move them from within organizer or it can't find them. You don't have to use My Pictures at all if you don't want to, but regardless of the folder where you put your photos, if you want them someplace else, you use organizer to do it.

  • Need help with a currently "in-use" form we want to switch to Adobes hosting service

    Hi, I am in desperate need of help with some issues concerning several forms which we currently use a paid third party (not Adobe) to host and "re-distribute through email"...Somehow I got charged $14.95 for YOUR service, (signed up for a trial, but never used it)..and now I am paying for a year of use of the similar service which Adobe is in control of.  I might want to port my form distribution through Adobe in the hopes of reducing the errors, problems and hassles my customers are experiencing when some of them push our  "submit button". (and I guess I am familiar with these somewhat from reading what IS available in here, and I also know that, Adobe is working to alleviate some of these " submit"  issues, so let's don't start by going backwards, here) I need solutions now for my issues or I can leave it as is, If Adobe's solution will be no better for my end users...
    We used FormsCentral to code these forms and it works for the most part (if the end-user can co-operate, and thats iffy, sometimes), but I need help with how to make it go through your servers (and not the third party folks we use now), Not being cruel or racist here, but your over the phone "support techs" are about horrible & I cannot understand them or work with any of them, so I would definitely need someone who speaks English and can understand the nuances of programming these forms, to please contact me back. (Sorry, but both those attributes will be required to be able to help me, so, no "newbie-interns" or first week trainees are gonna cut it).... If you have anyone who fits the bill on those items and would be willing to help us, please contact me back at your earliest convenience. If we have to communicate here, I will do that & I can submit whatever we need to & to whoever we need to.
    I need to get this right and working for the majority of my users and on any platform and OS.
    You may certainly call me to talk about this, and I have given my number numerous times to your (expletive deleted) time wasting - recording message thingy. So, If it's not available look it up under [email protected]
    (and you will probably get right to me, unlike my and I'm sure most other folks',  "Adobe phone-in experiences")
    Thank You,
    Michael Corman
    VinylCouture
    Phenix City, Alabama  36869

    Well, thanks for writing back...just so you know...I started using Adobe products in 1987, ...yeah...back then...like Illustrator 1 & 9" B&W Macs ...John Warnock's Helvetica's....stuff like that...8.5 x 11 LaserWriters...all that good stuff...I still have some of it working on a mac...much of it was stuff I bought. some stuff I did not...I'm not a big fan of this "cloud" thing Adobe has foisted upon the creatives of the world...which I'm sure you can tell...but the functionality and usefulness of your software can not be disputed, so feel free to do whatever we will continue to pay for, ...I am very impressed with CC PS on the 64 bit PC and perhaps I will end up paying you the stipend that you demand for the other services.
    So  I guess that brings us to our problem.. a few years back and at the height of the recession and near bankruptcy myself,  I was damn lucky and hit on something and began a small arts and crafts supply service to sell my products online to a very "niche market" ...I had a unique product and still sell that product (plus others) online...My website is www.vinylcouture.com...Strange? Yes...but there is a market it seems, for everything now, and this is the market I service...Catagorically, these are 99%+ women that use these "adhesive, sticky backed vinyl products"  to make different "craft items" that are just way too various and numerous to go into... generally older women, women who are computer illiterate for the most part...and all this is irrelevant to my problem, but I want you to have every bit of background on this and especially the demographic we are dealing with, so we can get right to the meat of the problem.
    OK...So about two years ago, I decided to offer a "plain sheet" product of a plain colored "stick back" vinyl... it is available in multiple quantities of packs ( like 5 pieces, 10 pieces, 15 pieces, in a packi  & so on)...and if you are still on my site.. go to any  "GO RIGHT TO OUR ORDER PAGE"  button, scroll down a little...and then to the "PLAIN VINYL" section...you will see the Weebly website order process.) You can back out from here, I think,..but, anyway this product is available in 63 colors + or - a few. So then the problem is,  how do they select their individual colors within that (whatever) pack?... .
    So my initial idea was to enable a "selection form" for these "colors" that would be transmitted to me via email as 'part" of the "order process".. We tried getting our customers to submit a  " a list" ( something my competitiors still do, lol, poor bastards)......but that..is just unbelievable..I can't even begin to tell you what a freakin' nightmare that was...these people cannot even count to 10, much less any higher... figuring out what colors to list and send me... well, lets just say, it wasn't working......I had to figure out a better way...Something had to be done.
    So after thinking this all out,  and yeah...due to my total ignorance, i figured that we could make a form with Live Cycle Designer (Now Forms Central)...(back then something that was bundled with Adobe Acrobat Pro), I believe, and thats what this thing was authored in... and it would be all good...LOL!
    Well not so simple...as you well know, Adobe Acrobat would NOT LET YOU EMAIL anything from itself.....it just wouldn't work (and I know why, and all that hooey), but not being one to take NO for answer,.I started looking for a way to make my little gizmo work.. So I found this company that said they can "hijack" (re-direct actually) the request to email, bypass the wah-wah, and re-transmit it to the proper parties.....for less than $100 a year,  I think...its called http://pdf-fillableforms.com/.
    A nice gentleman named Joseph Silva helped us program the thing to go to his servers and back out. Please dont hassle them...I need them...for now..it basically does work...try it...you should get back a copy of the form that you filled out...good luck however,  if you're on MAC OSX or similar...
    I have included a copy of both of our forms (and feel free to fill it out and play with it)...just put test somewhere on it...(and you must include YOUR email or it will balk)..they are supposed to be mostly identical, except one seems to be twice as large....generating a 1.7 meg file upon submission, while the other one only generates a 600K file or so...thats another issue for another day or maybe you can advise on that also...
    OK so far so good......In our shop, once Grandma buys a 10 pack (or whatever), Only then she gets to the link on her receipt page ro the relevant "selection form" ,(this prevents "Filling and Sending"  with "no order" and "no payment", another early problem we had)... which they can click on and it will usually download and open up on their device if all goes well...Then our little form is supposed to be fillable and is supposed to ADD UP all the quantities, so grandma knows how many she is buying and so forth right on the fly,  and even while she changes her mind..., and IT'S LARGE so grandma can see it, and then it TOTALS it all up for them, ( cause remember, they can NOT add)..,  except there is a programming bug (mouse-click should be a mouse-up probably or something..) which makes you click in the blank spaces to get to a correct TOTAL...about 70-80% of our customers can enable all these features and usually the process completes without problems for them especially on PC's running Windows OS and Acrobat Reader X or XI...at least for most... Unfortunately it is still not the "seamless process" I would like or had envisioned for the other folks out there that do have trouble using our form....  Many folks report to us the following issues that we know of.  First of all it takes too much time to load up...We know its HUGE...is there anyway that you can see, to streamline this thing? I would love for it to be more compact...this really helps on the phones and pads as I'm sure you well know.
    Some just tell us,"it WON'T work"....I believe this is because they are totally out of it and dont even have Adobe Reader on their machine, & don't know how to get it ( yes, we provide the links).....or it's some ancient version....no one can stop this one...
    It almost always generates some kind ( at least one time)  of "error message" which we do warn them about..., telling one,  basically that "Acrobat doesnt even like this happening at all, and it could be detrimental to ones computer files", blah-blah...(this freaks grandma out really bad)...& usually they end up not even trying to send it...  and then I get calls that even you wouldn't believe...& If they DO nut up and push the Red "Submit Form" button, it will usually send the thing to us (and also back to them at the "required email address" they furnished on the form, thats what the folks at the "fillable forms place" do) so, if it's performing it's functions, why it is having to complain?. What are we doing wrong?....and how can I fix it?...Will re-compiling it or saving it as a newer version of "FormsCentral" correct any of these problems ?
    Ok, so that should keep you busy for a minute and we can start out with those problems...but the next thing is, how can I take advantage of YOUR re-direct & hosting services?, And will it get rid of the error messages, and the slowness, and the iOS incompatibilities ? (amazingly,  the last iOS Reader version worked almost OK.. but the newest version doesnt seem to work with my form on my iphone4)  If it will enable any version of the iOS to send my form correctly and more transparently, then it might be worth the money...$14.95 a MONTH you say. hmmmmm...Better be good.
    Another problem is, that I really don't need 5000 forms a month submitted. I think its like 70-100 or less....Got any plans for that?  Maybe I'm just not BIG ENOUGH to use Adobe's services, however in this case, I really don't care whose I do use as long as the product works most correctly for my customers as well as us. Like I said, If I'm doing the best I can, I won't change anything, and still use the other third party, If Adobe has a better solution, then i'm all for that as well. In the meantime, Thanks for any help you can provide on this...
    Michael Corman
    VinylCouture.com
    (706) 326-7911

  • Help with encapsulation and a specific case of design

    Hello all. I have been playing with Java (my first real language and first OOP language) for a couple months now. Right now I am trying to write my first real application, but I want to design it right and I am smashing my head against the wall with my data structure, specifically with encapsulation.
    I go into detail about my app below, but it gets long so for those who don't want to read that far, let me just put these two questions up front:
    1) How do principles of encapsulation change when members are complex objects rather than primitives? If the member objects themselves have only primitive members and show good encapsulation, does it make sense to pass a reference to them? Or does good encapsulation demand that I deep-clone all the way to the bottom of my data structure and pass only cloned objects through my top level accessors? Does the analysis change when the structure gets three or four levels deep? Don't DOM structures built of walkable nodes violate basic principles of encapsulation?
    2) "Encapsulation" is sometimes used to mean no public members, othertimes to mean no public members AND no setter methods. The reasons for the first are obvious, but why go to the extreme of the latter? More importantly HOW do you go to the extreme of the latter? Would an "updatePrices" method that updates encapsulated member prices based on calculations, taking a single argument of say the time of year be considered a "setter" method that violates the stricter vision of encapsulation?
    Even help with just those two questions would be great. For the masochistic, on to my app... The present code is at
    http://www.immortalcoil.org/drake/Code.zip
    The most basic form of the application is statistics driven flash card software for Japanese Kanji (Chinese characters). For those who do not know, these are ideographic characters that represent concepts rather than sounds. There are a few thousand. In abstract terms, my data structure needs to represent the following.
    -  There are a bunch of kanji.
       Each kanji is defined by:
       -  a single character (the kanji itself); and
       -  multiple readings which fall into two categories of "on" and "kun".
          Each reading is defined by:
          -  A string of hiragana or katakana (Japanese phoenetic characters); and
          -  Statistics that I keep to represent knowledge of that reading/kanji pair.Ideally the structure should be extensible. Later I might want to add statistics associated with the character itself rather than individual readings, for example. Right now I am thinking of building a data structure like so:
    -  A Vector that holds:
       -  custom KanjiEntry objects that each hold
          -  a kanji in a primitive char value; and
          -  two (on, kun) arrays or Vectors of custom Reading objects that hold
             -  the reading in a String; and
             -  statistics of some sort, probably in primitive valuesFirst of all, is this approach sensible in the rough outlines?
    Now, I need to be able to do the obvious things... save to and load from file, generate tables and views, and edit values. The quesiton of editting values raises the questions I identified above as (1) and (2). Say I want to pull up a reading, quiz the user on it, and update its statistics based on whether the user got it right or wrong. I could do all this through the KanjiEntry object with a setter method that takes a zillion arguments like:
    theKanjiEntry.setStatistic(
    "on",   // which set of readings
    2,      // which element in that array or Vector
    "score", // which statistic
    98);      // the valueOr I could pass a clone of the Reading object out, work with that, then tell the KanjiEntry to replace the original with my modified clone.
    My instincts balk at the first approach, and a little at the second. Doesn't it make more sense to work with a reference to the Reading object? Or is that bad encapsulation?
    A second point. When running flash cards, I do not care about the subtlties of the structure, like whether a reading is an on or a kun (although this is important when browsing a table representing the entire structure). All I really care about is kanij/reading pairings. And I should be able to quickly poll the Reading objects to see which ones need quizzing the most, based on their statistics. I was thinking of making a nice neat Hashtable with the keys being the kanji characters in Strings (not the KanjiEntry objects) and the values being the Reading objects. The result would be two indeces to the Reading objects... the basic structure and my ad hoc hashtable for runninq quizzes. Then I would just make sure that they stay in sync in terms of the higher level structure (like if a whole new KanjiEntry got added). Is this bad form, or even downright dangerous?
    Apart from good form, the other consideration bouncing around in my head is that if I get all crazy with deep cloning and filling the bottom level guys with instance methods then this puppy is going to get bloated or lag when there are several thousand kanji in memory at once.
    Any help would be appreciated.
    Drake

    Usually by better design. Move methods that use the
    getters inside the class that actually has the data....
    As a basic rule of thumb:
    The one who has the data is the one using it. If
    another class needs that data, wonder what for and
    consider moving that operation away from that class.
    Or move from pull to push: instead of A getting
    something from B, have B give it to A as a method
    call argument.Thanks for the response. I think I see what you are saying.. in my case it is something like this.
    Solution 1 (disfavored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              char theKanji = currentKanjiEntry.getKanji();
              String theReading = currentKanjiEntry.getReading();
              // build and show a flashcard based on theKanji and theReading
              // use a setter to change currentKanji's data based on whether the user answers correctly;
    }Solution 2 (favored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              currentKanji.buildAndShowFlashcard(); // method includes updating stats
    }I can definitely see the advantages to this, but two potential reasons to think hard about it occur to me right away. First, if this process is carried out to a sufficient extreme the objects that hold my data end up sucking in all the functionality of my program and my objects stop resembling natural concepts.
    In your shopping example, say you want to generate price tags for the items. The price tags can be generated with ONLY the raw price, because we do not want the VAT on them. They are simple GIF graphics that have the price printed on a an irregular polygon. Should all that graphics generating code really go into the item objects, or should we just get the price out of the object with a simple getter method and then make the tags?
    My second concern is that the more instance methods I put into my bottom level data objects the bigger they get, and I intend to have thousands of these things in memory. Is there a balance to strike at some point?
    It's not really a setter. Outsiders are not setting
    the items price - it's rather updating its own price
    given an argument. This is exactly how it should be,
    see my above point. A breach of encapsulation would
    be: another object gets the item price, re-calculates
    it using a date it knows, and sets the price again.
    You can see yourself that pushing the date into the
    item's method is much beter than breaching
    encapsulation and getting and setting the price.So the point is not "don't allow access to the members" (which after all you are still doing, albeit less directly) so much as "make sure that any functionality implicated in working with the members is handled within the object," right? Take your shopping example. Say we live in a country where there is no VAT and the app will never be used internationally. Then we would resort to a simple setter/getter scheme, right? Or is the answer that if the object really is pure data are almost so, then it should be turned into a standard java.util collection instead of a custom class?
    Thanks for the help.
    Drake

  • Help with getting a better understanding on how APEX submits its pages

    Hi,
    I have implemented jquery with my app and have just applied the jquery UI plugins.
    I have the jquery UI dialog function working which gives the users some options. Now as an example, I have a cancel and a continue button. If the user clicks cancel it simply stops the page from submitting. Which works perfectly however, I cannot get the continue button to carry on with the request.
    I gather that I will need to determine what the href was of the link/button that was clicked before the dialog box appears.
    I know Apex uses a javascript function call doSumit() which simply submits the page but what does it use for other href like links to other pages?

    The problem is that you're taking a camcorder format that Premiere Elements is able to work with and converting it to a format that it can NOT work with.
    That Canon camcorder produces AVCHD video. You should shoot any video you want to edit in Premiere Elements only in MXP or FXP mode. Then, when you're ready to edit the video in Premiere Elements, you should set up a project for AVCHD 1920x1080 stereo. (Unless you're shooting in 5.1 audio. This cam shoots in a number of formats.)
    DO NOT CONVERT YOUR VIDEO BEFORE YOU PUT IT IN PREMIERE ELEMENTS.
    You can then use these specs to output high-quality video for YouTube.
    http://forums.adobe.com/thread/623549?tstart=0
    If you need some basic help with the program, be sure to check out my free 8-part Basic Training tutorial series at Premiere Elements support site Muvipix.com.
    http://forums.adobe.com/thread/537685?tstart=0

Maybe you are looking for

  • So syncing new events on iCal is not automatic?

    I have 2 computers and an iPhone and it is very important that I keep my calendars and event alarms in sync but this has been a problem since "upgrading" to the new Calendar beta. Now, when I add an event on, say, my home iMac (running Snow Leopard)

  • Kernel panic at start up

    Tiger freezed while usage, I shut it down and tried to reboot Tiger (10.4.3), but now kernel panic appears every time I start my mac with "... ... hanging here" message log. I already tried to repair permissions with disk utility in tier installation

  • Turn off "faces" in LightRoom 4.2?

    I have hundreds if not thousands of "faces" that have been culled from my library and I would like to know how to turn this function off in Lightroom 4.1? I have looked through the prefs and the menus but cannot see anything referring to "faces" Than

  • MMC cannot open the file msisa.msc

    Hi, I've been dealing with this problema for a few hours and been searching all over to find no solution to it. I have installed a TMG 2010 SP2 server on a Windows Server 2008 R2 SP1 Server. The installation goes OK, I'm installing first the EMS serv

  • Parsing the xml data

    Hi, i have the mehtods in proxy class. those methods are return the data as string. and all the data is in an XML format. now i want to parse that data to normal doc and convert into string form. give me the solution. Thanks