Drag label to target widget

Hi,
Two questions. I'm building a drag and drop page using the drag label to target feature.
1) You don't appear to be able to fit the image inside the target window. It often gets cropped. There are resize handles available but they don't appear to work.
2) The little target circle. Is it possible to resize it?
Many thanks,
Phil

Sliding the edit mask didn't have any effect.
Placing a wide margin around the image worked. It took a while to figure out how wide the margins should be, but I got the whole image to fit in at the finish.
The image now looks like:
Thanks for your help.

Similar Messages

  • Who'd like to test a new Drag and Drop Interactive Widget?

    It's taken about 6 months of every spare minute we could find but we're finally ready to do a round of Alpha testing for our new Drag and Drop Interactive Widget for Cp4 and 5.  This post is to ask for a handful of volunteers to test the new widget over the next week creating drag and drop interactions in both Cp4 and Cp5.
    If you've already tried our well-known Drag and Drop Lite Question Widget, but were a bit frustrated by the limitations that the quiz question format placed on your creativity, we think you'll be blown away by what this new Interactive Widget can do.  It does everything the current question widget does, aside from the aspects that are unique to question types (Review Area, Retake Quiz, etc) plus a whole lot more.  Due to the extra functionality, this widget has twice as much code as our last one.
    Some of the features:
    You can have as many widgets as you want on a single slide and each can be addressing a different drag and drop scenario.
    You can reference the same drag and target objects from different widgets to create different.
    Since they are interactive widgets, you can use the widget success/failure criteria to trigger Advanced Actions.  This opens up a lot of possibilities for game interactions.
    You can score each widget differently so that OnSuccess they will each report different scores for dragging the same objects.  This means you can have Conditional Scoring and more than one correct answer for a given problem.
    You can set one of the widgets to have its Preferences be used for all widgets on the slide so that you don't need to set all widget preferences individually, thus saving a lot of time.
    You can set Preference Priority for each widget to configure which widgets will have "right of way" if there is a potential conflict in preferences.  For example, if one widget wants one type of snapping behaviour on an object but another widget wants the same object to snap differently, the widget with the higher Preference Priority will dominate.
    You can nominate other interactive objects (including clickboxes or other widgets) to act as Submit button and Clear button to create a simulated quiz question.
    Since this widget is an Interactive widget, it also has the same advanced Pausing override behaviours we built into our Event Handler widget (http://www.infosemantics.com.au/eventhandler)  So you can have users stay on the same slide playing with the drag and drop interaction for as long as they like without progressing to the next slide until they want to.
    Plus other stuff I can't think of right now.
    If you decide to volunteer to participate in this Alpha testing, please don't use this widget for any production Captivate projects you may have.  The Alpha and Beta versions of the widget will be time-bombed to stop working after a couple of weeks so that we don't have buggy versions running around later.
    As I said at the beginning, we only need a handful of testers, we need people using either Cp4 or Cp5, and you need to do this testing over the next week so that we can then address any issues you find and release a debugged Beta version for more testing.
    Anyone wanna play?
    If you do want to volunteer, send me a private message on this forum with your email address so I can send you a widget and instructions.  We'll only be taking the first dozen or so people that are willing to contribute time and feedback.
    Cheers,
    Rod Ward

    Hi Sandy,
    If you hover the mouse over Rod's avatar, there is an e-mail address visible. For a private message; double-click on his avatar and you'll find the button private message in that dialog box,
    Lilybiri

  • Infosemantics Drag and Drop Interactive widget

    I’ve added the Infosemantics Drag and Drop Interactive widget to my project, but it only works after publishing via a computer and not on an iPad.  I published using both SWF and HTML5 so it “should” work. The HTML tracker for that slide does not list any unsupported slides or objects.  If this widget is not compatible with the iPad, is the new Captivate drag and drop feature available for Subscription and ASA customers work on an iPad?  If so, is there a student rate for either a Subscription or ASA? Thanks so much.

    The drag&drop wizard in 6.1 is easy to use, but doesn't have all the functionality that you find in the InfoSemantics Interactive widget. Just want to warn you. I am using both: for simple Drag&Drop I'll use the wizard, but as an example to create a custom matching or sequence question slide I need InfoSemantics widget, that is not possible with the 6.1 D&D.
    Lilybiri

  • Drag & drop - multi targets that swop?

    Is it possible to have two draggables for two targets?
    Where drag-A can be dropped on target-A or target-B, but if
    it does, then drag-B can only be dropped onto the other target
    (where drag-A is not).
    The reason for this is a sequence of 15 draggables and
    targets for a process that need to be completed in the correct
    order. The code is fine for that, but the process has some steps
    that can be done in two ways, hence the choice.
    In other words, the user can get a correct answer for the
    whole process if they decide to make some steps one way or the
    other.
    I'm intermediate level in flash scripting but don't know the
    simplest way to do this. I've research the flash sites but nothing
    comes close. Maybe the instance names have to be changed
    dynamically via if/else? Maybe on drop of drag-A onto target-B
    asomehow changes the logic.

    "kglad" <[email protected]> wrote in message
    news:fjibuu$jta$[email protected]..
    > apply your startDrag() to the loader.
    Thanks for your reply. I tried to isolate just the picture as
    follows:
    function dragPic(event:MouseEvent):void {
    trace("drag, " + this.parent)
    // event.target.startDrag();
    // this.startDrag();
    var test:Loader = Loader(event.target);
    test:startDrag();
    I got the same results. Its not only dragging the picture,
    but it is also
    dragging the background JPG file as well. I've tried making
    the
    background image a movieclip, and that did not change the
    results.
    I'm sure its something simple, but I haven't found the right
    combination or
    example.
    Bob

  • Create a drag and drop target set

    Hi,
    I want to be able to create the following if possible:
    Create five words that make up a sentence and they are mixed up in order. So basically I would turn each word into a Movie clip perhaps.
    I would then like to assign a target hotspot for each word so that a user can drag the words into the correct order.
    Once they are in the correct order they click a button to go to a correct response or incorrect response. Is this possible?

    Yes, it is possible.  Try seaching Google for a tutorial using terms like "AS3 drag and drop tutorial" and/or "AS3 dropTarget tutorial"

  • CS6-Drag clip audio target track issue

    CS6 on a mac. Mono audio. Preferences and sequence set for mono. Working with XDCAM EX. When dragging a clip to V2 in the timeline the audio hits A2 and A3 rather than A3 and A4. Even when target tracks are for V2 A3-A4. When usuing overwrite shortcut audio goes to A3-A4 as it should but if I drag the same clip to V2 audio goes to A2 and A3. If I drag the clip to V3 audio goes to A3 and A4.  I don't drag that much but would like to every so often. I'm made the move from FCP so maybe I'm missing something. Any ideas out there?

    Dragging will match tracks for video and audio, no way around that.  Only shortcuts allow you to split them.

  • Moving answers in a quiz once they have been matched to a target in using drag and drop

    Hi,
    I am having a problem with some of my drag and drop quizzes that I'm wondering if anyone you might be able to help me with?
    In some drag and drop quizzes I have created, using the Infosemantics drag and drop light widget in Captivate 5.5, I can move the answer after having matched it to a target but before submittting.  Whereas in some quizzes I have created, the answers get stuck and do not let me move the answers after I have matched them to a target, even though I haven't submitted.  This leaves me no choice but to clear all my answers and start again if I have made a mistake. 
    Please can you tell me how to enable the answers to move even after they have been placed on a target? 

    Emma,
    Take a look at the troubleshooting tips on this page from the Infosemantics website:
    http://www.infosemantics.com.au/adobe-captivate-widgets/drag-and-drop/troubleshooting-widg et-issues
    Pay particular attention to the section entitled: "My drag and drop question works correctly sometimes, but not other times. "
    From the appearance of your slide, it looks like you may have removed some of the components from the quiz slide that are necessary for it to function correctly.  Try the test that this section of the troubleshooting suggests so that you can see if this is the case.  If it turns out that you have deleted some items, you'll need to recreate your quiz slide to get them back again.
    Hope this helps.

  • Drag and Drop Interaction with 50+ Drop Targets

    Hello,
    I'm fairly new to Captivate 7 but very familiar with Flash. I'm tasked with a project that I would like to do with the drag and drop interaction widget from Captivate 7. Basically, we need our learners to identify the locations of our resorts on a map. Select the name of the resort, drag and drop it in the city/state or country where located. My question is can Captivate handle this task? To me, it seems as a large task for Captivate to handle, and so I was thinking of coding it in Flash.
    Here is what I need:
    1.- List of all the properties at bottom with the drop target being a map of the US or world and have the location for each property as the drop target.
    2.- When the resort/property is selected, the name will change to the three letter code. Example: New York City, when clicked = NYC and the map itself to reflect the 3 letter code once dropped on the map if correct.
    3. If incorrect, the listed item will revert to the long name and return to the list.
    4. If this can be graded, it would be best.
    I can break the project into different regions but if I wanted to keep all 300+ properties in one module, will it be an issue? At the very least, I would need to do a minimum of about 50 per module.
    Thanks all! I've found this forum to be extremely helpful and the members seem to be eager to help.

    var matchingTargetName:String =(event.target.name).substring(0, 1);
    Change the name of the target to A and B and the mc A1, A2, A3, A4... and B1, B2,B3...

  • Help! Can't drag Widgets to use them.

    I have some standard Widgets in the Library/Widgets folder and one third party Widget in my user/mummer/library/widgets folder.
    When I activate Dashboard, and try to add Widgets, they all show up in the bar across the bottom. I can drag the third-party Widget into the use area, but I cannot drag any of the Widgets in the Library/Widgets folder. Nothing happens when I click on them.
    I already tried trashing the com.apple.dashboard pref files and restarting. I'm stumped.
    Any idea what's up with that?
    Thank you.

    I have a similar problem, I secured permissions and the computer corrected a few Widget permisions, but the problem remains. I can drag widgets from the widget bar, but after approximately three seconds, the widgets simply disappear, don't shimmer or anything, but just disappear, pop!

  • Can't click drag within widgets in Dashboard

    Not sure what caused it, but suddenly I can't click-drag WITHIN a dashboard widget. For example, if I click and hold the pulldown menu in the Dictionary to change to thesaurus, the pull-down menu won't activate. It only activates if I click and release to bring it up. And I can't select text within a text field. If I click and drag over a word to select it, the whole widget will move.
    Same issue as this unresolved thread-- http://discussions.apple.com/thread.jspa?messageID=11847234&#11847234
    It occurs even if I log out/in as a different user. Sure, there are workarounds, but I'd like to fix this behavior. Anyone got any ideas?

    I'm in the same boat - is there a solution to this?

  • Learning Components - Drop & Drag. Target not recognised

    I am using a drop and drag learning component. I have made about a hundred of these in the last few months, done everything the same way but for some reason, every now and then its like the the target isnt recognised.
    When trying to drag the drag over to the target area, it doesnt snap, just goes back to its original position.
    I tried unticking the 'snap to start' box in the components inspector which allows me to move the drags to the target but then i cannot submit/check answer.
    Im not farmiliar with the code used behind the learning components..
    Any ideas??
    Thanks in advance!

    Thanks Alex.
    I did as you say, and DragManager is in the report file in several places. Also, Drag/Drop does work inside of SWFLoader for the TileList in the loaded app, and even somtimes as it should as far as the drag/drop operation I am talking about, but not always.
    It seems to work sometimes and not others. When it does work it is not nearly as smooth as when I run the app as a "stand alone" and I never see the drag proxy while dragging inside of SWFLoader.
    Is there anything else that could be causing these issues? 

  • Drag&Relate Targets

    Hi All,
    When i open the page, i can see an option called "Drag and Relate Targets" What is the functionality behind it? How can it be acheived? Can anyone please help me out in this?
    Regards,
    Divya

    Hi Divya,
    Drag&Relate targets are iViews that possess drag-on capabilities and have been associated to a page or iView containing draggable data in the form of links. They can retrieve from a database source information that is related to the information that is dragged onto it.
    Advantage:-
    Drag&Relate targets offer the possibility of a relation-resolving process that connects information from independent systems.
    Drag&Relate means that when you click an iView, you launch a request that returns information. If that iView is defined as a Drag&Relate target, then when a link from another iView is dragged onto it, the launched request is modified by the additional dragged content. The dragged content acts as conditions that filter the data which is returned by the Drag&Relate target iView.
    For example, a user dragging a part number from an asset management system iView onto a geographical information system iView that is a Drag&Relate target, could map all installations of a certain type of equipment at a particular site.
    To enable Drag and Relate option go through this link:-
    [Enable Drag & Relate|http://help.sap.com/saphelp_nw70/helpdata/EN/f4/ab28b916cdce4b8af82c748e13f867/content.htm]
    To learn more about this option read through:-
    [DRAG & RELATE|http://help.sap.com/saphelp_nw70/helpdata/EN/18/e74512e3d644449e1807f130ef283e/frameset.htm]
    Also,
    [Drag and Relate help|http://help.sap.com/saphelp_nw70/helpdata/EN/20/57fb6ec5da4968bdad7bc456139560/frameset.htm]
    Hope this helps,
    Regards,
    Shailesh Nagar
    Edited by: Shailesh Kumar Nagar on Apr 15, 2008 2:13 PM

  • Muse crashes when dragging widgets to the canvas

    I am having a major problem with Muse freezing and locking up when I try and drag the YouTube Social Widget to the canvas. I just get the spinning ball and have to eventually force close the program altogether. Anyone have a solution of any idea of a solution? I'm trying to embed a video for a client. I also tried to insert HTML through the object menu and the same result took place.
    Thanks,
    Jamain

    What version of Muse?
    Back in Muse 7 a change to the video player used by Google for YouTube videos would result in the behavior you describe. In Muse 7 that was worked around by using the YouTube widget from the Widget Library provided with Muse 7.3.
    Muse 2014 (the equivalent of version 8) replaced the HTML rendering engine used for Preview, and generation of proxy images for Design view. That improves the fidelity of Muse Preview and the proxy images, and avoids this crash/hang when inserting YouTube embed code.

  • Drag and Drop using iterator in ADF 11.1.1

    I am looking for a workaround for the following problem.
    <af:componentDragSource> returns an incorrect dragComponent value when dropped on a dropTarget when container elements are generated by an iterator.
    Below is sample code:
    in jspx file:
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 1"/>
                             <af:componentDragSource discriminant="activity"/>
                             <f:attribute name="draggedActivity" value="Drag object 1"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget1" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 1"/>
                             <af:spacer width="600px"/>
                             <f:attribute name="dropTarget" value="Drop target 1"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 2"/>
                             <f:attribute name="draggedActivity" value="Drag object 2"/>
                             <af:componentDragSource discriminant="activity"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget2" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 2"/>
                             <f:attribute name="dropTarget" value="Drop target 2"/>
                             <af:spacer width="600px"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 3"/>
                             <f:attribute name="draggedActivity" value="Drag object 3"/>
                             <af:componentDragSource discriminant="activity"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget3" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 3"/>
                             <f:attribute name="dropTarget" value="Drop target 3"/>
                             <af:spacer width="600px"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                        <af:spacer height="16px"/>
                        <af:iterator var="item" first="0" varStatus="stat" rows="0"
                                  value="#{projectToolbarBean.narrativeBean.testDnD}">
                            <af:panelGroupLayout>
                                <af:outputText value="Drag object #{item}"/>
                                <af:componentDragSource discriminant="test"/>
                                <f:attribute name="draggedActivity" value="#{item}"/>
                            </af:panelGroupLayout>
                            <af:panelGroupLayout layout="horizontal" id="dropTarget1" inlineStyle="background-color:#ffff00">
                                <af:spacer height="8px"/>
                                <af:outputText value="Drop target #{item}"/>
                                <af:spacer width="600px"/>
                                <f:attribute name="dropTarget" value="#{item}"/>
                                <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                    <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="test"/>
                                </af:dropTarget>
                            </af:panelGroupLayout>
                         </af:iterator>In bean:
        public Collection getTestDnD() {
            List items = new ArrayList<Integer>();
            items.add(1);
            items.add(2);
            items.add(3);
            items.add(4);
            items.add(5);
            return items;
        public DnDAction dropTest(oracle.adf.view.rich.event.DropEvent event) {
            if (event.getDragComponent() != null && DnDAction.MOVE.equals(event.getProposedAction())) {
                UIComponent dropComponent = event.getDropComponent();
                UIComponent dragComponent = event.getDragComponent();
                String dropped = "";
                String dragged = "";
                if(dropComponent.getAttributes().get("dropTarget") instanceof String){
                    dropped = (String) dropComponent.getAttributes().get("dropTarget");
                    dragged = (String) dragComponent.getAttributes().get("draggedActivity");
                else if(dropComponent.getAttributes().get("dropTarget") instanceof Integer){
                   dropped = dropComponent.getAttributes().get("dropTarget").toString();
                   dragged = dragComponent.getAttributes().get("draggedActivity").toString();
                System.out.println("The label of the dragged object is: " + dragged + ". the drop target is " + dropped);
                return DnDAction.MOVE;
            } else {
                return DnDAction.NONE;
        }Drag a 'drag object' from the hard coded top group and drop it on a yellow drop target in the same group.
    Output from System.out will be correct.
    Do the same for the second iterator-generated group. You will find that the 'dragged' value in the bean code returns the same value as the 'dropped' value. In other words, event.getDragComponent() is losing context and is replaced by the value of event.getDropComponent().
    Can anyone help fix or workaround this problem? I cannot replace the iterator with a forEach due to other requirements.
    Does anyone know if this issue exists in ADF 11.1.2?
    Thanks

    Sorry 1 correction on my earlier post.  Install iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16) NOT 12.1.0.71!
    Thanks Guys!  This fixed me up.
    I uninstalled
    - All  Apple Packages
    - Bonjour
    - iTunes
    - Quick Time packages
    Deleted the Apple, iTunes, & Quick Times folders:
    - c:\Program Files
    - c:\Program Files (x86)
    - C:\Program Data
    - C:\Users\%profile%\AppData\Local
    - C:\Users\%profile%\AppData\LocalLow
    - C:\Users\%profile%\AppData\Roaming
    Rebooted
    Sorry 1 correction on my earlier post.  Install iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16) NOT 12.1.0.71!
    Installed the newest QuickTime 7.7.6
    and Bingo!  Hopefully the next iTunes release addresses the issue moving forward.
    Thanks Again!

  • Image Drag'n'Drop error

    Hello
    so... he is the deal:
    based on that: http://java-buddy.blogspot.com/2012/03/javafx-20-implement-gesturetarget-of.html i made some simple app that loads pictures from files.
    whats important about this is this:
    HBox targetBox = new HBox();and this
    targetBox.getChildren().add(dbImageView);now. this works. but if i use fxml file, i cant force it to do its job.
    HBox was added to the scene using scene builder and it looks like this:
    <HBox id="hBox1" fx:id="targetBox" layoutX="14.0" layoutY="14.0" prefHeight="221.0" prefWidth="544.0" />and then in my main class, extending Application am trying to do this:
    @FXML HBox hBox1; or @FXML HBox targetBox; (tried both ways)then
        @Override
        public void start(Stage stage) throws Exception {
            Parent root = FXMLLoader.load(getClass().getResource("sceneBuilder.fxml"));
            Scene scene = new Scene(root);
            setupGestureTarget(scene, hBox1); //taken from tutorial mentioned above
            stage.setScene(scene);
            stage.show();
        }it runs, i try to drag some image from explorer folder into the scene and BANG
    onDragDropped
    java.lang.NullPointerException
         at mzlike.MZlike$2.handle(MZlike.java:79)
         at mzlike.MZlike$2.handle(MZlike.java:64)
         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
         at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
         at javafx.event.Event.fireEvent(Unknown Source)
         at javafx.scene.Scene$DnDGesture.fireEvent(Unknown Source)
         at javafx.scene.Scene$DnDGesture.processTargetDrop(Unknown Source)
         at javafx.scene.Scene$DnDGesture.access$4300(Unknown Source)
         at javafx.scene.Scene$DropTargetListener.drop(Unknown Source)
         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleDragDrop(Unknown Source)
         at com.sun.glass.ui.View.handleDragDrop(Unknown Source)
         at com.sun.glass.ui.View.notifyDragDrop(Unknown Source)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
         at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)
    Exception in thread "JavaFX Application Thread" Ewhere 79 line is targetBox.getChildren().add(dbImageView);i can upload my whole project somewhere, if you guys want.
    i'd really be thankful for any help
    best regards

    ok so i did something like this:
    public class Sample implements Initializable {
        @FXML HBox hBox1;
        @FXML
        private void handleButtonAction(ActionEvent event) {
            System.out.println("You clicked me!");
            if(event.getSource() instanceof MenuItem){
                System.out.println("Source is MenuItem");
                MenuItem source = (MenuItem) event.getSource();
                System.out.println("Source text is = " + source.getText());
            //label.setText("Hello World!");
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            // TODO
            setupGestureTarget(hBox1);
        void setupGestureTarget(final HBox targetBox){
            targetBox.setOnDragOver(new EventHandler <DragEvent>() {
                @Override
                public void handle(DragEvent event) {
                    /* data is dragged over the target */
                    System.out.println("onDragOver");
                    Dragboard db = event.getDragboard();
                    if(db.hasFiles()){
                        event.acceptTransferModes(TransferMode.ANY);
                    event.consume();
            targetBox.setOnDragDropped(new EventHandler <DragEvent>() {
                @Override
                public void handle(DragEvent event) {
                    /* data dropped */
                    System.out.println("onDragDropped");
                    Dragboard db = event.getDragboard();
                    if(db.hasFiles()){
                        for(File file:db.getFiles()){
                            String absolutePath = file.getAbsolutePath();
                            Image dbimage = new Image(absolutePath);
                            ImageView dbImageView = new ImageView();
                            dbImageView.setImage(dbimage);
                            targetBox.getChildren().add(dbImageView);
                        event.setDropCompleted(true);
                    }else{
                        event.setDropCompleted(false);
                    event.consume();
    }and this is the outcome
    May 17, 2012 11:27:41 AM javafx.fxml.FXMLLoader logException
    SEVERE: java.lang.NullPointerException
    /C:/test_workspace/NetBeans/MZlike/build/classes/mzlike/sceneBuilder.fxml:-1
      at mzlike.Sample.setupGestureTarget(Sample.java:61)
      at mzlike.Sample.initialize(Sample.java:56)
      at javafx.fxml.FXMLLoader.load(Unknown Source)where line 61 is
            targetBox.setOnDragOver(new EventHandler <DragEvent>() Edited by: Radosław on 2012-05-17 02:46

Maybe you are looking for

  • Strange things happening on imac startup. Need advice! (pre 10.8.3 update)

    Hey there! So I turned my imac (2.7 i5 OS X 10.8.2 12GB RAM 1TB) on this morning and got no chime and black screen. Held power button in to turn off, turn back on, got the chime this time but got stuck on load screen with spinning wheel thing (it sto

  • How to reduce size of C:\Windows\winsxs folder in windows 2008 R2?

    Hello, Is there any way to reduce size of C:\Windows\winsxs folder in windows 2008 R2 simular to  DISM /online /Cleanup-Image /SpSuperseded Many thanks

  • Junk Mail Flagging Issue

    I was trying to correct an error I made with Mail and I clicked reset in the junk mail pane. Now it no longer marks anything as junk. I have junk filtering enabled. It's set to mark as junk but leave it in my inbox. I know this is training mode and I

  • When using SUS, clients say software's up to date when it's not.

    I'm trying to get my Software Update service up and running and it all seems to be working (clients see server) except that every client reports that software is up to date even though I've got all updates copied and enabled (just trying to save band

  • How can I download & reinstall previously purchased software?

    I purchased Pagemaker 5 many years ago and updated to PM 7 since then. I have a receipt & serial # for the upgrade but no longer have the receipt or the original box with the serial # for PM5. Computer was hit by lightening and had to install all new