Overload help

I am not sure how to overload this ( MyHouse class) can someone give me a suggestion? ( I need to add a second constructor with 3 params)
public class MyHouse extends AView
// instance variables
private AUpTriangle theRoof;
private ARectangle theHouse;
private ARectangle theDoor;
* Constructor for objects of class MyHouse.
* This creates a MyHouse object at the specified
* location
* @param x the x-coordinate for the object
* @param y the y-coordinate for the object
public MyHouse(int x, int y)
// Specify the constructor for the superclass
super(x, y, 120, 100);
// Create the roof object
theRoof = new AUpTriangle(0, 0, 120, 40);
// Set the characteristics of the roof
theRoof.setToFill();
theRoof.setColor(new Color(0x99, 0x33, 0x00));
// Place the roof in the MyHouse object
theRoof.place(this);
// Create the house object
theHouse = new ARectangle(10, 40, 100, 60);
// Set the characteristics of the house
theHouse.setToFill();
theHouse.setColor(Color.blue);
// Place the house in the MyHouse object
theHouse.place(this);
// Create the door object
theDoor = new ARectangle(48, 50, 24, 50);
// Set the characteristics of the door
theDoor.setToFill();
theDoor.setColor(new Color(0x99, 0x66, 0x33));
// Place the door in the MyHouse object
theDoor.place(this);
Thanks
Rob

I did change it to
public MyHouse(int x, int y, java.awt.Color)
but I still get the error
Rnaw, what its asking for is an identifier, a parameter name if you like, i think that public MyHouse(int x, int y, java.awt.Color theColorIWantMyHouseToBe){
}is what its asking for :-)

Similar Messages

  • Disk too slow / System overload HELP?

    I'm really hoping someone can help me out with this!:
    I purchased a G4 PowerBook around six months ago, with Logic Pro pre-installed. Since then, I have mixed and mastered lots of music that was recorded on a previous system and imported. I was running multiple tracks simultaneously with tons of plug-ins and everything ran smoothly on my new Mac. HOWEVER, within the last month, my playback capabilities have been severely reduced. When I try to play back even two tracks simultaneously (with just one compressor or reverb), I get the error message, "Disk too slow / System overload."
    My first reaction to this problem was to check my disk space and see how much room I had left: it turns out I have over one third of my harddrive space still available. I checked my memory capabilities and they seem to be more than adequate. I bought new virus protection, too, and ran scans to see if that might make a difference, but it hasn't. I don't understand why this is happening on a system so new. ANY ADVICE YOU CAN OFFER WOULD BE GREATLY APPRECIATED!
    Many thanks.
    Powerbook G4   Mac OS X (10.4.6)  

    It is generally not a good idea to run logic on the same drive that contains your audio files and samples. Most of the data involved with logic whether it be programs or individual audio files will be saved physically all over the place on your hard drive. At a certain point the actual part of the drive that reads the data will not be able to move around to all the little different audio files it needs to access for the session on top of running the program and whatever other software that is up. It is best to save all your audio files and samples to a fast external drive (7200rpm at least) otherworldcomputing.com has great drives that have high quality cases and the option to put any drive they have in stock into the case. (i would recommend seagate) If you are going to continue running your entire sessions off the internal drive then you need to keep up with your basic mac housekeeping. You should repair your permissions 2 times a month (use disk utility) You should buy a good directory repair program such as disk warrior. The directory is exactly what it sounds like. It keeps track of where everything is on the computer. If your directory is corrupt the computer will have to do an extra manual search to find what its looking for. If your directory is healthy your computer will make a straight shot to the file you are looking for.

  • HT1342 Logic Pro system overload help needed!

    Hello!
    Sorry for making another thread about this, but I do have some questions i would like an answer to.
    When i use logic pro 32-bit, i had 14mb free ram when I opened up my latest logic project, and everytime i press playback in the application it says "disk is too slow, or system overload 10011 error. Since i often run out of ram, should I invest in 8gb of ram instead of the 4gb installed, or is it a matter of disk speed, for instance buying a Solid State drive?
    Is it something to do with outdated hardware, or do you have to change buffer settings and things like that in order to make your DAW work properly?
    I hope to hear some good advice, or solutions to this ongoing problem.
    Thank you!
    Ps. I have the MacBook Pro 15 inch 2.53 ghz mid 2009 model with 80gb free space.

    There are a few things you can try -
    1) Try increasing the audio buffer size if possible (Preferences > Audio)
    2) If you have any other applications open close them and see if it makes a difference
    3) Freeze some tracks by ctrl-clicking any track and configuring the headers. Add the freeze icon then enable for your tracks. This will create an audio bounce of the track with all effects on it. This should free up some processing power but you won't be able to edit any plugins until you unfreeze
    Hope this is of some use!
    Message was edited by: Tom Crabb

  • Core Audio Overload - Will a New Fire Wire Unit Help?

    I use a G5 2.5Ghz Quad with 6GB of RAM and an Edirol FA-101. I'm finding that the 'Core Audio Overload' is becoming a huge irritant and I've tried multiple driver configurations in Logic Pro 7.2 to correct the problem.
    Watching the performance, I had 64% of my processor power idle and 1.79GB of RAM free when it last occurred. Given that so much system resource is idle, my only conclusion is that my Edirol FA-101 is not adequate for the tasks I'm setting it. Before I spend the money, does anyone agree or am I barking up the wrong tree? Can Core Audio overload due to the sound unit being used?
    I'm thinking of a Fire Wire 800 unit like the RME Fireface - if anyone has experience of FW800 units I'll be glad to hear from you and from anyone who knows whether it will help Core Audio process information in time.

    I'm not using a seperate drive for my Logic files. I've worked through the link you posted on settings several times, and it's Steinberg's 'Halion Symphonic Orchestra' that's crippling my system. I watch the system performance as the song plays and the second core peaks out every time while the Disk I/O meter barely registers a blip which is why I haven't put anything onto a seperate drive, though I certainly shall be.
    Will getting Logic projects on a seperate drive work to a greater extent for Core Audio? Halion Symphonic Orchestra uses huge files, but I can't understand why I have such a large amount of Idle system with the Core Audio Overload?
    Would an RME Fireface not help Core Audio in its processing? If I can avoid the cost, I will. I'm even using a Pro Care appointment on Tuesday afternoon to see if there's anything else I can do, I'm that desperate!
    If I move the Halion Symphonic Orchestra to a seperate drive and then the Logic files to another, would that be more benificial to system performance?
    Beer anyone?

  • Help! Trying to understand overloading.

    I keep getting the following compile error when attempting to compile the following code. If I swap the f(String s) with the f(float f) method it works but I don't understand why. Can anyone help this newbie?
    MyClass.java:23: reference to f is ambiguous, both method f(int) in Overload and method f(float) in Derived match
              d.f(100);
    class Overload {
         public void f(String s) {
              System.out.println(s);
         public void f(int i) {
              System.out.println("" + i);
         public void f(boolean b) {
              System.out.println("" + b);
    class Derived extends Overload {
         public void f(float f) {
              System.out.println("" + f);
    public class MyClass {
         public static void main(String[] args) {
              Derived d = new Derived();
              d.f("Hello World");
              d.f(10);
              d.f(true);
              d.f(1.0f);

    See if
    http://developer.java.sun.com/developer/TechTips/2000/tt0314.html#tip2 helps.
    Thanks,
    Binil

  • New iPhone - Enabling Sync Apps Help after having an old iPod Touch that was overloaded

    I had an iPod Touch and it was overloaded with apps. So when I got the new iPhone I decided to start fresh and didn't sync it with iTunes immediately. I have about 50 apps on my iPhone that I actually want, and there are atleast 200 others on my iTunes that I don't want or need.  When I plug in my iPhone and go to the apps tab on my iPhone, the sync apps isn't checked.  If I check it it deletes all my apps on the preview window on the right, and none of the apps are checked.  So I deleted all the apps on my computer and transfered purchases so i only had the ones that are on my iPhone.  Now when I check sync apps, if i check all the apps, they are not in the right spots.  I can move them later, but my real concern is whether or not it will delete anything I have done in the app like game progress.  Any help would be great.  Thanks

    bump

  • "Disk is too slow/system overload"??? Help!

    Hey
    I'm running Logic Express on a G4 with OS X 10.4.10. My processor is 450 MHz, and my memory is 896 MB SDRAM. When playing back around 6-7 tracks, i get a message saying:
    "CoreAudio - Disk is too slow or System Overload (-10010)"
    or
    "CoreAudio - System Overload. The audio engine was not able to process all required data in time."
    I'm assuming that this has something to do with my processor being too slow, however, according to the logic express requirements, i have much more than required. Or this could be a problem with RAM maybe, considering i only have 896 opposed to the 1000 needed.
    Sorry if this is a noob question, i'm new to macs in general. I'm just looking for answers because this is keeping me from doing what i love. Any answers appreciated!
    Thanks!!
    EDIT: I'm using a presonus firepod for an interface, if that helps.
    Message was edited by: wasco

    I'm not sure where you read the system requirements for LE8, but looking at my box I see that you need a "1.25GHz or faster PowerPC G4 processor (and) 1GB of RAM." Keep in mind that these are minimum requirements.
    Unfortunately, the processor is your main problem . . . LE8 requires a processor almost three times as fast as your 450 MHz. Also, as you pointed out, you don't even have the minimum 1GB of RAM. You do have the proper OS, but I don't know if you have the minimum required 6GB of available disc space.
    Other than upgrading your processor or buying a new computer, the only other suggestion would be to make sure you record to an external drive but I'm not sure how helpful that would be in your particular case.
    I'm sorry I couldn't be more helpful.

  • Hi. Deeeep trouble here. I get overload (only 1 core working, it should manage easyly though anyway) with only 1 audio instrument playing. No other things in arrange. iMac i7 2.8, 8gb. Newest Logic Studio. Plz help, guys.

    Hi. Deeeep trouble here. I get overload (only 1 core working, it should manage easyly though anyway) with only 1 audio instrument playing. No other things in arrange. iMac i7 2.8, 8gb. Newest Logic Studio. Plz help, guys.

    TimboDJ wrote:
    Right people, I really hope you can help... here's the story:
    I produce with a friend and approx 4 months ago we both upgraded to brand new MacBook Pro's each and Logic Pro 9 each.
    I bought a 13" MacBook Pro with 4GB and the 2.53Ghz Intel Core 2 Duo processor.
    He bought a 15" MacBook Pro with 4GB and the 2.66Ghz Intel Core i7 processor.
    We both have bought the full version of Logic Pro 9, both done the upgrade to 9.1 and have both set our copies of Logic to 64 bit.
    Why? The only advantage you have from 64 bit is that Logic can use more than 4 GB RAM - which neither of you have. I would strongly recommend setting Logic to 32 bit. On both Books. It might alleviate some or even all the problems - I hope.
    Here's a list of unavailable features in 64 bit mode:
    http://support.apple.com/kb/TS3171
    My friends copy of Logic on his Mac is so buggy its sometimes unusable.
    My mate is about to throw the **** thing out of the window and buy Cubase!
    More often than not it is hard to install new software on computers that have been thrown about.
    Can anyone shed any light please??
    I think 32 bit is your answer. However, the mobile i7 processor does at least have one issue with Logic:
    http://discussions.apple.com/message.jspa?messageID=11460744#11460744
    (same topic, summary)
    http://discussions.apple.com/message.jspa?messageID=11525406#11525406
    regards, Erik.
    Message was edited by: Eriksimon

  • "Disk is too Slow or System overload" message...HELP!

    Hello,
    I am using a MacBook Pro and recorded an Audio track last night with my guitar (plugged directly into my Motu audio interface) using the the "tape delay" effect/plug-in. After recording ONE track, I was playing it back and simply playing my guitar for practice over the track while monioring through my speakers when I get the message "Disk is too slow or system overload (10010)."
    What is this? I should be able to record audio tracks with my MBP, right? What am I doing wrong and how could my system possibly be overloaded and unable to continue with ONE audio track? Please help. Thank you.

    you can also try typing System overload in the search discussions field on the top right of the discussions page,make it specific when you get the results to Logic 7.
    there's millions of posts about it....
    also check your buffer,(low setting when recording editing ,increase it at playback)
    and in case you recording/play from an external drive make sure it's power supply it's connected.

  • Oh yeah, another SYSTEM OVERLOAD thread! Can anyone help please?

    Really? I should be getting constant system overload errors running a dual 2.5Ghz G5 desktop with 2 gigs of RAM, and I'm only running a project with 5 virtual instrument tracks and nothing else? And I froze the four tracks I'm not recording to. I've checked every setting I can think of to minimize processor load. Is there some secret thing I don't know how to do? Any and all help appreciated.

    the place to look is the 'console' app. that contains all the logs and system events you can shake your stickiest stick at.
    However...I very much doubt that will help you.
    Unless the programmers can give more meaningful error messages or enough Logic users complain, perhaps nothing will be done and maybe some 'next release' update might fix 'some' of the problems.
    But you are right, it is frustrating and the messages are all but useless.

  • Help with Mainstage 3.1 CPU overload issue

    I was using Kontakt 5, UVI Workstation and Pianoteq 5 in MainStage 3 without any issues.
    Since I updated to MS 3.1, The CPU is always above 100% !!! I am facing audio dropouts and it is absolutely impossible to play a show
    Is anyone else facing the same issue? Any tips to help reduce CPU overload will be helpful.
    I have Contact and UVI workstation running from an external hard disk. I thought that might be the issue but i tried with a keyboard template set in MS 3.1 and still while playing CPU usage shoots to 100% plus!
    I am on a MacBook Pro (Retina, 13-inch, Late 2013), 2.4 GHz Intel Core i5, 8 GB 1600 MHz DDR3.

    Try to get the Mainstage 3.0.4 from a timemachine backup.
    Try to update all your programs like pianotec.
    For me, 3.1 feels better concerning timing/ latency. This might cause more stress for the processors.
    My system i7 2,2 GHz is always getting hot, fans go crazy. There's a limit: Better than 64 Samples buffer is not possible.
    To be serious: A real Piano needs  0,25ms to produce a sound. We have to deal with 4ms. That's bad. So you could increase buffersize to 128 and try playing? It makes no big difference if you play the poor 4ms ore poor 6ms for example. In every case we are far away from the real thing.
    Check, if you activated the "savety buffer" checkbox in audiodriver window.
    If you can't find 3.0.4., you could try to reduce the installed channelstrips in your patches. Effects in concert level should be reduced. Evt. you have Efx in busses that are not needed in most patches. So cancel them in concertlevel and install them in selected patches.
    I replaced a spacedesigner reverb with an reverb outside the system, it's processed from the interface. Same with a chorus.
    I tested a newer MacbookPro retina, that was not better than mine. The difference was, it produced little dropouts every 10 seconds.
    Hopefuly there will be a update for 3.1 soon.
    And be serious: Before 3.1 you could play a show without dropouts, but was it fun? Mainstage urgently needs better latency capabilities, generally.

  • Help overloading Component.paint()

    I can't seem to figure out what I'm doing wrong here. I haven't used a null LayoutManager in a while, so there is probably something I'm missing or forgetting. Anyhows, here is some sample code that is supposed draw a Panel with 7 rectangular boxes in one horizontal line. I built an inner class extending Component for each of the boxes, overloading paint to draw a rectangle. For some reaon, it only draws one of the boxes. Any help would be greatly appreciated. Here's the source:
    import java.awt.*;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    public class Test extends Frame
         public Test()
              super("test");
              setSize(586, 370);
              Panel panel = new Panel();
              panel.setLayout(null);
              panel.setBackground(Color.blue);
              panel.setSize(586, 370);
              for (int i = 0; i < 7; i++)
                   TestComp comp = new TestComp();
                   int x = (12 * (i + 1)) + (75 * i);
                   comp.setBounds(x, 20, 70, 95);
                   panel.add(comp);
              add(panel);
              // so it'll close on exit
              addWindowListener( new WindowAdapter() {
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
         public class TestComp extends Component
              public TestComp()
                   super();
                   setSize(70, 95);
              public void paint(Graphics g)
                   // draw white rect
                   g.setColor(Color.white);
                   g.fillRect( getLocation().x, getLocation().y, 70, 95);
              public void paintAll(Graphics g)
                   paint(g);
         public static final void main(String args[])
              (new Test()).setVisible(true);
         }

    The problem in your paint() method.
    You use getLocation() but this location is relative to
    the parent's coordinate space.
    And clip region in Graphics is in Component's coordinates.
    Thus you try to draw outside of clip region.
    To correct your test you should draw(0, 0, 70, 95)

  • Help me: EJB Create OverLoad

    Hi
    I have two constructor in Home interface
         public FacilityEcmFacade create()
              throws javax.ejb.CreateException, java.rmi.RemoteException;
    public FacilityEcmFacade create(String actionFrom)
              throws javax.ejb.CreateException, java.rmi.RemoteException;
    I have two ejbCreate method in bean. one with parameter and other empty.
    I m calling parameter constructor from client. But its not getting called. always empty constructors getting called. pls help me.

    SLSB have only one constructor. If you have another overloaded. It will never be called.
    Regds
    Ashwani

  • Disc too slow or system overload - please help!

    I'm doing a very minimal project with 2 voices, and 5 fx tracks - no plug-ins and after I've recorded a few takes I keep getting Disc too slow or system overload (-10010) messages either in record or playback. These messages have gotten more common for me lately, but this project is so small I'm really surprised. I've repaired permissions, rebuilt directory with Discwarrior and have 100 gigs free space on my media drive. Logic 7.2.1.
    Usually I work at 44.1 but this project is 48 (fx tracks taken off CD are 44.1) I don't think it's much of a factor because I'm getting the same message on my regular projects. The audio portion of my CPU meter barely registers, but the disk I/O goes from barely visible to spikes into the red.
    Any help would be greatly appreciated.

    That's cool, Logic has been doing this since at least version 4, and
    it still does it.
    PC, Mac, g3, g4, g5, pentuim, 2, 3, 4. inboard/outboard audio disks, SCSI, firewire, 1gigRAM, 2gigRAM, 8gigRAM.
    "Disk too slow or system overload" <-- funny, I just produced a 30-minute television presentation doing all the video editing on this mac, all the while MAYA was running.
    Yet, Logic gives you the overload message even if there's ONE SINGLE AUDIO FILE in the arrangement!
    It has nothing to do with your buffer settings.
    Even the best outboard audio disks stop spinning after a few minutes.
    Unlike Nuendo and ProTools, Logic doesn't care what your disk is doing when you press play.
    Nuendo and ProTools spin up the disks before attempting to play the file, avoiding the RIDICULOUS error message. Logic just throws its transport into play mode, causing the error message, and causing you to believe your system is inadequate.
    After I write this, I'm going back into Logic to press play. I know as a Fact, I will recieve the ''system overload message''. Been this way since version 4,
    SOLUTION#1: Press 'OK' at the error window, wait a few seconds, then try playing the song again.
    SOLUTION#2: Wait...another ten years?
    SOLUTION#3: Invest in ProTools.
    The 'system overload' excuse is ABSOLUTELY one of those "10 years and still going" screwups in the logic software.
    I still use Logic, and the folks at Logic apparently will always think you're lying when you report an error. buffer settings! <- too funny.

  • One of oue email account is not working ...getting overload message? Need help to correct.

    Reporting-MTA: dns;vms173003.mailsrvcs.net (lmtp_resst169027v-daemon)
    Arrival-date: Tue, 19 Mar 2013 20:18:54 -0500 (CDT)
    Original-recipient: rfc822; {Edited for privacy}
    Final-recipient: rfc822;@resst169027v.mailsrvcs.net:resvt5sz@ims-ms-daemon
    Action: failed
    Status: 5.2.2 (LMTP transmission failure has occurred)
    Remote-MTA: dns;resst169027v.mailsrvcs.net
    (TCP|172.19.173.3|36862|172.19.169.28|225)
    Diagnostic-code: lmtp;550 5.2.2 Delivery failed: Over quota

    #1 You need to either:
    a) log-in to that account and get rid of old messages
    OR
    b) send the file(s) to an online hosting site where you can get them latter - the free one are addressed on http://www.smashingapps.com/2008/08/28/5-best-free-file-hosting-services-to-store-your-files.html
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

Maybe you are looking for