Poker game experiencing lag problems

I've recently written a semi-functional Poker game however I'm experiencing problems with the game slowing down drastically as game play continues. I only have some basic high school programming knowledge so please forgive me for my extremely poor coding practice. Included are are the source files and jar. Any help would be appreciated. Thanks

Ducky24 wrote:
Upon using the Net Beans profiler I am finding myself quite shocked. The results show that invoke my formatJButton some 181000 times however I have no idea why it is invoked such.You have your swingComponent() method being called from inside of your paintComponent() method, and that seems like a bad idea to me. Every time your screen redraws, it will call this method, and it seems to me that it should be the other way around -- Your swingComponent should be involved with changing things and then call revalidate() and repaint() to relayout and redraw things.
Again, I can't force myself to look at all of your code, but I wonder if you should be using a CardLayout here to swap JPanels rather than removing and repositioning and such.

Similar Messages

  • Flash Animations and Movies are lagging after having played a flash game which was graphics intense heavy and frequently refreshed which caused lags, how can I fix this lagging problem for Flash?

    On June 30th, I was playing a game called Lil Einstein's Manhattan project over at Newgrounds.com and the game although fine at first, later on in the advanced levels of the game, started to cause my browser to lag intensely and heavily. Now, when I try and watch other flash movies and animations, the flash doesn't run as smoothly, there are skips in the flash animations and movies, and it slows down.
    I tried scan disks, I tried defragmenting my computer, I tried uninstalling and re-installing Firefox.. Nothing worked to restore the Flash.
    But when I view Flash movies and animations on Internet Explorer, they run fine... but not anymore on Firefox.
    Other Firefox users who have played this game also reported problems as well..
    How can I fix my Firefox Browser and return the Flash running to normal?
    == This happened ==
    Not sure how often
    == June 30th, 2010

    If you have already scanned PC with an updated Anti-Virus and still the issue exists then I would suggest some troubleshooting techniques to resolve this problem:
    Update browser
    Remove unwanted Add-ons
    Remove unwanted Tool-bars
    Repair Registry
    Repair ActiveX objects and shared DLLs
    In case of facebook and Zynga I would suggest to Check for Problems with your Internet Connection.Try to Update Java and Reduce the Number of Running Internet Applications.
    Sometimes Multimedia content lag due to Hardware Acceleration, so disabling Hardware Acceleration should fix your problem.
    Open Flash Video in browser
    Right click on Video Player | Settings
    Open Display Panel
    Uncheck Enable Hardware Acceleration
    If issue still exists then you can find some more techniques described in detail here:
    http://www.shockwaveflashcrash.com/Easiest-fix-for-shockwave-flash-plug-in-Crash.html

  • Lagging problem when connected to a Samsung Central Station 23"

    Hi,
    I bought myself a Macbook Air(Summer, 2011 Edition) about 3 months ago roughly,
    and I also bought myself a Samsung Central Station 23" which works just as a thunderbolt or cinema display but much cheaper and much elegant.
    It also sends audio signal as well as usb datas when connected to a pc or a mac.
    Before buying this monitor, I searched for any history or experience regarding performance problem when hooked upto an external monitor the other users had,
    and while some people say there are no such problems with new intel i core series which includes much advanced graphic core and much faster processor,
    many people said they have experienced performance problems to some dregree as well.
    Now that I seem to have this huge problem of lagging with my MBA when connected to Samsung Central Station,
    I still have no idea why it is happening, nor how to fix the problem.
    I use my Macbook Air connected to a Samsung Central Station 23" and it runs 1080P Full HD resoultion, which isn't that big deal to incur performance decline.
    I shut my MBA screen when I use the external monitor, so there isn't much thing to interfere with the performance.
    I don't know about other people who use an external monitor, but my central station monitor works on Full HD resolution only when i close my MBA screen or connect it as a dual screen. If the screen is left open, it runs with the same resolution as the macbook air.
    when I start sensing decline in frame I always had my MBA open to lower the resolution which seemed to work fine again.
    But these days,even when it's disconnected from the monitor it seems to have problem and the only way to bring it to the normal condition is to restart it.
    when connected to the monitor It's even hard to open few tabs on Safari and play a web flash game.
    It lags so hard I cannot even turn to other screen on mission control or swith to other browser tab without making it delay for a second.
    I checked CPU and RAM resources when it started lagging, but almost 90% of the CPU resources was idle and more than 500MB of RAM was free.
    After restarting the computer CPU remained the same, but more than 2G of RAM was now free.
    Im guessing it has something to do with GPU performance but not sure how to fix the problem.
    Do you think it's my Macbook Air's hardware problem or is it the monitor? or something else?

    I have the same issue. Were you able to find a resolution for this issue?

  • Hello I am experiencing some problems for my iMessage and FaceTime. I did the steps the Apple provided online and I still can't get it to work. My updates are up to date. Everything is working fine it's just that the Apple iMessage won't except anyth

    hello I'm experiencing some problems with my iMessage and face time. I did with Apple provided me online. I did the steps. Nothing will work, it keeps saying activation turn on Wi-Fi when my Wi-Fi is turned on. As soon as I got this on Christmas. iMessage and FaceTime have not been working. My Apple and ID password are correct. Everything else is working fine. My iOS updates are up to date, everything is fine except FaceTime and iMessage

    Did you try everything here?
    iOS: Troubleshooting Messages
    Using FaceTime and iMessage behind a firewall
    iOS: Troubleshooting FaceTime and iMessage activation
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    In the future saying your tried the Apple on-line articles does provide us with information as to which ones you found and tried

  • Horrible video skip / lag problem - once per second in all apps!

     I built a new system last month (my first AMD) and I am having a really aggravating problem. In all games and all video playback I get an annoying skip once per second, every second. It affects sound during gameplay but not during movie or mp3 playback. It even happens with the visualization mode in Windows Media Player.
    My system is as follows: MSI K8N Neo4-F, A64 3200+ venice core, MSI 6800GT 256MB PCI-E, two sticks of Corsair valueselect DDR400 512MB each, 500 watt PS, 160GB 7200 SATA HDD. Most recent NVIDIA drivers for everything. WinXP Pro with SP2 and all updates, DX9C. Nothing overclocked, all settings standard.
    I have tried the following solutions:
    1) BIOS upgrades, started with 1.4, installed 1.5, MSI tech support gave me 1.6b2 and I installed that. No luck with any of them.
    2) Memory, installed per MSI directions, but I've tried all legal combinations, including one stick at a time. No change.
    3) full format and reinstall of WinXP. No luck.
    4) Switching between WinXP IDE drivers and NVidia drivers, with and without RAID drivers, No luck.
    5) Removal of 6800GT PCI-E card and replacing with Ancient 8MB PCI Permedia2 video card. Problem still persists.
    6) Disable onboard sound and LAN. No luck.
    7) Running Fedora core 4 on second partition. Installed Nvidia video drivers, tried some games. THIS WORKS! No hitch, no skip, no nothing. Framerates are noticably slower but very stable. In WinXP I saw framerates bounce all over the place, from 230 FPS down to about 70 with one game. That same game on Linux ran smoothly at about 166 FPS with only occasional slight drops. The big FPS drops in Windows usually came right after one of the skips but didn't occure after every skip.
    Right now I'm stumped. Linux uses totally different drivers for sound, LAN and SATA support. Some of those drivers don't fully use the Nforce4 chipset's features, maybe that's part of the difference.

    Thanks TireSmoke:
    I had found that sticky, but I took your advice and went thorugh it in detail last night.  Lots of great info, fixes tweaks and tools, sadly none of them fixed my problem.  The lag problem most people are reporting is not really like the wierd problem I am having.  I have tried the recoommended fixes with ablsolutely no change in my system's behavior.
    I am beginning to suspect a faulty motherboard component.
    Russ_XP:
    I think you are correct about fast writes.  I googled the heck out of that last night and couldn't find any reference to enabling or disabling fast writes on PCI-E.
    The drive is SATA-1.  The Neo4-F is not SATA-2 enabled (there is a hack for it though).  From memory I think it's a Western Digital WD1600-something, 7200 RPM dirve.  I've tried it on both SATA buses and tried disabling the unused bus in BIOS.
    I'm pretty sure I can dig up an old PATA drive somewhere and give that a try.
    Gpalmer:
    True enough, and I don't have these problems under Fedora.  Sadly this is a cross-platform game development box, I need both XP and Fedora working.
    Black_God:
    Nope, this is a clean install.  Although I wonder, could any of the built in XP update and security tools be causing this?  I have disabled Windows firewall and virus protection monitoring.

  • Experiencing lags when using AirTunes

    Hey all
    I have a Lenovo Notebook and a Fujtsu computer, both running with Windows XP. I am running a WiFi-network with a TP-Link Router connected to a Motorola Modem (some crap my ISP gave me). There is an AirPort Express connected to this WiFi in my living room (approx. 12meters away from my router), to which my TV is plugged with an audio cable.
    So, with this installation I am streaming music from my notebook (connected via WiFi) to the AirPort with iTunes (AirTunes). From time to time, I am experiencing lags or delays: for 1 or 2 minutes, the music interrupts every 5 or 10 seconds and stops for a couple of seconds. This is extremely annoying.
    I have found an archived topic (http://discussions.apple.com/thread.jspa?messageID=9587938) in which it was told that it's an issue appearing only since iTunes 8 and that a future update might help. Well, today theres iTunes 9 running on my PCs and the problem seems to exist, still.
    Does anybody have a solution for that or is it still caused by the software?
    I have been thinking of monitoring the network usage - maybe there is some sort of peak or overload during the lags.
    And yes, as soon as I have finished my studies I will get me an Apple computer and an AirPort extreme. But I need to have a salary for that
    best regards from Switzerland
    Ivo

    I was just listening to music with my airtunes speaker and after approx 15 minutes it started to have those interruptions again. So I decided to look for a monitoring solution (after a tool offered by microsoft didn't satisfy my needs). I now found Network Activity Diagram - which is great. I can now monitor the traffic to the AirPort graphically. I will do that the next time I'll be listening to music and tell you about my observations.

  • Why I can not buy the poker game money..

    Why I can not buy the poker game money...

    More information would be useful.
    Not available in your country's App Store.
    No credit card information or invalid credit card information or some other problem with your card
    Some other reason

  • Lagging Problems

    I've been experiencing these lagging problems when I'm recording to my laptop. It freezes then starts up again and repeats itself. So the results are the same when I play it back.  I’ve been recording from a canon XL2 through a 4pin to 4pin firewire.  Below are my specs to my laptop which I believe should be way more then sufficient to run this program.  Not to mention this is a brand spanking new laptop purchased like a week ago.  The only program that I loaded on this is Premiere Pro CS4 and Onlocation CS4.  And have only used onlocation on it so far. 
    HP HDX18t Premium Series
    Genuine Windows Vista Home Premium with Service Pack 1 (64-bit)
    Intel(R) Core(TM)2 Duo Processor T9900 (3.06 GHz, 6 MB L2 Cache, 1066MHz FSB)
    6GB DDR3 System Memory (2 Dimm) - For 1GB Nvidia GeForce GT 130M
    500GB 7200RPM SATA Hard Drive from
    1GB Nvidia GeForce GT 130M - For DDR3 Memory

    Your laptop specs are fine. Check your cables and connectors and make sure you've run Adobe Updates.
    JP

  • Having lag problems on the XBOX 360 - connecting to WRT160N wireless router.

    Having lag problems when playing on the XBOX 360(wireless connection) after we installed our new WRT160N wireless router. Looking for ideals on how to fix this performance problem?
    Cable Conpany: Comcast
    Modem Model: zoom
    Wireless Router Model: Linksys WRT160N

    A few more thoughts:
    - Changing the channel settings does NOT achieve anything. I manually tried every setting with no success.
    - Changing the encryption settings did not help. I tried "open", WEP and WPA and none of them work.
    - Even when this problem shows up, the xbox360 wireless adapter successfully finds and associates with the wireless network. It even manages to read data from the network - it just does it VERY SLOWLY and disconnects often. This causes extreme lag in xbox live games, which shows up as unpredictable play and disconnects from games.
    - The fact that G-only mode works fine pretty much proves that this problem can be fixed with a firmware change. The xbox360 wireless adapter and the WRT160N can definately talk to each other using 802.11g successfully so there must be some issue with negotiating the correct version of 802.11x.
    - I've considered trying a third-party firmware, such as DD-WRT to see if this fixes the problem. Has anyone tried this and if so what happened?
    If you are seeing this problem, please reply to this thread and say so. If enough people respond perhaps Linksys will fix the problem. Even if you're not registered with this board, registering is very quick and easy so don't let that deter you.
    Thanks

  • Experiencing lag while gaming online with WRT310N

    I have recently setup my desktop computer wirelessly with the WUSB600N adapter and the WRT310N router. My signal is great and I'm connected at 270 Mbps most of the time. I run Windows XP and have the Windows firewall disabled. I tried to play Guild Wars online last night and ran into problems. Every 15-30 seconds, the game would lag very badly for about 2-3 seconds. On two different occasions, it disconnected from the game entirely. I'm hoping there are simply some settings I can change to fix this. Any ideas?
    Solved!
    Go to Solution.

    Problem solved. Thought I'd post my solution in case anyone else runs into the same problem. After extensive searching on this site and others, I developed a list of things to try. The first one I tried was port forwarding but that didn't help. The second thing I tried was to turn off the Windows WCZ wireless controller. I'm now using the Linksys software to connect and the lag issues have been eliminated. You might wonder why I wasn't using their software to begin with. I had lost wireless connection entirely a couple weeks ago and had to call support. They walked me through changing some settings on my router and setting up the WCZ to control my wireless to get me hooked back up. Apparently the fix was accomplished by changing the router settings alone and had nothing to do with switching to the WCZ. Hope this helps someone.

  • I am making code to try to make a game and my problem is that my code......

    I am making code to try to make a game and my problem is that my code
    will not let it change the hit everytime so im getting the first guy to hit 1 then next hits 8 and so on and always repeats.
    Another problem is that I would like it to attack with out me telling it how much times to attack. I am using Object oriented programming.
    Here is the code for my objects:
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class rockCrab {
         //Wounding formula
         double sL = 70;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 50;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         rockCrab() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              double done = rint(fH - fA);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("Rockcrab hit" +done);
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class self {
         //Wounding formula
         double sL = 1;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 1;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         self() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("You hit" +done);
    }Here is the main code that writes what the objects do:
    class fight {
         public static void main(String[] args) {
              self instance1 = new self();
              rockCrab instance2 = new rockCrab();
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
    }when the code is run it says something like this:
    you hit 1
    RockCrabs health is 9
    RockCrab hit 7
    your health is 38
    you hit 1
    RockCrabs health is 8
    RockCrab hit 7
    your health is 31
    you hit 1
    RockCrabs health is 7
    RockCrab hit 7
    your health is 24
    you hit 1
    RockCrabs health is 6
    RockCrab hit 7
    your health is 17
    my point is whatever some one hits it always repeats that
    my expected output would have to be something like
    you hit 1
    RockCrabs health is 9
    RockCrab hit 9
    your health is 37
    you hit 3
    RockCrabs health is 6
    RockCrab hit 4
    your health is 33
    you hit 2
    RockCrabs health is 4
    RockCrab hit 7
    your health is 26
    you hit 3
    RockCrabs health is 1
    RockCrab hit 6
    your health is 20
    Edited by: rade134 on Jun 4, 2009 10:58 AM

    [_Crosspost_|http://forums.sun.com/thread.jspa?threadID=5390217] I'm locking.

  • I have set up my new iPad 2 on my windowsn 7 computer, but experienced syncing problems from the start. It seems that it doesn't recognize the iPad, although it appears in iTunes.It only gives set up as new or restore options.

    I have set up my new iPad 2 on my computer (Windows 7), but experienced syncing problems from the start.  It seems that although my iPad is regognized in iTunes as it appears there, it only gives met the options to set up as a new iPad or restore from the backup, no synching options. What do I do?

    File>Devices>Transfer Purchases will transfer the itunes purchases to your ocmputer.
    You should sync your ipod to your computer regularly.

  • IMac to HDTV - experiencing a problem

    I have just connected my iMac to a 1080p HD TV via the Apple 'mini DVI to VGA' adapter and 5 metre VGA extension cable. In some ways the picture is surprisingly good (it is higher definition than SD or DVD) but there is visible ghosting on the TV picture. I thought ghosting was due to a weak signal or interference and only affected the old style analogue TV signal.
    Does anybody know why I might be experiencing this problem? I don't know too much about this sort of thing but could the length of the VGA extension cable (5 metre) be a cause? Could it be interference from the other cables and media devices plugged into the TV? Or should I be using the more convoluted miniDVI > DVI and then a DVI > HDMI?
    Any help much appreciated.

    Balibari, Welcome to the discussion area!
    If you have an iMac G5 it has a mini-VGA output not mini-DVI.
    If you are using a mini-DVI converter, you have an Intel-based iMac not an iMac G5.

  • I am experiencing two problems with iTunes on my iPhone 5s.

    I am experiencing two problems with iTunes on my iPhone 5s.
    Issue 1: iTunes Match
    Some song playback is merging songs. I select “Song A” to be played and midway through the song it begins playing “Song B” however when I look at my phone it indicates that “Song A” is still playing even though the actual music is not “Song A”. I searched the Apple Support Community as well as the internet and this seems to be an ongoing issue back to 2012 that has not been resolved. All of the “fixes” that are provided do not work. For example, update/sync iTunes Match, delete the song from your iPhone and re-download from the cloud or delete the song from your iTunes including the iCloud and re-download. None of which worked. I even tried to complete erase the song from my computer hard drive and restarted my computer and then re-downloaded the song and it was still not working.
    Issue 2: iTunes Preview Track
    I am unable to preview any music on iTunes through the iTunes app on my phone. I have signed out of my user ID and restarted my phone and then logged back in and it did not fix the problem. My iTunes Match and iTunes radio are allowing me to play music. My software is up-to-date.

    Same problem here, Im running the latest version of iOS 7 on my iphone 5S (ipod 5S) bricked lol. It was working fine and then a mates baby grabbed my phone and dropped it (not very high) then it went off so i turned it on and BAM i got the grey backround with the apple logo on it so, I waited, Then it went to BSOD and got stuck in that loop, I then done a manual reset I was able to turn it off thats all. I tried restore in recovery mode with the latest itunes it come up with Unknown Error, error code (14) (something to do with unreconizable USB) tried many diffrent USB ports but sadly nothing, I then tried DFU mode with itunes still not working. Im really stuck on this one I need some assitance PLEASE! HELP!
    No aftermarket apps on iphone 5s
    Latest iOS 7 on iphone 5s
    Latest itunes 11.1.5.5
    Running Windows 7 (good comp)

  • Have been using Lightroom on my Apple computer for years. Now, ever since upgrading to Apple's  Yosemite operating system I get an error message (150:30) every time I try to open a lightroom file. Has anyone else experienced this problem?  Also how do I s

    Have been using Lightroom on my Apple computer for years. Now, ever since upgrading to Apple's  Yosemite operating system I get an error message (150:30) every time I try to open a lightroom file. Has anyone else experienced this problem?  Also how do I subscribe to Adobe's Premium Support? Every time I've tried (through contact support) I just get taken on an unending loop.

    I think we need a lot more information.
    Exactly what does the message say?
    Exactly what files are you trying to open?
    Exactly how are you trying to open them (what menu command or button or mouse action or keyboard shortcut)?
    And lastly, what version of Lightroom are you using?

Maybe you are looking for

  • How can I sort audobooks by author?

    I just bought a new ipod touch with 64gb. i'm used to sort my audio books in itunes 'reading' or 'radio play'. now i must found out that ipod touch show all my audio books just after the title. is there a way to change to different view like 'by auth

  • Search drivers for Creative webcam N10225, PD1110 on Windows Vista 64

    I'm searching drivers to run my webcam on a Pc with windows vista 64 Creative webcam N10225, PD1110 Thank You

  • SQL Server 7.0

    I recieved this error on a production server yesterday Unexpected Database Error weblogic.jdbcbase.mssqlserver4.tdsexception: i/o exception while talking to the server., java.net.socketexception: connection reset by peer: JVM_recv in socket input str

  • In the report getiing two lines per each service order

    Hi Experts, when I drill down callouts on back reporting level by Component code, Reason code, and action code. I see two lines per service order. I have two records in MP for the same service order. Is there any possibility that I get only one recor

  • Exporting tables to flat files

    Hi, Can I export tables to flat files(csv) using pl/sql. I mean suppose I have 2 tables 'student' and 'subject' and I want to create two flat files student.csv and subject.csv Please let me know, if I can do it using pl/sql for both the tables in one