Huge problem with implements

Okay so about an hour ago this worked, but now it isn't can anyone tell me what I'm doing wrong? the problem is in the +,+ area.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class TestFrame extends JFrame implements ActionListener +,+ MouseListener {
     public TestFrame() {
          super("Java Scatter Graph");
          setSize(800, 800);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setVisible(true);
          FlowLayout flo = new FlowLayout(FlowLayout.RIGHT, 10, 10);
          setLayout(flo);
               JButton go = new JButton ("Go");
               JButton pause = new JButton ("Pause");
               JButton stop = new JButton ("Stop");
                    add(go);
                    add(stop);
                    add(pause);
                    setVisible(true);
          public static void main(String[] args) {
               TestFrame sal = new TestFrame();
}

about an hour ago in the command prompt it worked and it brought up the window, but now in the fourth line between the ActionListener and the MouseListener there is that little carrot thingy and no matter what I do it doesn't fix the problem. It is really frusterating because it worked about 60 minutes ago.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class TestFrame extends JFrame implements ActionListener +,+ MouseListener {
     public TestFrame() {
          super("Java Scatter Graph");
          setSize(800, 800);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setVisible(true);
          FlowLayout flo = new FlowLayout(FlowLayout.RIGHT, 10, 10);
          setLayout(flo);
               JButton go = new JButton ("Go");
               JButton pause = new JButton ("Pause");
               JButton stop = new JButton ("Stop");
                    add(go);
                    add(stop);
                    add(pause);
                    setVisible(true);
          public static void main(String[] args) {
               TestFrame sal = new TestFrame();
}

Similar Messages

  • I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look

    I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look normal when I first open them in photoshop. I will edit, save, and then realize once i've sent it to myself to test the color is WAY off. This only happens in photoshop. I've read some forums and have tried different things, but it seems to be making it worse. PLEASE HELP! Even viewing the saved image on the mac's pic viewer is way off once i've edited in photoshop. I am having to adjust all my colors by emailing myself to test. Its just getting ridiculous.

    Check the color space in camera raw, the options are in the link at the bottom of the dialog box. Then when saving make sure you save it to the srgb color space when sending to others. Not all programs understand color space and or will default to srgb. That won't necessarily mean it will be accurate, but it will put it in the ballpark. Using save for web will use the srgb color space.

  • I have a huge problem with memory usage.

    I am having two very huge problems with the amount of memory the game I'm working on is using. The first is that the background image for a part of my game takes up ~45mb of memory, but believe it or not, that's not my worst problem. i'm not worried about that right now.
    The really, really big problem does involve that image, though.
    Whn I'm done using the image, I can't get the resources it uses to be freed. As a result, the program uses more and more memory every time you go into that area of the game, because the memory used by tha area is just sitting there.
    I used Jprofiler to figure out exactly what wasn't getting released, because I do everything I know how to make everything be garbage collected, including setting all the references to the image to null after you leave that area of the game, but nothing worked.
    After I leave the area with the huge memory leak and give everything time to garbage collect, the main screen for memory usage shows about 45mb of memory used by 20 or so instances of int[], which is obviously the image.
    However, this obscenely huge int array doesn't show up in the heap snapshot, which according to them means there's no reference to it or the image anywhere in the program.
    Here's my question: If there's no reference anywhere to this int array, then why isn't it being garbage collected?

    Maybe you haven't actually released all references to that data.
    Or if you have one 45mb image, maybe you have a bunch of other huge ones and you're just seeing those.
    Why do you have a 45mb background image, though? Can't you use a standard technique like tiling it?

  • HUGES problems with display after waking up from hibernate mode

    Hello everybody,
    I hope that somebody can help me soon, because in the last 15 days I'm reaaaaallly annoyed with MAC's issues.
    In the last 15 days it seemd I had to reboot it a lot of times, because it freezes, it crashes, etc...
    Neverthless what happened today it passes all the limits: in the last period, because of these often crashes, I turn the mac off at night, on the other hand when I go to work I simply close the display and let it hibernates.
    Today when I came back after work I opened it and it was amazing:
    it has a different desktop!! With different icons in the dock, diferent icons in the top-right part, and it was freezed! I had to force it to shut down, restart it...and since then, I had huge problem with display.
    It shakes everything while scrolling mails, web pages or icons in the dock. If I scroll between desktops, it takes year lights more than yesterday!!
    Nothing happen if I restart as many time as I want.
    In my simple opinion it seems a virus issue, but..as far as I know, there is no need to install an AV on a mac, right???
    I tried to record some of these probls with the QT, but when you start recording all the desktop, it seems A LITTLE better, smoothing all these shaking effects. NEverthless they are still noticeable.
    I'll try to attach a video as a dropbox link, 'cause I can't attach it on the message (it is denied)
    PLEASE HELP MEEEEE!!!!
    https://www.dropbox.com/s/r1mlpjo5x8g1tkj/scrolling%20problems.mov
    https://www.dropbox.com/s/g1ey1xrheo9mvti/scrolling%20problems2.mov
    https://www.dropbox.com/s/ljtm53go8ywt9fs/scrolling%20prob3.mov

    I am going to add my problem to this as I believe it fits and may add to the conversation.
    I have a MacBook Pro, am using Parallels, and have an issue waking it up from sleep.
    Circumstances:
    I close the lid and walk away from the device in my office. When I return, (over night or an hour later) I open the lid, and if nothing happens swipe the touchpad or press a key, the power light changes from pulsating to steady. then in less than 15 seconds it goes back to pusating. The display never energizes, only remain black.
    I usually try opening and closing several times, and occaisionally that will work. Other times, I hold the power key until I hear the drive halt, then turn it on. The grey screen will display, then blue, then just before it gets to the log in, the screen goes black (not energized) and the light pulsates.
    I have tried the PRAM reset and Safe Mode starts with no luck.
    *Now the really wierd thing.* I decieded to contact Apple support on line and pay for help (yes that is weird in an of itself for me). As I began the process it came to the part for me to enter my serial number. With the lid open, I turned the MacBook on its side to try to read the number and the screen energized and the password unlock prompt was waiting for me to enter the password.
    Observations
    I had read where the light sensor could be blocked by dirt or the light in the room was too dim, but I clean the screen and there is plenty of light. Dales Post is the first that I have seen Parallels and the Sudden Motion Sensor. That makes some sense to me because of what happened when I turned it on its side. I have verified that it happens regardless of using Parallels. as teh last time I did it I had closed out of all my VMs and I believe exited Parallels.
    I am going to try the deleting the power preferences file and will report back.

  • Huge Problems with WD Mycloud... files disappearing...

    I recently installe done of these in a small clients office (they have 4 or 5 users) and wanted a simple storage device. I had used these before andf they loooked good so I bought one. It has been a huge embarrassment and I hope you can help me resolve my users issues. Here is the behavior described to me:I had a file saving problem in FileA. It could have been around 5:41. Detailed: - The original file was saved in the "FolderA" folder in Share1 (saved there on Tuesday). - I hit save and it said it could not be saved. I hit okay, and then save again, and it said "file not saved". - I copy/pasted the data into a new, blank document, and closed the original file. When I tried to reopen the original it told me Excel cannot open this file, it may be corrupted. - I saved the copy/pasted version to my desktop and continued working in that.  My client is repeatedly going back to using their desktops becaus eof saving and corrupt file frustratiopns on wd mycloud.Firmware is up to date.Please help.

    If one maps the WD My Cloud through WD2Go.com connection to their local computer then there will be problems with saving and opening files on or to the WD My Cloud. The problem actually lies with Microsoft Office in that case. If you have mapped the drive(s) through WD2Go.com then see the following explanation from WD Support and a workaround to the problem if connecting remotely through WD2Go.com. Microsoft Office documents in a device connected through WD My Cloud Remote Web Access cannot be opened If both the client computers and the WD My Cloud device are both on the same local network, there is no need to map the drive through the WD2Go interface and one should be able to save/open Microsoft Office documents on the WD My Cloud. See the WD Support documents below for directions on how to map a WD My Cloud that is on the local network (not remotely). How to map a WD My Cloud or NAS product on a Windows PCMapping a drive letter on a WD Network hard drive using WD Discovery

  • Problems with implementing LV shared vars for executable standalone applications

    In order to implement shared variables, it appears that all networked computers must have LV compiler installed and running the code that will have the shared variables so that an association may be made thru explicit binding. The problem with this is that I want to build my applications on my development computers to use shared variables and then I want to make executables to distribute to locations that do not have LV compilers.  If shared variables are only good on a machine that is currently running he source code, then this whole shared variable idea seems very unusable.  Any ideas?

    What you need to do is build an executable from your code using the
    Application Builder, then you'll be able to run it on machines that do
    not have LabVIEW installed. These machines will need to have the LabVIEW Runtime engine (needs to be the same version as your version of LabVIEW) and any needed driver packages (NI-DAQ, VISA, ect.) installed, but these are a free download.
    Let us know if you have more questions.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Huge problems with Amazon and Firefox 5 (& IE, Chrome, Opera)

    I have Firefox 5 and Windows 7 Home. I have been having increasing problems with amazon pages hanging- not just with Firefox but with IE, Opera & Chrome. Sometimes everything is fine but increasingly amazon is becoming unusable. It has got worse since updating to Firefox 5 from 4. Can anyone help ( in non-technical language!)

    Try clearing the Cache in Firefox.
    Tools-> Clear Recent History -> [v] Cache
    or
    Tools->Options->Advanced->Network -> Offline storage -> [Clear Now]
    Youtube may have made some changes recently. Clear the Youtube cookie if above does not do it.

  • Huge problems with wireless, would need some help

    Sorry for the bad topic, and sorry for my english.
    And now the problem.
    I have just bought my first laptop, and got almost everything to play nice in arch, except the wireless.
    My card is a Intel PRO/Wireless 3945ABG (iwl3945), and i have a Dlink 524 router (abg).
    Using WAP, but can change this if its help.
    Right now I'am using NetworkManager (0.6.5-3 from rep) and KNetworkManager (from AUR), and it works very very bad.
    It can't connect at startup (or atleast it doesn't...), it takes several attempts to get a connection, it drops the connection and dont reconnect when it does, and so on. Its almost unusable and force me to use wired a connection just to be sure to be able to write this.
    After what i read in different forums and mailinglists, there seems to be a lot of problems with wireless at the moment?
    Anyone got this combination to work fine? Or are there any other way of configuration i should try? Suggestions?
    Thanks in advance!

    I've had a lot of problems with wireless networking for several weeks recently, ever since I upgraded vanilla kernel26 from v.2.6.22 to v.2.6.23 (see http://bbs.archlinux.org/viewtopic.php?id=40145).  I'm using the Windows driver bcmwl5 for the Broadcom 4311 chipset via Ndiswrapper, and I'm using WPA-PSK (TKIP) encryption.  I also use a D-Link DI-524 router.  What finally cured the problem was to install the new wicd (v.1.3.1) network manager which is now in extra and to set up all networking interfaces in that GUI, abandoning using Arch network profiles and all the detailed setup in /etc/rc.conf.
    My /etc/rc.conf now only contains (I'm only showing entries pertinent to networking)
    MODULES=(ndiswrapper capability sg acpi-cpufreq cpufreq_ondemand cpufreq_performance cpufreq_powersave)
    HOSTNAME="RFDellLT"
    DAEMONS=(syslog-ng @nfslock @nfsd @netfs @crond !network hal cpufreq portmap wicd sshd cups alsa @openntpd privoxy)
    i.e. no more INTERFACES, not even "lo", gateway, ROUTES, NET_Profiles.  Everything is set up through wicd.  You only need to put the wicd daemon in the DAEMONS array (after hal which also loads dbus), and the network daemon isn't needed anymore.  Also you should uninstall any other networkmanager.
    To put the wicd icon in the system tray, create a shell script (give it any name) in the .kde/Autostart/ directory in your home directory (if you use KDE, otherwise do the equivalent thing for any other DE/WM) that contains the command /usr/lib/wicd/tray.py.
    You may want to try wicd, perhaps it'll fix your problem.  It certainly has gotten good press in this forum.

  • Huge problem with Firefox3

    Could you go http://metalreviews.com/ in Firefox3 from unstable?
    I asked people on irc but they had no problems with it, I don't know why I have, maybe because Radeon card?
    Go to the website and then click on "New Weekly reviews".
    Problems:
    - everything works terrible slow
    - there are visible errors, for instance firefox menu is visible in the website
    I had no problems with it on Firefox2 and lots of other websites work OK.
    Last edited by Jacek Poplawski (2008-06-08 09:48:05)

    lartza wrote:
    I have something similar with latest firefox 3 and epiphany 2.22.2 from the official repos.
    The background of the white information boxes around the content at http://last.fm/ are screwed
    screenshot
    Strange, because I went on that page and everything is fine here.

  • Problem with implementing license in Cisco Prime Infrastructure 2.2

    Goodday,
    For Cisco Prime Infrastructure 2.2 I downloaded an license from the license portal.
    This concerns a eval/demo license, for an demo of Cisco Prime Infrastructure 2.2.
    When selecting the the type of license you get a few options, from which I selected the basic, advanced and lifecycle evaluation licenses. This is the type of license that is required for our demo.
    After completing the wizard I can download en implement the license.
    Until this point everything goes as it supposed to be.
    When i go to the Prime Infrastructure 2.2 appliance (running on VMWare ESXi 5.5.0).
    When I go to the license section in Cisco Prime Infrastructure I can implement the license, however if I implement the .lic file I get the error “Unknown feature (PI_VM)”.
    I have done implementing license files before, but this is the first time i encounterd this problem.
    Who can help me with this error?
    Regards,
    Dennie Verhoeven

    Hi Dennie,
    PI2X-BASE-LF-AS-US-VM-N-EVAL-90   >> I think you have used this product name while generating the license
    Either you try generating a new license or  contact cisco license team to generate a new license
    with the information  like below ::
    Product Name                : R-PI2X-K9
        Product Description         : R-PI2X-K9:R-PI2X-K9 : Cisco Prime Infrastructure 2.x
        Product Qty                 : 1
        UDI                        : PID: PRIME-NCS-VAPL  SN: ANY:ANY
    Serial no : with ANY:ANY will work as  starting from PI 2.2 , there is no node locking with license.
    Thanks-
    Afroz
    ****Ratings Encourages Contributors ****

  • V4.0 Dynamic Action - Problem with implementing disabling/enabling button

    I'm having trouble implementing the following APEX V4.0 dynamic action:
    The enabling/disabling of a button when a text field is not-null/null.
    I'm following the example in Oracle's Advanced APEX course notes Pgs 5-13 to 5-16. I can get it working with no problems using two text fields. The example states that the "Select Type" for the button is a DOM object and you then have to enter it's name in "DOM Object" attribute. The example uses a "CREATE" button in a region position. Is "CREATE" just the Name attribute of the object? Is that what we are suppose to enter here? Also my FIND button is a "button among the region items" and not a "button in a region position" as in the example. The name of the button is P1_PAT_TBRN_SEARCH but when I use it as the Dom Object, nothing happens. Also I am using the "Key release" event for the text field that must be not-null.
    I notice that Demitri Gielis on his blog couldn't get it working either (see last paragraph)
    http://dgielis.blogspot.com/2010/01/apex-40-dynamic-actions-part-1.html
    Any suggestions?
    thanks in advance
    Paul P
    Edited by: PaulP on Jun 2, 2011 12:01 PM

    Hi Paul
    Two separate situtations here:
    - html buttons
    - template based buttons, typically comprising multiple html elements
    HTML Buttons
    These should be easy to enable/disable using dynamic actions, specifying an appropriate DOM selector.
    Typically you would use the ID attribute of the button, so that's straight forward except for one catch..
    APEX supports a #BUTTON_ID# template substitution tag , but performs substitutions only for buttons in Region positions and not for button items.
    Use button attributes instead to assign a specific ID.
    Template Buttons
    Since these are made up of multiple elements, you need to treat them as a single object to be able to interact with them easily.
    APEX provides the apex.widget.initPageItem method to integrate plugins with the dynamic actions framework:
    apex.widget.initPageItem("P1_MY_ITEM", {
    enable: function(){},
    disable: function(){},
    getValue: function(){},
    setValue: function(){},
    nullValue: "%null%"
    });This provides you with a mechanism to over-ride one or all of these built-in methods with your own JS, to use custom code to enable/disable your template buttons.
    For an example on how this works, look in the uncompressed apex_widget_4_0.js file, search for the shuttle widget.
    You could just add code to initialize your template buttons manually, or better still create a plugin button to add the code automatically.
    This is reasonably advanced work to do, but you really have to take your hat of to the APEX team for providing the mechanism to do it.
    Regards
    Mark
    demo: http://apex.oracle.com/pls/otn/f?p=200801 |
    blog: http://oracleinsights.blogspot.com |
    book: Oracle Application Express 4.0 with Ext JS

  • Huge problems with both Linksys site and HND

    Hello,
    As business user of CISCO products and for @home using Linksys by cisco WRT610N with the Mediahub ive always been a huge fan of your products and still support it every day, however, i have been talking 3 times over chat support now about the 2 problems i have and it seems no one understands what is going on.
    1) I updated the firmware on my WRT610N to the latest from january 2009, succesfull
    2) I installed LELA and run the Home Network Defender setup, product installed, got a serialkey
    3) I click on a device change its security settings and then : PRODUCT NOT ACTIVATED.
    Trying to log  in over and over doesnt solve anything and reinstalling i tried already 3x aswell, i had to use a different emailadress now everytime, very annoying.
    Apart from that, i couldnt use my original login on your site anymore i am getting the request a new password emails with a new pass and link but when i then try to login, it keeps saying that the information is not correct, over and over, repeated the process already 10x, no difference.
    Therefor im now using a brand new registed username so i can at least post about my problems and hope Linksys (CISCO) will fix these issues so we can all make sure things work perfectly as with Cisco business products.
    I hope to hear from anyone asap as i wanna get my problems solved soon,
    Kind regards,
    Michiel
    TechConnect B.V.
    (Mod Note: Email address removed. Please use PM system) 
    Message Edited by giantherockstar on 03-18-2009 09:11 AM

    Sorry to hear about your issues.  Can you please private message me your phone number and email address? I'd like to set up a call to see how we can troubleshoot your issue.
    -Spencer

  • Huge Problem with iCloud...

    Hopefully someone can help me out here.
    I have an iPhone and an iPad.  Ever since setting up iCloud I've had a ton of problems and I don't know if what I want is possible.
    How can I set a criteria for when my contacts sync?
    My phone synced to my company's Gmail account and pulled a ton of contacts with ONLY email addresses.  I don't want my contacts list to be populated with accounts that only have emails.  However, I do still want contacts synced that have a phone number....
    I still have the iCloud on both the iPhone and iPad. Should I remove it if it's just going to continue causing these problems?
    Thank you

    I have nearly the same problem.  I had an IPhone 4.  Resotred an older backup.  This backup had an old apple ID that I thought I knew the password.  I tried the e-mail recovery but no recovery link wsa sent.  (I still have accesss to the old apple ID e-mail)     I simply need to reset the phone to factory.  But with out the icloud password I can't reset.  I tried recovery mode but since the phone is updated to 7.1 it won't enter recovery mode. 
    I belive I can't recover the old apple id from e-mail is because my new apple id was an e-mail change from the old one rather than two seperate accounts.   The orgianal applie ID therefore no longer exisits.
    How can I factory reset my ios 7.1 phone to factory with out the icloud password.   Thanks for the help. 

  • Suddenly I am having a HUGE problem with slow response.

    Thunderbird has worked like a charm for over a year. Now, all of a sudden, it keeps hanging up when I try to write or send an email. I haven't changed my anti-virus software which is MS Defender. I can't think of anything else I could have done to cause the problem. For a while, I couldn't open MS Word attachments. That seems to be solved now for some unknown reason. I really like this email program when it works, but I need more dependability. Is anyone else having this problem?

    Try to start *Windows* in safe mode with networking enabled.
    - Win8 http://windows.microsoft.com/en-US/windows-8/windows-startup-settings-including-safe-mode
    - Win7 http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode
    - XP http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx
    Still in Windows safe mode, start Thunderbird in safe mode.
    - https://support.mozilla.org/en-US/kb/safe-mode
    Does the problem go away?

  • Apple had made such a huge problem with 5.01 in China,turned 4S into itouch

    After having updated my iPhone 4S to iOS 5.0.1, my phone now seems to have the following problems:
    It doesn't receive calls
    The iPhone can not  make outgoing calls
    I can't send sms messages
    What have you done with my iphone 4S ?    5.01 is just like a monster .  You hurt  millions of Chinese Apple fans .
    Ipone 4S   IOS 5.01 + CMCC = ITouch  4S

    I got the same issue with my phone (3gs), it's not the phone, it's definitley ios5. Apple keeps replacing my phone with a new one, this is my second one already. Funny thing too, I asked the Genius if anyone else has had this issue he said no. As I am gathering my things to leave he is talking to the next customer and she is telling him the exact problem I had.

Maybe you are looking for