Drag and Drop onto a Panel

Does anybody know how to enable drag and drop onto a panel? I
need my users to be able to choose an image from a grid and place
it where ever they want on a panel or something. How can I do this
in flex? I know how to do drag and drop from grid to grids or
select boxes. I just can't get to place it on a panel.
Thanks for any insight

Thanks a million. This definitely helps out a lot. Do you
know of a way where you could put all of them on the panel and
control their layout? Basically, I need the user to be able to pick
as few or as many of the flags they want and place them on the
panel to make a collage. So the end user can drag the items around
and put them in the panel however they see fit.
Once again, thanks.

Similar Messages

  • Drag and Drop from Files panel

    I am having trouble dragging JPG files from the Files panel
    to insert in my pages. I have a number of pages created from the
    same template and the ability to drag and drop an image from the
    Files panel doesn't work for all pages.
    Some pages let me drag the file across, other times I have to
    use the Insert command and browse to select the file. Is there an
    option that I've somehow turned off for these pages?
    Thanks.

    > Is there an option that I've somehow turned off for
    these pages?
    I don't think so. What happens on those pages that fail? Do
    you get an
    error? Do you just get nothing? Do you get the circle/slash
    cursor? Are
    you dropping onto non-editable turf?
    Personally, I have never found the INSERT menu option to be
    too much
    trouble....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Bagheera62" <[email protected]> wrote in
    message
    news:gngsur$9ri$[email protected]..
    >I am having trouble dragging JPG files from the Files
    panel to insert in my
    > pages. I have a number of pages created from the same
    template and the
    > ability
    > to drag and drop an image from the Files panel doesn't
    work for all pages.
    >
    > Some pages let me drag the file across, other times I
    have to use the
    > Insert
    > command and browse to select the file. Is there an
    option that I've
    > somehow
    > turned off for these pages?
    >
    > Thanks.
    >

  • Drag and Drop Onto a JAR

    I got a great answer from Dr. Clap (for XP) to this question in June.
    However, it doesn't work in NT 4.0. I am looking for a workaround for this OS.
    I have an application that runs out of a JAR file (an editor). I would like to be able to drag and drop a (html) file onto a desktop shortcut for to the jar, and have: 1) javaw run, 2) pass it the jar file to open, and 3) pass the html file to the opened jar for editing.
    What follows below is how to do this in XP (and it works). In NT, if I put this into the shortcut it tells me - when I drag and drop a file onto it - that it can't find the appropriate classes.
    ================================================================
    Look at the association for the JAR extension, you'll find that it uses javaw.exe and the "open" action is mapped to some command line involving javaw.exe and %1 which represents the jar file to be executed. Now, for your extension make a very similar setup, only your "open" command line will look something like this:
    "C:\...\javaw.exe" -jar YourSpecialJar.jar "%1" %*
    That command line runs your jar file and passes the file being "opened" to the command line as the first parameter. (I don't know what the %* does but it's in the command line for the jar extension.)

    I would doubt that it would work differently under NT. I'd assume you just didn't do it right, or this jar's manifest file doesn't include the right jars that it depends upon.

  • Can't Replace Pages (via drag and drop in Pages panel) in Acrobat 9 Pro

    I'm running OS X 10.5.8, Acrobat Pro 9.1.3, PPC G5 PowerMac.
    I'll have two PDFs open and I'll want to replace certain pages from document A with certain pages from document B.  Rather than using the Replace Pages command from the Document menu, I prefer to visually see what I'm changing.  For this reason I've always preferred the drag and drop method, where one selects a page thumbnail from one document and drops it onto a page thumbnail in another document. This only seems to be a problem in Acrobat 9.  This works fine in Acrobat 7.1.1 and 8.1.6.  Drag and drop will allow one to insert pages but the replacement of pages is not working.  As described in Acrobat Help, under "Replace pages using a page thumbnail," I try to drop the page thumbnail onto the page number as prescribed but the page to be replaced never highlights like it should.  It will only give the insertion highlight between each page, indicating that it is about to insert a page.
    Other macs exhibit the same behavior -- it always works in Acrobat 7 and 8 but not 9.
    Thank you for your assistance.

    I'm using the Windows version of Acrobat Pro 9 and found this thread with the same problem. (Key command to replace on Windows is: Ctrl + Alt).
    Anyway, to answer the how to disable the warning, go to the Acrobat Preferences. In the General category under "Warnings", check the setting "Do not show edit warnings". There should be a similar setting on the Mac version.
    (Now I wish replacing pages didn't require a key command like in previous versions.)

  • Drag and Drop Between two Panels

    Hi,
    I am working with Swings,i created two Panels A and B. I kept some GIF or Image in Panel A,i would like to drag the gif object in to Panel B.
    when i try like this,my mouse could not communicate with two panels A and B.mouse events working Individualey,i mean mouse events working in same panel.
    Plz let me know how to communicate with two different panels with mouse. Drag and Drop between Panel A and Panel B.
    Thanking you
    MyProblems

    You might check out the Drag and Drop tutorial, especially the section Data Transfer with a Custom Component.
    Here's another approach using an overlayed non&#8211;opaque JPanel as a transfer device. The image label is transfered to the (fake) glass pane and dragged. On mouse release it is added to the JPanel below. Although I didn't build in any boundry&#8211;checking it would be a useful thing. Mostly to ensure a suitable drop target and component location in it.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import javax.swing.event.*;
    public class DraggingTest
        public static void main(String[] args)
            LeftPanel left = new LeftPanel();
            JPanel right = new JPanel();
            right.setBackground(new Color(200,240,220));
            right.setLayout(null);
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.fill = gbc.BOTH;
            panel.add(left, gbc);
            panel.add(right, gbc);
            JPanel glassPanel = new JPanel();
            glassPanel.setOpaque(false);
            JPanel overlay = new JPanel();
            OverlayLayout layout = new OverlayLayout(overlay);
            overlay.setLayout(layout);
            overlay.add(glassPanel);
            overlay.add(panel);
            ImageMover mover = new ImageMover(left, right, glassPanel);
            glassPanel.addMouseListener(mover);
            glassPanel.addMouseMotionListener(mover);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(overlay);
            f.setSize(400,400);
            f.setLocation(600,325);
            f.setVisible(true);
    class LeftPanel extends JPanel
        Image image;
        JLabel label;
        public LeftPanel()
            loadImage();
            setBackground(Color.white);
            setLayout(null);
            label = new JLabel(new ImageIcon(image));
            label.setName("imageLabel");
            Dimension d = label.getPreferredSize();
            label.setBounds(40, 40, d.width, d.height);
            add(label);
        private void loadImage()
            String fileName = "images/dukeWaveRed.gif";
            try
                URL url = getClass().getResource(fileName);
                image = ImageIO.read(url);
            catch(MalformedURLException mue)
                System.out.println(mue.getMessage());
            catch(IOException ioe)
                System.out.println(ioe.getMessage());
    class ImageMover extends MouseInputAdapter
        LeftPanel left;
        JPanel right, glassPanel;
        JPanel activePanel;
        Component selectedComponent;  // imageLabel
        Point offset;
        boolean dragging, selected;
        public ImageMover(LeftPanel lp, JPanel p, JPanel gp)
            left = lp;
            right = p;
            glassPanel = gp;
            offset = new Point();
            dragging = false;
            selected = false;
        public void mousePressed(MouseEvent e)
            Point p = e.getPoint();
            // which panel is the mouse over
            if(!setActivePanel(p));
                return;
            // get reference to imageLabel or return
            selectedComponent = getImageLabel();
            if(selectedComponent == null)
                return;
            Rectangle labelR = selectedComponent.getBounds();
            Rectangle panelR = activePanel.getBounds();
            if(labelR.contains(p.x - panelR.x, p.y))
                activePanel.remove(selectedComponent);
                selected = true;
                glassPanel.add(selectedComponent);
                offset.x = p.x - labelR.x - panelR.x;
                offset.y = p.y - labelR.y - panelR.y;
                dragging = true;
        public void mouseReleased(MouseEvent e)
            Point p = e.getPoint();
            if(!contains(glassPanel, selectedComponent))
                return;
            glassPanel.remove(selectedComponent);
            setActivePanel(p);
            activePanel.add(selectedComponent);
            Rectangle r = activePanel.getBounds();
            int x = p.x - offset.x - r.x;
            int y = p.y - offset.y;
            Dimension d = selectedComponent.getSize();
            selectedComponent.setBounds(x, y, d.width, d.height);
            glassPanel.repaint();
            activePanel.repaint();
            dragging = false;
        public void mouseDragged(MouseEvent e)
            if(dragging)
                Point p = e.getPoint();
                int x = p.x - offset.x;
                int y = p.y - offset.y;
                Dimension d = selectedComponent.getSize();
                selectedComponent.setBounds(x, y, d.width, d.height);
                if(!selected)
                    activePanel.repaint();
                    selected = false;
                glassPanel.repaint();
        private boolean contains(JPanel p, Component comp)
            Component[] c = p.getComponents();
            for(int j = 0; j < c.length; j++)
                if(c[j] == comp)
                    return true;
            return false;
        private boolean setActivePanel(Point p)
            activePanel = null;
            Rectangle r = left.getBounds();
            if(r.contains(p))
                activePanel = left;
            r = right.getBounds();
            if(r.contains(p))
               activePanel = right;
            if(activePanel != null)
                return true;
            return false;
        private Component getImageLabel()
            Component[] c = activePanel.getComponents();
            for(int j = 0; j < c.length; j++)
                if(c[j].getName().equals("imageLabel"))
                    return c[j];
            return null;
    }

  • Drag and drop onto/from a JTable but not onto itself on 1.5

    Hi, i can drag files from Windows Explorer onto a Jtable ,and they get opened and listed in the table, and I can drag records from the table and drop them into Windows Explorer to make a copy of a file. In order to drag files from the table I just need to drag a field in the table (fields can be selected in the table) but it is very easy to accidently start dragging when I dont want to drop and then dropping the file on to the table, I then get an error because Im trying to open a file that is already opened in the table.
    How can I do the following.
    1. If I have selected multiple fields (representing files) in the table I dont want the GUI to allow me to to drop those files onto itself.
    2. If I have selected a single field and I drag to another field, I want to treat it as a drag and drop of a single text field rather than as a file.
    of course as soon as I leave my application I want the drop to be seen as a list of files, and I want to still be able to drag files from other applications to the table. Soltion needs to be java 1.5 comptabile
    thanks Paul
    (So far Ive implemented a TransferHandler, Transferable and DropTarget classes)

    Well Ive done it - wasn't that hard. the key thing was to put both file and field data into the transferbale when created.Then the drop target has to look for field data as a valid data flavor before it looks for a list of files data flavor.

  • Drag and drop onto a cd loses quality

    I shoot in RAW and the file sizes are large and I can manipulate the e-mails BUT
    I noitced that when I drag and dropped RAW photos on to a CD to burn the jPeg qulaity dropped.
    For instance a 14.5mb drops to 537kb..
    I would guess I need to change something and would like help with the issue.
    Thnak you,
    Greg

    Hi Greg -- I really wish I could retract my post.  It doesn't read at all the way I thought it did.  Please accept my apology.  What I was trying to say is that as a means of exporting, drag-and-drop is effectively crippled in Aperture.
    Aperture's complexity makes dragging-and-dropping Images to create and export files unworkable without additional input.  The designers made, imho, a good decision in making drag-and-drop of Images from Aperture to another program equal to exporting the Previews of the dragged Images.
    Again, my apologies -- and my thanks for your soft handling of my rudeness.
    Cheers,
    --Kirby.

  • How do i drag and drop onto a smart object layer in Photoshop CS 5.5

    I recently bought a 3d mock up Photoshop file as I want to mock up my designs such as business cards and other 3d items. The file notes said With a simple drag and drop on the smart object layer your design will be presented in a realistic and striking way.
    Can you tell me how I do what they are telling me to do as I have played around with the file till the cows come home and can't work out how to do it. Do I need to do the old fashioned mock up way by skewing the image to fit or is there an easier way such as the drag and drop...?
    Any help will be gratefully received,
    Thanks

    Hi here is the template PSD and then I want to put my business card design over and it says you can drag and drop as per my previous message ...

  • Drag and drop onto AIR to start AIR with a file

    Is it possible to drag a file onto an AIR application icon to START the application using that file?
    I'm aware that once the AIR app is open files can be dragged into it and it will also open the application when a file is dragged onto it (if the file type  associations have been set) though without any of that file being used, but I'd like to be able to open it directly with the file I drag onto the app. Some sort of InitialStateVariable or such?

    This doesn't seem to work on Snow Leopard. Is there any think I should check?
    UPDATE:
    Found out, lazy me!
    NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);

  • I can't drag and drop onto my desktop.

    I've tried repairing my permissions and and my disk and nothing is working. I made sure that it was unlocked in the info window and everything.
    Help!

    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. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. 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. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  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.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    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.

  • Icons wont drag and drop onto particular area

    Ok on my desktop there is a section of my desktop on the left side (basically the area underneath where my dock comes out) where i cant put any icons or documents of any description. The rest of my desktop is active and can be used but this one little vertical bar of space is dead. Is there any way to fix it?

    If you're talking about this area, it's the divider bar.  You can't put anything in this space.
    Programs on one side, folders on the other.
    Captfred

  • How do I put music I have uploaded from a CD onto my iphone 5 via itunes? I have tried to drag and drop it onto my iphone when my phone is plugged into itunes this does not seem to be working.... Getting annoyed!!!

    I cant seem to get cd's that I have uploaded onto my iphone 5 via itunes. I have tried to highlight the items and drag and drop them into my phone but this isnt working...; This is really starting to frusterate me!!!
    Please help me

    If you have not already reverted the look and feel to be like iTunes 10 then
    View > Show Sidebar
    View > Show Statusbar
    click on the black arrow in the search box and untick Search Entire Library
    Now you should be able to drag and drop onto your phone or use the sync pages
    http://support.apple.com/kb/PH12113
    If your still having issues with your phone then Try this trouble shooting link
    http://support.apple.com/kb/TS1591

  • I can't drag and drop a Goggle image onto a Word doc.

    Is there a Firefox preference that allows images to drag and drop onto a Word doc?

    For what it's worth, this worked for me using the beta version of Firefox 4 and Word for Mac 2011. If it doesn't work for you, try dragging the image from Firefox to your desktop, and then from your desktop into Word.

  • Listening to Drag and Drop event from the extension panel

    How is it possible to detect a drop event from a Layer to a text field in a panel developer using the SDK?
    Drag and drop operation between panel elements are not the issues, but drag and drop from Photoshop and the panel might be an issue.
    Is it possible to implement them?
    If yes, could I be redirected to the documentation topic or can someone post some code snippet ?
    Thanks

    What model of camcorder is your video from and what resolution is it?
    What operating system are you using? Have you ensured that you have the latest version of Quicktime, per the program's requirements?
    Do not convert your video. The program will best with video directly from a camcorder, and converting it may will turn it into a format that it may be LESS likely to work well with.

  • Why wont itunes alllow me to put music I have uploaded from a CD onto my iphone? Every time I drag and drop it does nothing.

    iTunes wont allow me to sync an official CD I recieved as a present no matter how many times I try to Sync or just drag and drop, very frustrating!!

    If you have not already reverted the look and feel to be like iTunes 10 then
    View > Show Sidebar
    View > Show Statusbar
    click on the black arrow in the search box and untick Search Entire Library
    Now you should be able to drag and drop onto your phone or use the sync pages
    http://support.apple.com/kb/PH12113
    If your still having issues with your phone then Try this trouble shooting link
    http://support.apple.com/kb/TS1591

Maybe you are looking for

  • Brand New iMac, no iChatting

    We just bought a brand spankin' new iMac last night. Set it up, no problem. Created a .mac account and a AIM account. Opened iChat. Called my father who' iChat starts up automatically and had him fire up his iMac. He's entered in as a Buddy, but stay

  • Adobe creative suite 5.5 design premium upgrade

    I am installing adobe creative suite 5.5 design premium upgrade on a new laptop.  I installed the upgrade and entered the serial number and received the green check.  It never ask for a prevoius serial number from the previous product.  Each time I o

  • QuickView uses EXIF data for preview, even when bogus. A plist to turn that off?

    We moved to MBPs with SnowLeopard recently and just found that many downloaded images  usually from publicity or stock-photo sites - give distorted or no preview when we use QuickView (tapping the space-bar) on them in the Finder. Some investigation

  • How to do data refresh

    Hi, I'm required to refresh our production database from a warehouse. There are a number of tables to be refreshed. Now, I cannot have materialized views that does incremental refreshes since the tables in the warehouse do not have mview logs on them

  • Macintosh shows only 150gbs free space,hardware raid is not found/properly installed.what should i do?i am using os x 10.6.8

    i am currently having the problem of macbook pro having insufficient space.When i check my macintosh HDD,the devices indicated that there is only 150gb of free space.however,when i went to check "about this mac" on my top left hand corner of the desk