Location of iChat and Photobooth Effects

Does anyone know where the video/photo effects used by iChat and Photobooth are saved? I'm experimenting with quartz composer and I'd like to be able to see how apple did their effects. I've looked everywhere I can think of but I can't find them.

Choose Go to Folder from the Finder's Go menu and enter /Applications/Photo Booth.app/Contents/Resources/ as the path; more are available by using iChat instead of Photo Booth or using /System/Library/Compositions/ as the complete path.
(35208)

Similar Messages

  • IChat and Photobooth effects- Broken! Not all but some

    Okay so these effects work while iChatting and while looking at the screen in Photobooth. When you try to take a picture however, the result is either negative or white. The pictures looks alright up top right after its taken but down below when you look at the little polaroid icon the picture is negative or white. Also after you click on the little icon to review the picture it no longer looks fine up top.
    ASCII Art
    Ballmer
    Christmas
    Charcoal
    Clown
    Coloido
    Cowboy
    Cube
    Cutout
    Fire
    Fire Drips
    Gorille
    Hearts
    Joconde
    Liberty
    Line Screen
    Magic Ball
    Noise
    Ocean
    Psychotic
    Radar Sweep
    Retro
    Teapot
    Trace
    Tryptamine
    I don't want to delete these effects. I know how to do that but I want to keep them! I know the pathways and everything. I think they may just be broken because I now have Snow Leopard. I'm not sure when these were installed but I know it was before I installed Snow Leopard. I think they were downloaded from the Apple website though.
    Basically my question is, is there anyway to reinstall these effects or change a setting so that they work?
    I could put on a screenshot, I have one I just don't know how to put it into the post. If you can explain then I could add that later if it would help.

    Hi,
    They are the MoreiChatEffects.
    They are causing problems in PhotoBooth mainly but also in iChat.
    As you know they are in the Compostions folder you will know they are Quartz files.
    If you Install Developer Tools off the Install Disk > Options Installs folder you can open them.
    It seems they are not fully Intel or rather not fully integrated with the OS in Snow Leopard.
    Older Quartz files like the ones that come with this Utility http://www.scriptsoftware.com/chatfx/ DO NOT work with the OS above 10.4.9
    Both these seem to be because Apple have made changes in the way the basic Video stream is captured for each OS.
    With the Chat FX ones I made a Duplicate (Finder > File Menu) and then played around.
    If I was going to do it with these I would take an Apple one and keep the Input model and Output module and replace it with an MoreiChatEffects one to see if I could get it to work in Snow Leopard (Photobooth and iChat).
    I would keep an Eye on the web site for more info http://ismileys.free.fr/moreichateffects/
    The header seems to say that some may not work.
    It does also say Intel but nothing I saw about Snow Leopard.
    10:45 PM Monday; January 18, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Any other ichat and photobooth effects ?

    More iChat effects 2.01 ***** and messed up my computer so it cannot be that.
    Is there any other effects you can add that either:
    A. Dont suck and mess up
               and
    B. Dont ruin my computer
    I was just wondering if there were any different types of effects you can get, for photo booth and iChat. Thnx.

    Hi,
    For those running Tiger http://www.plumamazing.com/mac/chatfx
    For later versions http://ichatfx.com/iChatFX/Home.html
    These all are in fact Quartz Files created in Quartz Composer which gets installed if you Install the Developer Tools  (on your Install Disk in Option Installs Folder (Expand the window)
    Once you have Quartz Composer installed you can create your own.
    You can Google for Quartz Composer files.
    However as Quartz Composer can make Screen Savers and iTunes Visulizers you may have to dig a bit deeper on sites you find.
    8:42 PM      Friday; July 22, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Video is backwards in iChat and Photobooth

    It was just brought to my attention that when using any built in iSight camera with iChat or photobooth the video is actually reversed....hold something with writing up to the camera and you will see everything backwards.
    Does anyone know how to reverse the video to rectify this?
    On photobooth I found an option to flip pics taken but not video.
    Thanks

    Since video in iChat hit the application in iChat 2.0 the Video pic you see of your self has been Mirrored.
    It is th normal function of iChat.
    AS you have found Photo Booth does the same but does give you the option of Flipping the pic if words are involved.
    9:07 PM Friday; July 11, 2008

  • The new photobooth effects show up in iChat and Photobooth but do not do anything at all

    I'm asking for a friend. The effects show up and everything but when selected they act as if I've selected original. Is there a fix yet?

    What they do is detect your face and add an overlay graphic to it. Make sure that you are in a well lit area, or these effects will not work. Also make sure your face can be seen easily, no glasses, sunglasses, hoodies w/ hoods up, etc. Hope this helped.

  • Emailing photo booth pics from mail!! and photobooth effects

    hi all, enjoying Leopard but can't work something out. in photo booth you can email photos no bother within photobooth, but if your in mail and open the media browser and click on photo booth none of the pics i've taken since Leopard(and i think some before) are included?
    and does anyone else feel that the effects work far better in ichat than they do in photo booth.
    and what happened to the effect where you can be someone else(i think they did it with the microsoft dude in the keynote)

    This is why you need to backup, preferably more than one.
    You can try using a Data Recovery program.
    Data Recovery – Best
    Data Recovery – Disk Drill
    Data Recovery – Data Rescue
    Data Recovery – File Salvage
    Data Recovery – Stellar Phoenix
    Data Recovery - uFlysoft
    Data Recovery - Recovering Deleted Files
    Data Recovery - Recovering Deleted Files (2)

  • ISight (iChat and PhotoBooth) cam is outputing CRAZY colors!

    Hi Everyone!
    I'm having an annoying issue. My HD recently crashed, and I just got it back from Apple. Fortunately I had TM running, so I got almost everything back. However.. after getting the machine up, and updating back to x.5.2.. my iSight is outputing CRAZY colors. Mainly yellow, grainy, nightvisiony looking image. It occurs in all video apps, I have tried resetting my SMC (although I have no way of knowing if I did or not), and jillions of restarts. I had this happen once before, and the SMC fix did it. Does anyone know a way to get the camera back to usable? Any thoughts would be GREATLY appreciated.

    Hello Steve
    ... complete list of files (cache, library etc) that Isight draws upon.
    I do not think that iSight uses ANY caches. I suppose the apps that operate your iSight might.
    The best iSight technical info source I know is this search of the Apple Developer Connection. You may be able to get more specific help by becoming an ADC Member if you are not one already.
    As an alternative to researching the ADC info, I offer another thought you may have already considered or tried. If I understand correctly what you have been doing at this thread in the Time Machine Forum, you believe that your iSight problem might be correctable by resetting preferences or clearing caches, but you have decided not to attempt resolution by deleting ALL system preferences and caches. If you think it might be beneficial, you could try an application like Yasu that can give you some control over which preferences and caches you can reset without using the terminal or deleting items generated and managed by OS X.
    Finally, Steve, please allow me a word of caution for other readers. You seem to be an experienced OS X user who is more comfortable working at lower levels of OS X than many of us. For benefit of other readers who may be less knowledgeable, it is generally a bad idea to move, modify, rename, or delete any item outside your User > Documents folder unless you know what you are doing. While doing so will not harm your computer, if you damage your data or system files, you will need to restore them, which can be time consuming. Until you have enough knowledge to safely work with them manually, I suggest that you let OS X and your applications manage the files for you as they were designed to do.
    Cheers,
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

  • New (missing) Features and iChat/PhotoBooth effects

    According to http://www.apple.com/macosx/refinements/enhancements-refinements.html
    AirPort menu signal strength.
    The AirPort item in the menu bar now includes signal strength for all available wireless networks, so you can see which access point has the best signal before selecting it.
    I'm not seeing this. Anyone else seeing this? Anyone know the fix?
    Also, I have More iChat Effects 1.2 installed. See http://www.apple.com/downloads/macosx/email_chat/moreichateffects.html
    Photo Booth crashes when attempting to view these effects in the effects browser. Anybody else seeing this or know a fix?

    jephwhy wrote:
    Also, I have More iChat Effects 1.2 installed. See http://www.apple.com/downloads/macosx/email_chat/moreichateffects.html
    Photo Booth crashes when attempting to view these effects in the effects browser. Anybody else seeing this or know a fix?
    I had a similar problem when I upgraded from Tiger to Snow Leopard (and also upgraded to iLife 09). For me, the solution was to run iChat and Photo Booth in 32-bit mode instead of 64-bit mode.
    To do this, go to the Applications folder, select the icon for iChat, go to the menu bar and select File->Get Info. (Alternatively use the shortcut ][-I or "right click" the icon). Check the box for "Open in 32 bit mode". Repeat for Photo Booth.
    (note- I have also posted the above text to another thread in the iSight forum to improve the chances of it being found by others seeking a solution)

  • Nikon D7000 .MOV files in Premiere Pro and After Effects CS5.5

    I recently upgraded from Production Premium CS5 to CS5.5. Initially Nikon D7000 .MOV files used in previous CS5 Premiere Pro project would not play well in CS5.5. Now .MOV files do work in both PP and AE CS5.5. Here are the steps I followed. Not recommending you follow my steps exactly, just providing info for those that are interested.
    1.       Launch Premiere Pro CS5.5 and open previous PP CS5 project, convert project to CS5.5 and rename project file as not to replace previous CS5 project file.
    a.       At this point .MOV files do not play in new project or in AE CS5.5
    b.      Close Premiere Pro and After Effect if still running.
    2.       Using Adobe Bridge CS5.5, batch rename;
    a.       Make copies of original files to new folder location while renaming file extension from .MOV to .mpg
    b.      Let Adobe Bridge finish creating all new thumbnail previews.
    c.       Leave Bridge running in background.
    3.       Launch Premiere Pro CS5.5, let Premiere finish recreating thumbnail previews if needed.
    a.       Attempt to preview existing .MOV file in project. It worked for me.
    b.      Attempt to play sequence containing .MOV files. It worked for me.
    c.       Attempt to play or modify sequence .MOV files in AE CS5.5 via Dynamic Link within Premiere. It worked for me.
    d.      Close Premiere Pro project and AE projects if open.
    4.       Create new Premiere Pro project and sequence
    a.       Import a different Nikon D7000 .MOV file not previously used or renamed.
    b.      Attempt to play this newly imported .MOV file. This worked for me as well.
    c.       The new, previously un-renamed .MOV file also worked in AE CS5.5 for me.
    I will perform additional tests but at the moment Nikon D7000 .MOV files are working for me in CS5.5 after initially performing a batch rename in Bridge CS5.5 from .MOV to .mpg and letting Bridge create preview files. Even .MOV files not renamed now work.
    An example of Nikon D7000 footage edited with Adobe Premiere Pro CS5.5, After Effects CS5.5, and Sound Booth CS5 can be seen on my blog, http://stevelandonsmyth.typepad.com/steve-landon-smyths-blog/2011/07/my-first-hd -video-shoot-with-nikon-d7000.html
    My system: MacBook Pro 17" 2.3 GHz i7 quad core, 8GB RAM, 500MB SSD
    Message was edited by: Steve Landon-Smyth

    Hello,
    I see 2 post in this thread from Todd that say they are working on a fix and it should be out soon.  One is from July, the other from August.  It is now Sept 7th and I still see no patches or fixes for any bugs.  I spent 400 dollars on an upgrade, but is this upgrade going to be supported?
    This is making me rethink upgrading to the .5's in the future.
    It is a minor bug to most, but in that sense it should be an easy quick fix. Am I wrong? Is this really a complicated issue?
    I apologize if this comes off like a rant, but thats kinda what it is.  It is not hard to batch rename files, but its a pain to have to relink all those files in PP.

  • ALL pictures in iPhoto *and* PhotoBooth are gone :(  please help

    Hello,
    I have a bit of a dilema here. On 6-27-07 (actually 6-28 cause it was after midnight), my daughter and I were taking pictures in photobooth. I selected the iPhoto icon from the PhotoBooth picture to send a copy of those pictures to iPhoto.
    PhotoBooth froze up after doing several of them and wouldn't work. I am trying to remember from memory (which is swiss cheese from the MS), but I think I had to do a hard shut down. When I tried to go to iPhoto, it acted like it was my 1st time using it and it began asking me questions as if I was setting it up for the 1st time. ALL pictures are GONE. Everything in iPhoto and PhotoBooth are GONE I don't know what I did or how (if I can) to fix it.
    Can anyone possibly help me? Lots of precious memories gone. I was recently going to read how to do a back-up right before this happened. Now I wish I hadn't gone to sleep that night until I learned how to do it and actually did make a back-up
    My husband called Apple and they told him to do something and now that has created approximately 3 copies of random pics and not all of them, or I would just delete the extras. My husband may have done something wrong to have it make extra copies of the pictures it has now, I don't know.
    My husband didn't seem like he was happy with the help that he was getting at the time. So, I found my way here again!!! I have been to the discussions boards once before, but I forgot how to get here (serious swiss cheese memory from MS). I have to save ALL websites that I like to my favorites or I should say 'Bookmarks' or I will probably never find it again. <embarassed>
    **I will tell you a little about me and the use of my mac....... I have Multiple Sclerosis so my husband purchased the lap top to make it easier for me to get online and not be stuck to one chair which makes me hurt bad. I am new to Mac and have always used a PC.
    Anyway, when we purchased it we explained that I would mainly be using it for Internet use and for the pictures that I take (I am disabled, so that is about all I can do but I thoroughly enjoy it), which happens to be more than the average person since I have a new Grandson
    Any help that anyone can give me, I would TRULY APPRECIATE!!!!!!
    Thanks,
    New2Him

    Brenda,
    You're quite welcome.
    That does sound like your original library. It makes sense to me; your husband was probably told to drag it to the Desktop by the Apple help desk person. Look inside your Pictures folder for the other two iPhoto Library folders. If you don't find them there, do another Finder Search. Click once on a found item in the Search window to see its path at the bottom of that window. That should help you locate those folders.
    After you find and rename or delete the other libraries, you will be ready to create a new library. (You might not want to delete those other folders yet - in case some photos are missing from your main library. But if you are sure that nothing in them is original, go ahead and Trash them to free up the space.)
    To create a new library, Option-launch iPhoto and click "Create Library." By default it will be located in your Pictures folder and named "iPhoto Library." You can change the name if you want - say, "iPhoto Library New" before you click "Save." A new, empty library will open. Drag the right corner of the window up so that it fills only about half of your screen. Do iPhoto > Preferences > Advanced and make sure that there IS a check in the boxes beside "Copy files to iPhoto Library folder when importing to library" and "Add ColorSync Profile".
    On the other half of your screen, open a Finder window. Set it to column view and navigate this path: Desktop/ iPhoto Library/ Originals/ 2007/ (Film Roll folders). It is these Film Roll folders that contain your photos. Select all of the Roll folders and drag them as a group over the iPhoto window until the cursor shows you a green plus symbol. Drop them in the main viewing area of the iPhoto window. iPhoto will indicate to you that it is importing. A film roll will be created for each folder that you dragged. [Tip: if you want an Album to represent each film roll, then drag them to the Source Pane (left column) instead of the main viewing window. This will create an Album and a film roll, both with the same name as the imported folder.]
    I have read that the film roll date can be wrong after importing, so you may want to check the dates as you go. Open the Info Pane in the lower left corner of the iPhoto window (click the little i). When you select a Roll, its info will display in the Info Pane. You can edit the Roll's title and date, if you wish.
    When the 2007 rolls have all been imported, switch to the Originals/ 2006 folder, select the roll folders, and drag to your iPhoto window. Repeat for each year in your Desktop library.
    This will recover your Original, unedited photos in the same film rolls as before. What cannot be saved is your Albums, Slideshows, Books, titles, keywords, ratings, and other metadata. These were contained in the database file that was damaged during the iPhoto hang or subsequent hard shut down.
    If you had spent significant time editing your photos, then you may want to have a look in Desktop/ iPhoto Library/ Modified to see if you wish to save any of the edited versions. There is no way to reconnect the edits with their Originals; that info was also stored in the database file. But if you want to import them to your library you may. Be aware that this will cause the appearance of duplication, much like you had in the library your husband created. If you can part with your edited versions, then it is much easier to discard them. (If not, be selective.)
    I'll look forward to hearing your progress. Regards,
    Shelly

  • Would like to get iSight, iChat and Universal Access to work together

    Problem: family member with age-related macular degeneration, form not presently curable. Avid reader, feels isolated unable to do so. Due to age and related problems he's very confused trying to use Universal Access (UA) on ANY size Mac screen, situation in which I suspect he's far from being alone; I also find UA extremely cumbersome and almost unworkable.
    Proposed solution: would like to procure him a second, external iSight camera, mount it on a (powerful) light stand next to a 20" iMac, have that contraption positioned over various paper documents which I propose to then magnify and display on the Mac.
    iChat, unlike PhotoBooth, does not have the ability to flip images and thus render text readable. Also, zoom on iChat inadequate. PhotoBooth use (taking images, flipping, etc) very cumbersome; also, cannot seem to be able to zoom.
    Dedicated CCTV units on the market accomplishing simple video magnification seem outrageously overpriced ($3-4000) and not sure if they have their own unknown issues. They would not afford the potential flexibility of a Mac, accomplishing so many other potential tasks.
    Proposed solution would seem to offer a wealth of possiblities if someone may have an idea how to tie it all together. Anybody?
    iMac   Mac OS X (10.4.7)   Intel

    Thanks for the tip about QuickTime pro.
    I think rather than moving the iSight camera down or up to adjust magnification, that you use Zoom instead.
    Zoom is a lot more user friendly with something like the PowerMate. The hot keys for adjusting magnification are just a little too obscure and awkward for my tastes, but having a dedicated knob takes care of that. We use a single press to toggle inverse on and off. A press and hold to activate/deactivate Zoom altogether. Press and spin to adjust contrast.
    eMac 1.42   Mac OS X (10.4.7)   I paid the going Windows price for a screen reader and got a free computer!

  • MY LAYER STYLES AND PHOTO EFFECTS ARE NOT SHOWING UP WHE I CLICK THE BOX, NO DROP SHADOW, ETC

    MY LAYER STYLES AND PHOTO EFFECTS ARE NOT SHOWING UP WHE I CLICK THE BOX, NO DROP SHADOW, ETC,
    I ALSO GET AN ERROR WHEN I OPEN THE EDITOR ONTITLECREATEWITHPARONS COULD NOT BE LOCATED IN THE DYNAMIC LINK ONCORE2DLL

    Seems like the database has been accidently deleted. Browse here on how to get it back http://forums.adobe.com/thread/759100

  • Trouble with ichat and photoboth

    On second install of family pack leopard 08, ichat and photo booth have only half of the effects installed on the second install,it left off all video backgrounds. First install has full package. I am afraid to reinstall as it may claim one of the five allowable installs, and all are needed in our household. This was a g5 all other models are imac. Also effects on video backgrounds are very torn really unusable on the first install.
    Thanks for any help.

    Ralph:
    Thank you for the information. I am sorry that I have not updated my profile. If I could post on my profile that networking overwhelms me, I would. My firewall is not on (I have had every intention to get that started). I went to set up the firewall and it is asking for information that I just do not know (e.g. DNS Server, Domain, etc.) Should I set it up a particular way?? I have seen some posts recommending PPPoE. Quite honestly, it is Greek to me. I have purchased a book to help me with this information, but I just have not had the time to really read the information (I know that sounds very lazy). I appreciate your help. I have increased the Quicktime streaming rate. We will try again tonight.

  • Backdrops with Sony DV Camcorder in iChat and Photo Booth

    Hello I have found the Backdrops will not work with my DV camcorder, I have seen on apple's iChat page that "Backdrop effects when using a DV camcorder require fixed focus, exposure, and white balance". How do I do that with my camcorder (or can it even be done on most?)

    Hi,
    Do you have an internal iSight as well ? (i.e. not a Mac Mini or Mac Pro)
    Do the Backdrops work for that camera in iChat and Photo Booth ?
    I have a MacBook Pro and it has an Interanl iSight
    I have plugged in an X-Box 360 camera and the current USB 2.0 USB Video Class (UVC) camera I use with my G4 and they work.
    Prior to buying the G4 a USB 2.0 Card and a new camera I was using A Dazzle Hollywood DV Convertor with a older Canon UC600 analogue Camcorder (Converting PAL TV signals to DV then via Firewire to the Computer) and this worked to the MacBook Pro as well
    With that in mid I am not sure it all about the Auto Focus and White Balance other than those can help get the best pictures.
    I would be interested in how the "Video" is getting form camera to computuer ?
    What sort of Signal that is ?
    Whether Backdrops work anyway ?
    7:58 PM Tuesday; July 28, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Using MouseMotionListener in order to have a drag and drop effect

    Hello,
    How is the exact syntax in order for the following code to work even for Drag and Drop effects of the drawn figures.
    package tpi;
    import java.awt.*;
    import java.awt.event.*;
    public class Desenare extends Frame{
         private Panel selPanel;
         private Choice sel;
         private Choice fond;
         private Choice lista;
         private MyCanvas canvas;
         public Desenare(String titlu){
              super(titlu);
              selPanel = new Panel(new GridLayout(6,1));
              Label label1 = new Label("Culoare");
              sel = new Choice();
              sel.addItem("Alb");
              sel.addItem("Albastru");
              sel.addItem("Verde");
              sel.addItem("Negru");
              sel.select(0);
              Label label2 = new Label("Figura");
              lista = new Choice();
              lista.addItem("Dreptunghi");
              lista.addItem("Linie");
              lista.addItem("Cerc");
              lista.select(0);
              Label label3 = new Label("Culoare Fond");
              fond = new Choice();
              fond.addItem("Negru");
              fond.addItem("Verde");
              fond.addItem("Albastru");
              fond.addItem("Alb");
              fond.select(0);
              IL itemListener = new IL();
              sel.addItemListener(itemListener);
              fond.addItemListener(itemListener);
              lista.addItemListener(itemListener);
              selPanel.add(label1);
              selPanel.add(sel);
              selPanel.add(label2);
              selPanel.add(lista);
              selPanel.add(label3);
              selPanel.add(fond);
              selPanel.setBackground(Color.LIGHT_GRAY);
              canvas = new MyCanvas();
              add("West",selPanel);
              add("Center",canvas);
              addWindowListener(new WA());
              setSize(400,300);
              setVisible(true);
         class WA extends WindowAdapter{
              public void windowClosing(WindowEvent e){
                   System.exit(0);
         class IL implements ItemListener{
              public void itemStateChanged(ItemEvent event){
              canvas.repaint();
         Color genCuloare(String culoare){
              Color color;
              if (culoare.equals("Negru")) color = Color.black;
              else if (culoare.equals("Verde")) color = Color.green;
              else if (culoare.equals("Albastru")) color = Color.blue;
              else if (culoare.equals("Alb")) color = Color.white;
              else color = Color.black;
              return color;
         class MyCanvas extends Canvas{
              public void paint(Graphics g){
              String culoare = sel.getSelectedItem();
              Color color = genCuloare(culoare);
              g.setColor(color);
              color = genCuloare(fond.getSelectedItem());
              setBackground(color);
              Dimension dim = getSize();
              int cx = dim.width/2;
              int cy = dim.height/2;
              String figura = lista.getSelectedItem();
              if (figura.equals("Linie"))
              g.drawLine(cx/2,cy/2,3*cx/2,3*cy/2);
              else if (figura.equals("Dreptunghi"))
              g.fillRect(cx/2,cy/2,cx,cy);
              else if (figura.equals("Cerc"))
              g.fillOval(cx/2,cy/2,cx,cy);
              ML listener = new ML();
              canvas.addMouseMotionListener(listener);
              public class ML implements MouseMotionListener{
                   @Override
                   public void mouseDragged(MouseEvent arg0) {
                        // TODO Auto-generated method stub
                   @Override
                   public void mouseMoved(MouseEvent arg0) {
                        // TODO Auto-generated method stub
              public static void main(String []args){
              Desenare d = new Desenare("Desenare 2D");
    Where exactly do i have to add the MouseMotionListener , i guess that i should add it to the canvas , and the inherited metod shoul be modified in order to use canvas.repaint() at the location where the draggin effect has ended, or if there is some other way when i press the mouse on the figure and start moving around to getX() and getY() and use the repaint method at those coordinates , wich is a drag and drop effect , i think that it would be MouseMoved , but i`m not sure, and also not sure how to use the Event Listener , where exactly ?
    Thanks,
    Paul

    When you post a code, use code tags for propere formatting. Click CODE icon on the taskbar for generating code tag pair you need.
    In order to do dragging the figure on the canvas or panel, you should use advanced Java 2D APIs, including Shape and its descendants. Example shown below might help, but beware, this version does not remember previous drag result for a figure over multiple lista Choice selection. Previous drag result is reset for the next selection of the same figure.
    If you want to prevent flickering on the screen while dragging, use javax.swing and its components. If you have to use AWT, draw the figure into an Image or BufferedImage of full panel size and call g2.drawImage() in the paint() method.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.event.*;
    public class Desenare extends Frame{
      private Panel selPanel;
      private Choice sel;
      private Choice fond;
      private Choice lista;
      private MyCanvas canvas;
      Color fcolor, bcolor;
      enum Fig{LINE, RECT, CIRCLE};
      Fig fig;
      int xL0, yL0, xL1, yL1;
      int xR0, yR0, xR1, yR1;
      int xC0, yC0, xC1, yC1;
      int dxL, dyL, dxR, dyR, dxC, dyC;
      Shape shape;
      public Desenare(String titlu){
        super(titlu);
        selPanel = new Panel(new GridLayout(6,1));
        fcolor = bcolor = Color.white;
        dxL = dyL = dxR = dyR = dxC = dyC = 0;
        Label label1 = new Label("Culoare");
        sel = new Choice();
        sel.addItem("Alb");
        sel.addItem("Albastru");
        sel.addItem("Verde");
        sel.addItem("Negru");
        sel.select(0);
        Label label2 = new Label("Figura");
        lista = new Choice();
        lista.addItem("Dreptunghi");
        lista.addItem("Linie");
        lista.addItem("Cerc");
        lista.select(0);
        Label label3 = new Label("Culoare Fond");
        fond = new Choice();
        fond.addItem("Alb");
        fond.addItem("Albastru");
        fond.addItem("Verde");
        fond.addItem("Negru");
        fond.select(0);
        IL itemListener = new IL();
        sel.addItemListener(itemListener);
        fond.addItemListener(itemListener);
        lista.addItemListener(itemListener);
        selPanel.add(label1);
        selPanel.add(sel);
        selPanel.add(label2);
        selPanel.add(lista);
        selPanel.add(label3);
        selPanel.add(fond);
        selPanel.setBackground(Color.LIGHT_GRAY);
        canvas = new MyCanvas();
        add(selPanel, BorderLayout.WEST);
        add(canvas, BorderLayout.CENTER);
        addWindowListener(new WA());
        setSize(400, 300);
        setVisible(true);
      class WA extends WindowAdapter{
        public void windowClosing(WindowEvent e){
          System.exit(0);
      class IL implements ItemListener{
        public void itemStateChanged(ItemEvent event){
          Object o = event.getSource();
          if (o == sel){
            String culoare = sel.getSelectedItem();
            fcolor = genCuloare(culoare);
            canvas.repaint();
          else if (o == fond){
            bcolor = genCuloare(fond.getSelectedItem());
            canvas.setBackground(bcolor);
          else if (o == lista){
            String figura = lista.getSelectedItem();
            if (figura.equals("Linie")){
              fig = Fig.LINE;
            else if (figura.equals("Dreptunghi")){
              fig = Fig.RECT;
            else if (figura.equals("Cerc")){
              fig = Fig.CIRCLE;
            shape = prepareShape(fig);
            canvas.repaint();
      Shape prepareShape(Fig fig){
        Shape shape = null;
        if (fig == Fig.LINE){
          shape = new Line2D.Float(xL0, yL0, xL1, yL1);
        else if (fig == Fig.RECT){
          shape = new Rectangle2D.Float(xR0, yR0, xR1, yR1);
        else if (fig == Fig.CIRCLE){
          shape = new Ellipse2D.Float(xC0, yC0, xC1, yC1);
        return shape;
      Shape prepareShapeDrag(Fig fig){
        Shape shape = null;
        if (fig == Fig.LINE){
          shape = new Line2D.Float(xL0 + dxL, yL0 + dyL, xL1 + dxL, yL1 + dyL);
        else if (fig == Fig.RECT){
          shape = new Rectangle2D.Float(xR0 + dxR, yR0 + dyR, xR1, yR1);
        else if (fig == Fig.CIRCLE){
          shape = new Ellipse2D.Float(xC0 + dxC, yC0 + dyC, xC1, yC1);
        return shape;
      Color genCuloare(String culoare){
        Color color;
        if (culoare.equals("Negru")){
          color = Color.black;
        else if (culoare.equals("Verde")){
          color = Color.green;
        else if (culoare.equals("Albastru")){
          color = Color.blue;
        else if (culoare.equals("Alb")){
          color = Color.white;
        else{
          color = Color.black;
        return color;
      class MyCanvas extends Canvas{
        public MyCanvas(){
          setBackground(Color.white);
          ML ml = new ML();
          addMouseListener(ml);
          addMouseMotionListener(ml);
        public void paint(Graphics g){
          Graphics2D g2 = (Graphics2D)g;
          setCoords();
          g2.setPaint(fcolor);
          if (shape != null){
            g2.draw(shape);
            g2.fill(shape);
        void setCoords(){
          int w = getWidth();
          int h = getHeight();
          xL0 = w / 4;
          yL0 = h / 4;
          xL1 = xL0 * 3;
          yL1 = yL0 * 3;
          xC0 = xR0 = xL0;
          yC0 = yR0 = yL0;
          xC1 = xR1 = w / 2;
          yC1 = yR1 = h / 2;
      public class ML extends MouseInputAdapter{
        Shape s = null;
        Point p0 = null;
        Point p1 = null;
        @Override
        public void mousePressed(MouseEvent e) {
          double dist = 0.0;
          p0 = p1 = e.getPoint();
          if (shape instanceof Line2D){
            dist = ((Line2D)shape).ptSegDist(p0);
            if (dist < 2){
              s = shape;
            else{
              s = null;
          else{
            if (shape.contains(p0)){
              s = shape;
            else{
              s = null;
        @Override
        public void mouseDragged(MouseEvent e) {
          int dx, dy;
          if (s != null){
            p0 = p1;
            p1 = e.getPoint();
            dx = p1.x - p0.x;
            dy = p1.y - p0.y;
            if (s instanceof Line2D){
              dxL += dx;
              dyL += dy;
            else if (s instanceof Rectangle2D){
              dxR += dx;
              dyR += dy;
            else if (s instanceof Ellipse2D){
              dxC += dx;
              dyC += dy;
            shape = Desenare.this.prepareShapeDrag(fig);
            canvas.repaint();
      public static void main(String []args){
        Desenare d = new Desenare("Desenare 2D with Dragging support");
    }

Maybe you are looking for

  • After updating IOS 7 i can't open Itunes Store on my Iphone anymore

    After updating IOS 7 i can't open Itunes Store anymore.

  • Replication Issue

    Hello all, I am checking the replication status of two master instances.Both are showing 209 pending changes from 201:48:55 in DSCC.(Directory control center) The replication tab says "Replication idle".I dont see any errors in the error logs for bot

  • I try to install my CS 5 Photoshop program and it won't open.

    I install my CS 5 Photoshop program and an error comes up in the install section. When I go to open the program an error shows up stating "Could not initialize Photoshop because the preferences file was invalid (it has been deleted)". How did this ha

  • How do I minimize memory usage?

    I'm relatively new to the computer world and really don't know hardly anything... but i have a "iStat Nano" widget that tells me how much memory i have left... i have 2gb of memory on this (15" macbook pro) and there was only about 19 to 11mb left!!!

  • Exclamation Point when editing

    Recently I have started getting a black screen with a large exclamation point when I try to edit certain pictures. Don't know why this is happening. Any ideas what I am doing wrong?