Dragging duplicate problem

hi guys! i have been trying to figure out the problem wif my
flash of able to drag duplicated clips and thanks those experts who
helped me. Until now i still unable to slove my problem. Hope
someone can help me wif my problem!
My problem:
1. Unable to move duplicated clips (due to after duplicate
clips the previous identifier was deleted away)as how can i able to
move both previous and recently clips which can able me to either
delete of flip my selected clip.
Below is my fla of my project:
http://www.picassocoffee.com/EG1009_lab2_test.fla

thanks kglad! thanks a million!!!

Similar Messages

  • Hi duplicate problem

    Hi,
    I have a very big duplicate problem.
    I only have +- 1900 contacts but there are now 21500 contacts in my icloud contacts.
    I tried to delete all but it does not work,
    Then I tried to delete the folders
    Then I sat here for almost one day trying to delete one by one, but when I restart my phone and lap top they are all back?
    Can icloud support delete all the unnecessary ones perhaps please?
    I live in Thailand; does support have an email address?
    How does one actually contact them with future problems?

    The following link has a section "Troubleshooting duplicates with iCloud Contacts" that may help: http://support.apple.com/kb/ts3998
    The main support page is https://www.apple.com/support/contact/  -- I suspect but cannot verify that will automatically direct you for your country.

  • Drag & Drop Problem

    Hi,
    I've got a drag and drop pyramid and the aim is to drop words
    in to the correct section of the pyramid. The problem is if the
    target area for one of the drag objects is the bottom section, then
    you cannot have another drag object to go to that section. anyone
    know a way around this, or how to use the same taget for more than
    one object.
    thanks

    Hi,
    I've got a drag and drop pyramid and the aim is to drop words
    in to the correct section of the pyramid. The problem is if the
    target area for one of the drag objects is the bottom section, then
    you cannot have another drag object to go to that section. anyone
    know a way around this, or how to use the same taget for more than
    one object.
    thanks

  • Transferring, converting and duplicate problems.

    Please please bare with me with my questions, and keep in mind I'm okay with computers but not an expert by any means.
    I have been packing around an external hard drive for several years now with aprox 70gb of music and audio books.
    I am on the road all summer and decided I just want all my audio with me instead of being in the mood for a certain genre of music and not having it with me.
    So I have recently purchased the 160gb iPod.
    I'm excited to get everything transferred over but I'm running into a few hair pulling problems.
    A lot of my music on the hard drive was copied onto my computer years ago via windows media. So iTunes needs to convert these.. Which I think is working okay.. But I do get a lot of duplicates in my library. (Copies of the same song will either be lightly texted, and then solid black. They all appear to play. So I'll go through and delete say the lightly texted ones. (This happens if I choose the solid black ones too) I have them removed from iTunes but not perm from my computer...because im too scared of doing perm damage to my music library With not being 100% sure where these are perm removing it from.
    HOWEVER, while I was doing this and thinking it was going along great, I started noticing it would delete my entire album I was working on! I was only deleted what I thought was duplicates and leaving a set of tracks in the album and the entire thing would disappear from my iTunes.
    THis has also happened when I have deleted the "broken" tracks. The ones with ! Next to the song. I'll have the track fixed under it which plays, but once I delete the broken track, even the good track disappears.
    i have several problems but this one is killing me. I have too much music and way to small of a hard drive on my pc to have it duplicating songs. And too much music to go back ripping the songs to Apple from the original cds.
    Help!

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    See also Make a split library portable.
    tt2

  • PSE7 with Windows 7 - Drag & Drop Problems

    Hello,
    have some people experince in PSE 7 with OS Windows 7?
    I have some problems with the Drag & Drop function. If I drag a picturce from the explorer into PSE7, PSE7 freeze and need two minutes to come back. Have somebody any idea / solution?
    --> No updates available for the product (PSE7)
    Greetings Daniel

    Hi, It works good for me. can you please make sure that the file you are dragging is not too large or is not currupt. can you please confirm that it is opening fine in other applications like Windows picture viewer?

  • Another RMAN duplicate problem - RAC database to single instance

    Hi,
    I have a problem with the RMAN duplicate procedure and was hoping someone can help.
    I would like to create a duplicate of our production RAC database on a separate, stand-alone, database server on another site. This duplicate will be used for intensive querying by another business unit who I don't want to have access to our production database.
    My procedure goes like this:
    1. Create a disk (not ASM) based backup of the datafiles and any archived redo logs:
    "run {
    allocate channel d1 type disk;
    backup format '/u02/stage/df_t%t_s%s_p%p' database plus archivelog delete input;
    release channel d1;
    2. Tar and scp these files to the same location on the stand-alone database server.
    3. In the meantime, work has been happening on the production database and further archived redo logs have been generated. I don't really care about these logs for the purposes of the duplicate however, I just want to duplicate to the point of the recent backup. To do this, I run the following SQL to determine the sequence number that I should be duplicating up to:
    "select max(sequence#), thread# from v$archived_log where deleted='YES' group by thread#;"
    4. Duplicate the production database to the stand-alone database (all the SQL Net stuff is working).
    "run {
    set until sequence (value returned by above SQL statement);
    duplicate target database to XXX;
    However, my problem arises because I don't know how to handle the fact that there are two threads. I understand that each thread relates to one of the RAC instances, I just don't know which one to specify for the duplicate. We have a database service which the client application connects through, and that service runs on on or other of the instances. Should I just care about the logs from the instance where the service is currently running?
    Am I even approaching this is the correct way?
    I look forward to any help that people may be able to offer.
    Regards,
    Phil

    Hi Werner,
    Thanks again for your help, there is still something wrong though. "list backup of archivelog all;" shows:
    BS Key Size Device Type Elapsed Time Completion Time
    3784 202.34M DISK 00:00:08 28-OCT-09
    BP Key: 3784 Status: AVAILABLE Compressed: NO Tag: TAG20091028T111718
    Piece Name: /u02/stage/df_t701435838_s3820_p1
    List of Archived Logs in backup set 3784
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 9746 569095777 28-OCT-09 569150229 28-OCT-09
    1 9747 569150229 28-OCT-09 569187892 28-OCT-09
    1 9748 569187892 28-OCT-09 569231956 28-OCT-09
    1 9749 569231956 28-OCT-09 569259816 28-OCT-09
    2 7931 569095774 28-OCT-09 569187902 28-OCT-09
    2 7932 569187902 28-OCT-09 569259814 28-OCT-09
    BS Key Size Device Type Elapsed Time Completion Time
    3787 1.04M DISK 00:00:02 28-OCT-09
    BP Key: 3787 Status: AVAILABLE Compressed: NO Tag: TAG20091028T112222
    Piece Name: /u02/stage/df_t701436142_s3823_p1
    List of Archived Logs in backup set 3787
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 9750 569259816 28-OCT-09 569261110 28-OCT-09
    2 7933 569259814 28-OCT-09 569261108 28-OCT-09
    You can see that the highest sequence number is 9750 of thread 1, and that the Low and Next SCNs are 569259816 and 56926111. However, when I look at the output of the RMAN duplicate command:
    contents of Memory Script:
    set until scn 569505448;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 28-OCT-09
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=39 devtype=DISK
    starting media recovery
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 4 needs more recovery to be consistent
    ORA-01110: data file 4: '/u02/sca-standby/data/users.260.623418479'
    RMAN-03002: failure of Duplicate Db command at 10/28/2009 16:12:55
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 2 seq 7936 lowscn 569411744 found to restore
    RMAN-06025: no backup of log thread 2 seq 7935 lowscn 569321987 found to restore
    RMAN-06025: no backup of log thread 2 seq 7934 lowscn 569261108 found to restore
    RMAN-06025: no backup of log thread 1 seq 9758 lowscn 569471890 found to restore
    RMAN-06025: no backup of log thread 1 seq 9757 lowscn 569440076 found to restore
    RMAN-06025: no backup of log thread 1 seq 9756 lowscn 569411439 found to restore
    RMAN-06025: no backup of log thread 1 seq 9755 lowscn 569378529 found to restore
    RMAN-06025: no backup of log thread 1 seq 9754 lowscn 569358970 found to restore
    RMAN-06025: no backup of log thread 1 seq 9753 lowscn 569321882 found to restore
    RMAN-06025: no backup of log thread 1 seq 9752 lowscn 569284238 found to restore
    RMAN-06025: no backup of log thread 1 seq 9751 lowscn 569261110 found to restore
    you can see that something is setting the recovery SCN to 569505448 which higher even then any of the archived logs mentioned above. If I select current_scn from the production database, this gives me 569528258 which is closer to the value which RMAN is expecting to recover to than any of the archived redo logs.
    Can you think what might be causing RMAN to try to recover to this value? and why does it appear to be ignoring the SET UNTIL SEQUENCE command?
    Cheers,
    Phil

  • Duplicate Problems (RMAN is looking at the wrong backup)

    We are running into a problem when we try to duplicate our database. Here is the process we use to duplicate:
    delete old backup files (we only use RMAN for cloning so we don't need them)
    set prod db environment variables<run rman
    connect target sys/####;
    backup database;
    exit;
    set test db environment variables<shutdown test database, rename test db folder (in case we missed getting something important out) create a new folder for test db.
    start test db (nomount)
    rman
    connect target sys/####@PROD
    connect auxiliary sys/####@TEST
    run
    allocate auxiliary channel disk1 type disk;
    duplicate target database to TEST;
    we get this error:
    channel disk1: reading from backup piece E:\RMAN\PROD\BKUP_PROD_610891176_1
    ORA-19870: error reading backup piece E:\RMAN\PROD\BKUP_PROD_610891176_1
    ORA-19505: failed to identify file "E:\RMAN\PROD\BKUP_PROD_610891176_1"
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    failover to previous backup
    The backup file RMAN is trying to read is the backup from our previous clone. How can I tell RMAN to look at the backup we just made?
    I've run "list backup;" and the most recent backup is shown there. We've run into this problem a couple of times now, but not everytime. I can't find any rhyme or reason for why it works or fails but the process is the same sometimes we can just wait a half-hour or an hour and it works. Anyone have any ideas that could help?
    BTW - We aren't using a recovery catalog.

    http://dbataj.blogspot.com/2006/12/duplicating-database-with-recovery.html

  • Duplicates problem in Illustrator CS5

    I just bought and installed CS5 Production Premium on my iMac. When I started to use Illustrator, whenever I would try to move an object, it would duplicate it, instead of moving it. I tried sifting through preferences and setting, but couldn't seem to find anything. I am an intermediate user in Illustrator, and I have never encountered this before. I also tried installing the updates to version 15.0.2, but that didn't help. I even disconnected the keyboard in case it had a sticky key, but that didn't solve it either. It is difficult to do my design work when I can't move any object without duplicating it.
    Has anyone else encountered this problem? I'd appreciate any help I can get on the subject.
    Oh and I have the student version, but I don't think that should make much of a difference. Thanks!

    For some reason I couldn't find those threads before, but I searched again and found them:
    http://forums.adobe.com/thread/774052?tstart=120
    As it turned out, I was in need of a driver update on our Wacom Tablet.
    Thanks for the help!

  • Drag & relate problem in Query Iview

    Hi,
    I just trying the weblog
    1-2-3 Drag&Relate (or D&R for dummies)
    So all the steps mentioned in that i have followed properly but in Content Admin --> unification under Business Objects i do get sales and stores and i define them according to weblog as source and destination but under edit mode Relation Type is Empty which i think should be manual or something and all the other things are same as shown is screen-shot of the weblog and also in the enduser screen i get message
    <b>Query execution failed. Exception message: Error trying to execute a query statement against MetaMatrix: Error trying to establish connection to the EIS : null</b>
    So i have no clue what could be possible problem
    Kindly Help
    Regards,
    Ricky

    Hi shivasankaran ,
    we also face this problem some times. at this particular issue...
    we should make report 4r month  wise only y because our excel sheet contains 65000 lines limit if ur drilling down more fields
    from free characterisitc. it cant display.
    IF ur case is mandetory to drag 2moths r 3months. just try to reduce drill down fields (r) if this also mandetory, use 2010 microsoft sheet 4r reporting this can use up to 1lac line.
    if this also not working. just do this, let me give one example if we r drilling down material & customers 4r   3-4months. one customer can buy N number of material so it will eceeds. just see wht ur  drilling down first material (r) customer. if first material & customer this is not working, drill customer & material.
    think this will help, any way let me know wht happen.
    Regard's
    venky

  • Drag/Copy problems

    Having some problems with Leopard (10.5.4 on a 2 GHz Core 2 Duo Macbook)
    1. I cannot drag files anywhere at all (the icon will not move). I can, however, move files in terminal using mv. Drag works for highlighting but not for moving anything (can't drag images from web browser, can't rearrange icons in dock, can't drag in iTunes, etc).
    2. I cannot copy/paste or cut/paste. Cut works, but paste doesn't. I've tried using keyboard shortcuts as well as using the menu.
    I'm using an administrator account. I tried making a fresh user account but the problem existed there too.
    To troubleshoot I've tried repairing permissions (it found some that were wrong and fixed them, but didn't solve the problem), and tried deleting .DS_store files using Onyx (and then restarting, or course). Neither had any effect. Ran Software Update but I'm all up to date.
    The problems began after I adjusted the trackpad settings in System Preferences. I returned them to what they were before, but this didn't fix anything either.
    Help? I'd like to avoid reinstalling the OS if possible...

    Since a new user produced the same results, the problem is systemwide. You may be able to repair this with the 10.5.4 Combo Update This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before.
    Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
    -mj

  • Drag & drop problems

    I have a Mac Pro, with macos 10.8.3. Drag and drop does not work in the Finder, the icon will stick to the cursor when the mouse button is returned to its original place. The functionality is restored after a reboot, but not for long.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, or by a peripheral device.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Java rotate, drag RoundRectangle2D problem please help me!!!

    Hi,
    i have 2 program, the first program can rotate a RoundRectangle2D, and the secend program can create new RoundRectangle2D and drag them around.
    The problem is that i want the rotate and the drag functions in one file, could any wone plese help me with this??
    The code has been orginally written by phillips75. i have modified it.
    The first program that rotates a Rectangle2D
    package appli;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class minappli extends JApplet
    Vector shape = new Vector();
    class axel extends JPanel
    axel selectedRect;
    //RoundRectangle2D r;
    RectangularShape r;
    RectangularShape rsss;
    AffineTransform xform;
    int theta;
    public axel()
    shape.addElement(new axel(40, 50, 50, 60));
    shape.addElement(new axel(150, 100, 50, 60));
    shape.addElement(new axel(40, 150, 50, 60));
    setBackground(Color.white);
    addMouseListener(new RectSelector(this));
    public axel (int x, int y, int w, int h)
    r = new RoundRectangle2D.Double(x, y, w, h, 20, 20);
    xform = new AffineTransform();
    theta = 0;
    public void drawdd (Graphics2D g2)
    AffineTransform orig = g2.getTransform();
    if (!xform.isIdentity())
    g2.setTransform(xform);
    g2.draw(r);
    g2.setTransform(orig);
    public void rotateRect()
    double cx = r.getCenterX();
    double cy = r.getCenterY();
    theta = theta + 5;
    xform.setToRotation(Math.toRadians(theta), cx, cy);
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    //int w = getWidth();
    //int h = getHeight();
    axel rs;
    for(int i = 0; i < shape.size(); i++)
    rs = (axel) shape.get(i);
    // System.out.println(" rs " + rs + " rsss " + konam);
    if (rs == selectedRect)
    g2.setPaint(Color.yellow);
    else
    g2.setPaint(Color.black);
    rs.drawdd(g2);
    class RectSelector extends MouseInputAdapter
    axel rotationPanel;
    RectangularShape selectedShape;
    axel rs;
    Point start, offset;
    boolean addCircle, addSquare, dragging;
    final int size = 50;
    public RectSelector(axel fp)
    rotationPanel = fp;
    offset = new Point();
    addCircle = false;
    addSquare = false;
    dragging = false;
    public void mousePressed(MouseEvent e)
    RectangularShape rssss = null;
    Point p = e.getPoint();
    rssss = new RoundRectangle2D.Double(p.x - size / 2, p.y - size / 2, size, size, 20, 20);
    for (int i = 0; i < shape.size(); i++)
    rs = (axel) shape.get(i);
    //System.out.println("rs" + rs);
    if (rs.r.contains(p))
    selectedRect = rs;
    repaint();
    break;
    public void mouseReleased(MouseEvent e)
    selectedShape = null;
    dragging = false;
    public void mouseDragged(MouseEvent e)
    if (dragging)
    Point p = e.getPoint();
    if (selectedShape != null)
    // dragging a shape
    Rectangle r = selectedShape.getBounds();
    r.x = p.x - offset.x;
    r.y = p.y - offset.y;
    selectedShape.setFrame(r);
    rotationPanel.repaint();
    public JPanel getUIpanelg()
    final JButton rotateButton = new JButton("Rotate");
    final JButton box = new JButton("Box");
    rotateButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == rotateButton)
    selectedRect.rotateRect();
    repaint();
    JPanel panel = new JPanel();
    panel.add(rotateButton);
    panel.add(box);
    return panel;
    public void init()
    axel rp = new axel();
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(rp.getUIpanelg(), "South");
    cp.add(rp);
    public static void main(String[] args)
    JApplet applet = new minappli();
    JFrame f = new JFrame("Test");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(applet);
    f.setSize(400,300);
    f.setLocation(200,200);
    applet.init();
    f.setVisible(true);
    The second program that creates new Rectangle2D and drags it around
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.*;
    public class axel extends JApplet
    Vector shape = new Vector();
    int theta;
    RoundRectangle2D r;
    AffineTransform xform;
    class axel1 extends JPanel
    axel1 selectedRect;
    RectSelector action;
    public axel1()
    //shape.addElement(new axel1(40, 50, 50, 60));
    //shapeList.addElement(new FlowPanel(150, 100, 50, 60));
    //shapeList.addElement(new FlowPanel(40, 150, 50, 60));
    setBackground(Color.white);
    action = new RectSelector(this);
    addMouseListener(action);
    addMouseMotionListener(action);
    public void drawdd (Graphics2D g2)
    AffineTransform orig = g2.getTransform();
    if (!xform.isIdentity())
    g2.setTransform(xform);
    g2.draw(r);
    g2.setTransform(orig);
    public axel1 (int x, int y, int w, int h)
    r = new RoundRectangle2D.Double(x, y, w, h, 20, 20);
    xform = new AffineTransform();
    theta = 0;
    public void rotateRect()
    double cx = r.getCenterX();
    double cy = r.getCenterY();
    System.out.println("fffffffffffff");
    theta = theta + 5;
    xform.setToRotation(Math.toRadians(theta), cx, cy);
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    RoundRectangle2D rs;
    for (int i = 0; i < shape.size(); i++)
    //rs = (RectangularShape) shape.get(i);
    g2.draw((RectangularShape) shape.get(i));
    //rs = (axel1) shape.get(i);
    //System.out.println("skapar " + i + "hahaaha " + rs);
    //if (rs == selectedRect)
    // g2.setPaint(Color.red);
    //else
    // g2.setPaint(Color.black);
    public void clear()
    shape.clear();
    repaint();
    class RectSelector extends MouseInputAdapter
    axel1 rotationPanel;
    RectangularShape selectedShape;
    final int size = 50;
    Point start, offset;
    boolean addCircle, addSquare, dragging;
    axel1 rs;
    public RectSelector(axel1 fp)
    // lista = (Vector) flowPanel.getShapeList();
    shape.addElement(new RoundRectangle2D.Double(40, 50, 50, 60, 20, 20));
    rotationPanel = fp;
    offset = new Point();
    addCircle = false;
    addSquare = false;
    dragging = false;
    public void mousePressed(MouseEvent e)
    RectangularShape rssss = null;
    Point p = e.getPoint();
    if (addCircle)
    rssss = new Ellipse2D.Double(p.x - size / 2, p.y - size / 2, size, size);
    if (addSquare)
    rssss = new RoundRectangle2D.Double(p.x - size / 2, p.y - size / 2, size, size, 20, 20);
    if (rssss != null)
    shape.addElement(rssss);
    rotationPanel.repaint();
    addCircle = addSquare = false;
    return;
    // or are we selecting an existing shape to drag
    for (int i = 0; i < shape.size(); i++)
    rssss = (RectangularShape) shape.get(i);
    if (rssss.contains(p))
    System.out.println("nu " + i + " " + rssss);
    selectedShape = rssss;
    Rectangle r = rssss.getBounds();
    offset.x = p.x - r.x;
    offset.y = p.y - r.y;
    dragging = true;
    break;
    public void mouseReleased(MouseEvent e)
    selectedShape = null;
    dragging = false;
    public void mouseDragged(MouseEvent e)
    if (dragging)
    Point p = e.getPoint();
    if (selectedShape != null)
    // dragging a shape
    Rectangle r = selectedShape.getBounds();
    r.x = p.x - offset.x;
    r.y = p.y - offset.y;
    selectedShape.setFrame(r);
    rotationPanel.repaint();
    public JToolBar getToolBar()
    JToolBar toolBar = new JToolBar();
    ActionListener l = new ActionListener()
    public void actionPerformed(ActionEvent e)
    JButton button = (JButton) e.getSource();
    String ac = button.getActionCommand();
    if (ac.equals("Single arrow"))
    addCircle = true;
    if (ac.equals("Box"))
    addSquare = true;
    if (ac.equals("Clear"))
    rotationPanel.clear();
    if (ac.equals("Rotate"))
    //double cx = r.getCenterX();
    //double cy = r.getCenterY();
    System.out.println("fffffffffffff");
    //theta = theta + 5;
    //xform.setToRotation(Math.toRadians(theta), cx, cy);
    // repaint();
    JButton button = makeButton("Single arrow", "Add a arrow", l);
    toolBar.add(button);
    button = makeButton("Box", "Add a box", l);
    toolBar.add(button);
    button = makeButton("Clear", "Clears everything", l);
    toolBar.add(button);
    button = makeButton("Rotate", "Rotate a shape", l);
    toolBar.add(button);
    return toolBar;
    private JButton makeButton(String actionCommand, String toolTipText, ActionListener l)
    JButton button = new JButton(actionCommand);
    button.setActionCommand(actionCommand);
    button.setToolTipText(toolTipText);
    button.addActionListener(l);
    return button;
    public void init()
    axel1 flowPanel = new axel1();
    RectSelector action = flowPanel.action;
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(action.getToolBar(), "South");
    cp.add(flowPanel);
    public static void main(String[] args)
    JApplet applet = new axel();
    JFrame f = new JFrame("test");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(applet);
    f.setSize(500, 400);
    f.setLocation(200, 200);
    applet.init();
    f.setVisible(true);
    The

    New code:
    Class Arrow
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GraphicArrow  extends JComponent
        GeneralPath arrow   =  new GeneralPath();
        Stroke dashStroke   =  new BasicStroke(1, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 10f, new float[] {4f, 4f}, 0f);
        Paint gradientPaint =  new GradientPaint(-30, 0, Color.red, 10, 0, Color.yellow);
        GraphicArrow selectedArrow;
        public void paintComponent(Graphics _g)
            super.paintComponent(_g);
            Graphics2D g2 = (Graphics2D) _g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                               RenderingHints.VALUE_ANTIALIAS_ON);
            AffineTransform graphicsDefaultTransform = g2.getTransform();
            AffineTransform xform = new AffineTransform();
            Rectangle bounds = arrow.getBounds();
            Point startPoint = new Point();
            xform.translate(startPoint.x - bounds.x, startPoint.y - bounds.y);
            //g2.transform(xform);
            //g2.setStroke(dashStroke);
            //g2.draw(arrow);
             //g2.setTransform(graphicsDefaultTransform);
            //g2.transform(xform);
            //g2.setPaint(gradientPaint);
            //g2.fill(arrow);
            xform.translate(bounds.width + 20, 0);
            xform.translate(bounds.width + 20, 0);
            //g2.setTransform(graphicsDefaultTransform);
            g2.setPaint(gradientPaint);
            g2.transform(xform);
            g2.rotate(Math.PI / 1);
            g2.fill(arrow);
        public GraphicArrow (int x, int y)
            //Value before -20, -10
            arrow.moveTo(x, y);
            arrow.lineTo(0, -10);
            arrow.lineTo(0, -20);
            arrow.lineTo(20, 0);
            arrow.lineTo(0, 20);
            arrow.lineTo(0, 10);
            arrow.lineTo(-20, 10);
            arrow.lineTo(-20, -10);
            addMouseListener(new MouseAdapter()
                Rectangle hitRect = new Rectangle(0, 0, 5, 5);
                public void mouseClicked(MouseEvent e)
                    Graphics2D g = (Graphics2D) getGraphics();
                    AffineTransform xform = new AffineTransform();
                    hitRect.x = e.getX();
                    hitRect.y = e.getY();
                    Rectangle bounds = arrow.getBounds();
                    Point startPoint = new Point();
                    //System.out.println("hh " + (bounds.x  ) );
                    xform.setToTranslation(startPoint.x - bounds.x + 2 * bounds.width + 2 * 20, startPoint.y - bounds.y);
                    xform.rotate(Math.PI / 1);
                    g.setTransform(xform);
                    if (g.hit(hitRect, arrow, false))
                        System.out.println("Traff " + xform);
        public static void main(String args[])
            Frame frame = new Frame("Arrow");
            frame.add(new GraphicArrow(0, 0));
            frame.setBackground(Color.white);
            frame.setSize(new Dimension(400, 350));
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    }The shape class:
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    import java.awt.*;
    public class Box extends JApplet
        Vector shape      = new Vector();
        Vector arrowArray = new Vector();
        int theta;
        class axel extends JPanel implements KeyListener
            GeneralPath arrow   = new GeneralPath();
            Stroke dashStroke   = new BasicStroke(1, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 10f, new float[] {10f, 10f}, 5f);
            Paint gradientPaint = new GradientPaint( -30, 0, Color.red, 10, 0, Color.yellow);
            boolean delete_box, addSquare, addArrow, dragging;
            axel selectedRect;
            RectangularShape boxen;
            AffineTransform xform;
            RectSelector action;
            String texten;
            public axel()
                shape.addElement(new axel("Text1", 40, 50, 50, 60));
                shape.addElement(new axel("Text2", 150, 100, 50, 60));
                shape.addElement(new axel("Text3", 40, 150, 50, 60));
                setBackground(Color.white);
                action = new RectSelector(this);
                addMouseListener(action);
                addMouseMotionListener(action);
                addKeyListener(this);
            public axel(String text, int x, int y, int w, int h)
                texten = text;
                boxen  = new RoundRectangle2D.Double(x, y, w, h, 20, 20);
                xform  = new AffineTransform();
                theta  = 5;
            public void rita(Graphics2D g2)
                double cx = boxen.getCenterX();
                double cy = boxen.getCenterY();
                int mus_x =(int) cx;
                int mus_y =(int) cy;
                AffineTransform orig = g2.getTransform();
                if (!xform.isIdentity())
                    g2.setTransform(xform);
                g2.fill(boxen);
                g2.setColor(Color.black);
                g2.setFont(new Font("Helvetica", Font.BOLD, 12));
                g2.drawString(texten, mus_x + -11, mus_y + 5);
                g2.draw(boxen);
                g2.setTransform(orig);
            public void paintComponent(Graphics g)
               super.paintComponent(g);
               Graphics2D g2 = (Graphics2D) g;
               Image bild = getImage(getDocumentBase(), "images.jpg");
               g2.drawImage(bild, 0, 0, this);
               g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                   RenderingHints.VALUE_ANTIALIAS_ON);
               //Draw the Shapes
               for (int i = 0; i < shape.size(); i++)
                   axel rsh = (axel) shape.get(i);
                   if (rsh == selectedRect)
                       g2.setStroke(dashStroke);
                       g2.setPaint(Color.green);
                   else
                       g2.setStroke(new BasicStroke(0));
                       g2.setPaint(Color.yellow);
                   rsh.rita(g2);
               //Draw the Arrows
               for (int i = 0; i < arrowArray.size(); i++)
                   GraphicArrow selectedArrow;
                   GraphicArrow arrowen = (GraphicArrow) arrowArray.get(i);
                   arrowen.paintComponent(g);
            public void resizen()
                Rectangle r      = boxen.getBounds();
                double    width  = boxen.getWidth()+2;
                double    height = boxen.getHeight()+2;
                boxen.setFrame(r.x, r.y, width, height);
            public void rotateRect()
                double cx = boxen.getCenterX();
                double cy = boxen.getCenterY();
                theta = theta - 5;
                xform.setToRotation(Math.toRadians(theta), cx, cy);
            public void rotateRect_right()
                double cx = boxen.getCenterX();
                double cy = boxen.getCenterY();
                theta = theta + 5;
                xform.setToRotation(Math.toRadians(theta), cx, cy);
            public void keyPressed(KeyEvent e) {
                System.out.println("Test1");
                if (e.isShiftDown()) {
                    System.out.println("Test3");
                if (e.getKeyCode() == KeyEvent.VK_DELETE) {
                    System.out.println("Test2");
            public void keyReleased(KeyEvent e) {
            public void keyTyped(KeyEvent e) {
            class RectSelector extends MouseInputAdapter {
                axel rotationPanel;
                RectangularShape selectedShape;
                axel rs;
                Point offset;
                final int size = 50;
                public RectSelector(axel fp)
                    rotationPanel  = fp;
                    offset         = new Point();
                    delete_box     = false;
                    addSquare      = false;
                    addArrow       = false;
                    dragging       = false;
                public void mousePressed(MouseEvent e) {
                    Point p = e.getPoint();
                    //New Box skapas
                    if (addSquare)
                      shape.addElement(new axel("text5", p.x, p.y, 50, 60));
                      rotationPanel.repaint();
                      addSquare = false;
                      return;
                    //New Arrow skapas
                    if (addArrow)
                      arrowArray.addElement(new GraphicArrow(p.x, p.y));
                      rotationPanel.repaint();
                      addArrow = false;
                      return;
                    for (int i = 0; i < shape.size(); i++)
                        rs = (axel) shape.get(i);
                        if (rs.boxen.contains(p))
                            if (delete_box) {
                                shape.removeElementAt(i);
                                delete_box = false;
                                repaint();
                            Rectangle r = rs.boxen.getBounds();
                            offset.x = p.x - r.x;
                            offset.y = p.y - r.y;
                            selectedRect = rs;
                            selectedShape = rs.boxen;
                            dragging = true;
                            repaint();
                        //else
                        //    System.out.println("press does not work " + delete_box + i + rs.boxen.contains(p));
                public void mouseReleased(MouseEvent e)
                    int x = e.getX();
                    int y = e.getY();
                    selectedShape = null;
                    dragging = false;
                    setCursor(new Cursor(Cursor.DEFAULT_CURSOR) );
                    //Graphics2D g3  = (Graphics2D) getGraphics();
                    //g3.setStroke(new BasicStroke(0));
                    //g3.setPaint(Color.yellow);
                public void mouseDragged(MouseEvent e)
                    if (dragging) {
                        Point p = e.getPoint();
                        if (selectedShape != null) {
                            setCursor(new Cursor(Cursor.MOVE_CURSOR) );
                            Rectangle r = selectedShape.getBounds();
                            System.out.println("dragging " + p + p.x + " " + p.y);
                            r.x = p.x - offset.x;
                            r.y = p.y - offset.y;
                            selectedShape.setFrame(r);
                            repaint();
                public void mouseMoved(MouseEvent e)
            public JPanel panelen()
                final JButton rotate_left  = new JButton("Rotate left");
                final JButton rotate_right = new JButton("Rotate right");
                final JButton arrow        = new JButton("New Arrow");
                final JButton box          = new JButton("New Box");
                final JButton delete       = new JButton("Delete");
                final JButton resize       = new JButton("Resize");
                rotate_left.setCursor(new Cursor(Cursor.HAND_CURSOR) );
                rotate_right.setCursor(new Cursor(Cursor.HAND_CURSOR) );
                arrow.setCursor(new Cursor(Cursor.HAND_CURSOR) );
                box.setCursor(new Cursor(Cursor.HAND_CURSOR) );
                delete.setCursor(new Cursor(Cursor.HAND_CURSOR) );
                resize.setCursor(new Cursor(Cursor.HAND_CURSOR) );
                rotate_left.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                      if (e.getSource() == rotate_left && selectedRect != null)
                         selectedRect.rotateRect();
                         repaint();
                rotate_right.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                      if (e.getSource() == rotate_right && selectedRect != null)
                         selectedRect.rotateRect_right();
                         repaint();
                arrow.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                      addArrow = (e.getSource() == arrow);
                box.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                      addSquare = (e.getSource() == box && selectedRect != null);
                delete.addActionListener(new ActionListener()
                    public void actionPerformed(ActionEvent e)
                       delete_box = (e.getSource() == delete);
                resize.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                      if (e.getSource() == resize && selectedRect != null)
                         selectedRect.resizen();
                         repaint();
                JPanel panel = new JPanel();
                panel.setBackground( Color.orange );
                panel.add(rotate_left);
                panel.add(rotate_right);
                panel.add(arrow);
                panel.add(box);
                panel.add(delete);
                panel.add(resize);
                return panel;
        public void init() {
            axel rp = new axel();
            Container cp = getContentPane();
            cp.setLayout(new BorderLayout());
            cp.add(rp.panelen(), "South");
            cp.add(rp);
        public static void main(String[] args)
            JApplet applet = new Box();
            JFrame f = new JFrame("Test");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(applet);
            f.setSize(600, 400);
            f.setLocationRelativeTo(null);
            applet.init();
            f.setVisible(true);

  • Unstable green artifacts + "unable to duplicate problem" = ugh

    I just posted a lengthy, lengthy rant on my blog--
    http://tiffleigh.livejournal.com/93938.html
    --regarding some morale-sapping experiences I've had with my G4 Powerbook (PowerPC 1.33 GHz) with TekServe in NYC, and AppleCare in general.
    Their service ostensibly was "good," only they failed to 1) find the problem I brought it in for, even after seeing it with their own eyes, and 2) fix said problem.
    Which is this: I started getting "unstable green artifacts" on my screen. After I brought it in and they shipped it out to get looked at, they replaced the logicboard -- the second such board they have replaced in less than a calendar year.
    After over two weeks in the "depot" in Texas somewhere, I got it back and they told me they were "unable to duplicate the problem." Of course, a day later, the green artifacts returned.
    I'm already ramping up to fast-track a new computer purchase because I'm so disheartened but I would still like to know for my own sake just what exactly is going on with my computer. Does anyone have any info or similar problems? Is there some unofficial rumor that Apple is tacitly acknowledging with this product that isn't severe enough for a recall, etc.?
    Any and all feedback would be greatly appreciated. Thanks!

    I just posted a lengthy, lengthy rant on my blog--
    http://tiffleigh.livejournal.com/93938.html
    --regarding some morale-sapping experiences I've had with my G4 Powerbook (PowerPC 1.33 GHz) with TekServe in NYC, and AppleCare in general.
    Their service ostensibly was "good," only they failed to 1) find the problem I brought it in for, even after seeing it with their own eyes, and 2) fix said problem.
    Which is this: I started getting "unstable green artifacts" on my screen. After I brought it in and they shipped it out to get looked at, they replaced the logicboard -- the second such board they have replaced in less than a calendar year.
    After over two weeks in the "depot" in Texas somewhere, I got it back and they told me they were "unable to duplicate the problem." Of course, a day later, the green artifacts returned.
    I'm already ramping up to fast-track a new computer purchase because I'm so disheartened but I would still like to know for my own sake just what exactly is going on with my computer. Does anyone have any info or similar problems? Is there some unofficial rumor that Apple is tacitly acknowledging with this product that isn't severe enough for a recall, etc.?
    Any and all feedback would be greatly appreciated. Thanks!

  • Folders duplicate problem

    Hi,
    I have a perfectly organized library in itunes. I have 110G of music perfectly labelled and with cover art!!!
    My problem is, on my computer, my music folder (itunes media) is about 330G
    I REALLY don't want to mess up anything in my library but is there a way to clean up the folder?
    I always had the ''Keep itunes media folder organized'' and ''Copy files to itune folder when added to library'' checked on.
    Is it just like on ipods and itunes shows smaller size than on windows or my folder has a bunch of duplicates?
    thanks.

    The numbers would suggest you've got two dead copies of everything hiding somewhere... Unless of course you're reading the size of Music in iTunes and then comparing it with all media in Explorer.
    One approach would be to import the entire library folder and then dedupe.
    tt2

  • Itunes duplicate problem

    alright it seems that for some reason or another i have duplicates of every song i have. i have been going and deleted all of the ones with the explanation points but i have over 50gigs of songs and music... this will take a very long time is there any way to delete all the ones with the explanation mark to make my life a little easier? or what should i do can someone please help me?

    It looks like the duplicates the mac is showing sometimes are showing multiple entries in iTunes for the same physical file, so If I delete the file, I'm deleting the only copy of the song.
    When I use the delete button to delete a duplicate, it leaves the file in place and only deletes its entry in the playlist. If I delete its entry in the main library it still leaves it on the drive. I have to go and hunt down the files on the computer and move them to the trash. Are you sure its working differently for you? Sounds like we should swap "problems"!
    I think this is due to the duplicate entries using the same file...
    Yes.

Maybe you are looking for

  • Runtime Error in Goods Receipt

    Dear Experts, The runtime error while posting Goods Receipt. The Current application triggered a termination with short dump. Error analysis Shirt text of Error Message Document number 1000 (Company Code) 5000000000 2008 was already assigned. Long te

  • Vendor master error - Postal code ??

    Hi experts I have tried to creat import vendor , not able to create . Its throwing error like . "In Postal code a space must replace 5 Message no. AM207" Can anybody tel me how to rectify this , this vendor is for netherlands.?? Some body Tel me what

  • No pics appear in iphoto and aperture sidebar since iLife 11

    With the update of iLife11 the pics disappeared from the sidebar under iPhoto and Aperture. While the sidebar for Audio, Movies and Widgets runs well, only the running upload icon appears beside of iPhoto and Aperture. Why does iWeb not find the pics

  • Superdrive making noises

    My superdrive has started making noises as if it's ejecting a disc. The problem is that there's no disc in. I'm just browsing online and it will randomly make this noise. Anyone have any ideas on what the issue could be? Thanks in advance for any hel

  • Adding new constant value to an 'enum' used in a field causes an exception

    We are using the DPL. I added a new constant to an enum that is used as a field on an entity called Booking (this field is not a key). This seems to cause an exception during onForeignKeyDelete when we delete an object from a related entity. The cons