Ensemble  Example :  Minimize, Maximize  (pbm)  after drag and move

Hi i am trying to write a sample application which looks like Ensemble Example , where the stage is set as 'UNDECORATED'
i am getting the pbm like this .
Steps for reproducing the pbm ..
1. Run JavaFx Ensemble.
2. Maximize the application
3. drag and move the application little bit.
now try to Minimize or Maximize it throws exceptions... and cant able to Minimize or maximize the application
how to solve this pbm ...
its urgent please ?

Pugazhendhi wrote:
Hi i am trying to write a sample application which looks like Ensemble Example , where the stage is set as 'UNDECORATED'
i am getting the pbm like this .
Steps for reproducing the pbm ..
1. Run JavaFx Ensemble.
2. Maximize the application
3. drag and move the application little bit.
now try to Minimize or Maximize it throws exceptions... and cant able to Minimize or maximize the application
how to solve this pbm ...
its urgent please ?Exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     at java.util.ArrayList.rangeCheck(ArrayList.java:604)
     at java.util.ArrayList.get(ArrayList.java:382)
     at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:141)
     at ensemble.controls.WindowButtons$3.handle(WindowButtons.java:42)
     at ensemble.controls.WindowButtons$3.handle(WindowButtons.java:39)
     at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:60)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:162)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:115)
     at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:47)
     at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:28)
     at javafx.event.Event.fireEvent(Event.java:171)
     at javafx.scene.Node.fireEvent(Node.java:5919)
     at javafx.scene.control.Button.fire(Button.java:179)
     at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:189)
     at com.sun.javafx.scene.control.skin.SkinBase$5.handle(SkinBase.java:318)
     at com.sun.javafx.scene.control.skin.SkinBase$5.handle(SkinBase.java:311)
     at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:56)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:162)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:115)
     at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
     at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:47)
     at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
     at javafx.event.Event.fireEvent(Event.java:171)
     at javafx.scene.Scene$MouseHandler.process(Scene.java:2785)
     at javafx.scene.Scene$MouseHandler.process(Scene.java:2606)
     at javafx.scene.Scene$MouseHandler.access$1300(Scene.java:2579)
     at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1252)
     at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1857)
     at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:203)
     at com.sun.glass.ui.View.handleMouseEvent(View.java:288)
     at com.sun.glass.ui.View.notifyMouse(View.java:548)
     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
     at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
     at java.lang.Thread.run(Thread.java:722)

Similar Messages

  • How can i let a move clip complete his motion tween movement after dragging and dropping it

    hi how can i let a move clip complete his motion tween movement after dragging and dropping it
    i am using this code and there is a motion tween applies to the movie clip r_mc
    r_mc.addEventListener(MouseEvent.MOUSE_DOWN,fun); r_mc.addEventListener(MouseEvent.MOUSE_UP,fun2); function fun(event:MouseEvent):void { stop(); r_mc.startDrag();
    function fun2(event:MouseEvent):void {
    play(); r_mc.stopDrag();

    i have a simple .fla file wich contains MC that has
    a motion tween(its moving from the left to the right of the stage)
    this motion tween covers the whole time line (  there is only 50 frames in the time line)
    i mean in the frame 1 the MC appears in the left of the stage
    and in the frame 50 the MC appears in the right of the stage and there is a motion tween between them
    every thing till now working well
    i want to make that MC dragabble
    so when i drag the MC i will use stop()
    and when i drop it i will use play()
    but the problem is that the mc doesnt move and complete
    his motion tween movement when i drop it
    for example the MC will be in the middle of the stage in frame 25
    in this frame (25) i am draging the MC ,stoping the timeline,dropping the MC and resum playing the timeline again
    but the MC freezes in the middle of the stage and doesnt go to the right of the stageo until the flash loops and start from the frame 1 again
    here is the example wich i am worikng on
    http://www.mediafire.com/?ia47r4owha7sz8v
    thank u very much and sorry for my bad English

  • ITunes 11.0.4 still copying files to media library after dragging and dropping while holding down "option"

    I'm having trouble adding media without automatically copying the file to the iTunes media libary after dragging and dropping while holding down "option."
    In Preferences > Advanced, "Copy files to iTunes media folder when adding to library" is checked. When I drag a file into iTunes while holding "option", the green "plus" icon disappears. However, iTunes still copies the file to media folder.
    Any suggestions?

    you can also try:
    I found that if I SCROLL down to the word 'playlist' and hover around the name, a 'show' comes up.  Click on the 'show' and everything magically appears.

  • Need help on transportable tablespace, after convert and move datafile over

    I need help on transportable tablespace, after convert and move datafile over the target server, How do I plug them in to the ASM instance?
    And How do I start the database ? what controlfile I should use?
    Thanks.

    I got error like this:
    RMAN> copy datafile '/oracle_backup/stage/ar.269.775942363' to '+RE_DAT';
    Starting backup at 29-MAY-12
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 05/29/2012 17:46:21
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /oracle_backup/stage/ar.269.775942363
    How to deal with this?
    I deleted all the current target tablespaces including contents. Do I have to do anything to make the database recognize those converted datafiles?

  • How to drag and move duplicated movieclip in flashMX

    i would like to know how to drag and move duplicated movie
    clip in flashMX? i'm unable to drag and move duplicated movieclips
    but able to see duplicated movieclip on the stage. Is there anyone
    who can show me or direct me to any tutorial site?
    Thanks

    i have just changed to Flash MX2004 and below is my code. I'm
    not sure what has gone wrong with my script as i still unable to
    drag my duplicated movieclip? hope u guys can help me out!
    var mySelection = "";//Global declaration
    var totalmc = 0;
    wire.onPress = function ()
    this.createEmptyMovieClip(["mc"+totalmc],
    this.getNextHighestDepth(["mc"+totalmc])); //Create a newMovieClip
    with variable name "mc1""
    duplicate(["mc"+totalmc]);
    //trace(["mc"+totalmc]);
    dragging(["mc"+totalmc]);
    mc = attachMovie("idwire", ["wire"+totalmc++],
    this.getNextHighestDepth(["wire"+totalmc])); //store the Movie into
    mc1 by attaching
    mc._x = 273;//(Stage.width - mc1._width)/2;
    mc._y = 196.5;//(Stage.height - mc1._height)/2; //setting
    the corrdinates for x and y axis
    dragging(["wire"+totalmc]); //calling the dragging function
    //trace(mc1._width +","+ mc1._height);
    //Function for dragging
    function dragging()
    mc.onPress = function()
    this.startDrag(true);
    mySelection = this;
    mc.onRelease = mc.onReleaseOutside = function()
    stopDrag();
    function duplicate()
    mc.duplicateMovieClip (["mc"+i], i);
    i++;
    //trace("mc"+i);
    //trace(x);
    //Btn function for flipping
    flip.onRelease = function()
    mySelection._rotation += 10;
    //Btn function for delete
    del.onRelease = function()
    mySelection.removeMovieClip();

  • Datagrid not refreshing after drag and drop

    Please help me solve this: my datagrid DOES refresh itself,
    but only after the SECOND drag and drop.
    Here's an example of my datagrid :
    1. Label a Description a
    2. Label b Description b
    3. Label c Description c
    When I drag the third row to the top of the datagrid, I want
    to see updated row numbers like this:
    1. Label c Description c
    2. Label a Description a
    3. Label b Description b
    But I see this
    3. Label c Description c
    1. Label a Description a
    2. Label b Description b
    Now let's swap rows 2 and 3; now the datagrid will correctly
    show 1. in the first row! (Of course 3. and 2 are messed up until
    the next drag and drop).
    1. Label c Description c
    2. Label b Description b
    1. Label a Description a
    As you can see, row #1 is now correctly displaying "1." This
    is happening only after the second drag and drop occurs.
    Here's my strategy:
    1. I'm using a datagrid with an ArrayCollection as the
    dataprovider.
    2. The datagrid uses the dragComplete event to call a
    function (function shown below).
    3. This function uses a loop to update the property GOALORDER
    of each row in the ArrayCollection
    4. This function also creates an object of new GOALORDER's to
    update the database (this part is working fine).
    I've noticed somewhere in the docs that, when a datagrid is
    experiencing multiple changes it turns on
    ArrayCollection.disableAutoUpdate automatically. IS THIS TRUE? This
    could explain why my datagrid does not immediately refresh.
    Is there some way to drag and drop, update the
    ArrayCollection, and refresh the datagrid- in that order?
    Thanks!
    Here's the misbehaving function!
    // re-sort the list NOTE first index=0, first goalorder=1
    private function reSort():void
    var params:Object = new Object();
    params.DBACTION = "reorder";
    var i:int;
    var g:int;
    for (i = 0; i < acGoals.length; i++)
    g=i+1;
    // replace GOALORDER in ArrayCollection
    var editRow:Object = acGoals
    editRow.GOALORDER = g;
    acGoals.setItemAt(editRow, i);
    // create multiple entries to edit database
    params["GOALID"+g]= acGoals.getItemAt(i).GOALID;
    params["GOALORDER"+g]= g;
    params["rowsToUpdate"] = g;
    //HTTPService to
    hsGoalAction.send(params);

    Fateh wrote:
    I just forgot to make the event scope of the dynamic action LIVE...and that the <tt>font</tt> element has been deprecated since 1999 and now does not exist in HTML?

  • Mail "New Message" window retreats to background after drag and drop attachment from Finder to Mail "New Message", click, and Finder window stays in foreground even when not in focus

    Hi, I'm surprised I can't quickly find if anyone else is having this issue. For me it has been going on since Lion on my 13" MacBook Pro 2011 and it's still persisting in Mavericks, and even still now that I've "downgraded" to a 15" MacBook Pro 2010 with Mavericks.  The behavior is odd and difficult to explain concisely. Basically, when I want to add an attachment to Mail, I'll Cmd+Tab over to Finder click and drag and Cmd+Tab back to Mail, and drop the attachment. At first it looks fine, but when I click in the New Message window where I just dropped the attachment, to move the cursor, it retreats to the background and the Mail Main Window comes to the foreground. Then, if I click on that, the Finder window that I just used comes to the foreground. Sometimes if I switched to another app before going to Finder to select the drag and drop, that other app window will appear in the foreground instead. If I click on the other app window that is now in the foreground, then the Finder window that was last used will come to the foreground. The only thing that seems to fix this switch-a-roo effect is Cmd+Tab-ing back and forth a few times, or click on the window "frame" at the top to move the window around.
    The way to prevent this is to have my Mail Message window visible in the foreground side by side with the Finder window when the drag and drop occurs (this is a tedious extra step if mulitple windows are open, or to use the add attachment command in the menu within Mail. But it sure is annoying buggy behavior.
    Thanks
    Daniel

    Yep, I get exactly the same thing when using Thunderbird mail client on my 2011 iMac running Lion. I've been putting up with it for at least a year, maybe longer.
    For me it appeared to start after a Thunderbird update, so I figured that was the cause and couldn't find a solution at the time. However I've now noticed it starting to happen in Apple Motion 4 when dragging files from Finder into a DropZone in my animations. Motion remains the active program but the Finder window sits on top until I Cmd-tab out to a third open program (ie not Finder) and back to Motion again.
    This is the first indicator I've had that it's an OS X issue.
    Be great to find a solution as D&D is by far my preferred way of adding attachments to emails and similar tasks.

  • How to auto close finder window after drag and drop?

    In Tiger, I would file away items on my desktop my dragging them to the hard drive and then digging down to the appropriate folder. The finder window would then close automatically after dropping the file. Is there a setting in Snow Leopard that will enable similar functionality? Whenever I complete a drag and drop now the finder window just stays open, which isn't a huge issue, but I'd still like to change it. Thanks!

    Here is the test code:
         lo_nd_table_data_source = wd_context->get_child_node( name = wd_this->wdctx_table_data_source ).
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = lt_table_data_source ).
          "Read Dummy Table
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = it_table_data_source ).
        CONCATENATE ls_airline_info-carrid ls_airline_info-connid ls_airline_info-fldate INTO ls_table_data_source-row_key.
          ls_table_data_source-parent_row_key = ls_airline_info-carrid.
          ls_table_data_source-is_leaf   = abap_false.
          ls_table_data_source-expanded  = abap_true.
            SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_table_data_source.
         LOOP AT it_table_data_source INTO wa_table_data_source WHERE carrid = ls_airline_info-carrid
                                                                and   connid = ls_airline_info-connid
                                                                and   fldate = ls_airline_info-fldate.
          ls_table_data_source-connid    = ls_airline_info-connid.
          ls_table_data_source-fldate    = ls_airline_info-fldate.
          ls_table_data_source-PRICE     = wa_table_data_source-PRICE.
          ls_table_data_source-CURRENCY  = wa_table_data_source-CURRENCY.
          "Select all data to the new dummy table structure.
          "Move one row of the table to ls_table_data_cource correspondingle.
          APPEND ls_table_data_source TO lt_table_data_source.
          DELETE ADJACENT DUPLICATES FROM lt_table_data_source.
       ENDLOOP.
          lo_nd_table_data_source->invalidate( ). "Clear the table data
          lo_nd_table_data_source->bind_table( lt_table_data_source ). "Refresh new data
    Thanks,
    Kiran

  • After drag and drop initiation get rid of dragged symbol

    Here is the code I have now for the drag and drop initation
    onMouseMove = function(){
    updateAfterEvent();
    redCircle.onPress = function(){
    startDrag(this,true)
    redCircle.onRelease = function(){
    this.stopDrag();
    checkTarget(this);
    redCircle.onReleaseOutside = function(){
    this.stopDrag();
    checkTarget(this);
    function checkTarget(drag){
    // _dropTarget method (commented so non active)
    // trace(drag+ "has been dropped on "+eval(drag._droptarget));
    if (drag.hitTest(greyCircle)) {
    drag+ gotoAndStop (32);
    } else {
    gotoAndStop (31);
    What I want to happen is that after you drop the dragged symbol into the landing area the symbol disappears instead of staying in the landing area.
    I am just wondering how to do this.

    try:
    onMouseMove = function(){
    updateAfterEvent();
    redCircle.onPress = function(){
    startDrag(this,true)
    redCircle.onRelease = function(){
    this.stopDrag();
    checkTarget(this);
    redCircle.onReleaseOutside = function(){
    this.stopDrag();
    checkTarget(this);
    function checkTarget(drag){
    // _dropTarget method (commented so non active)
    // trace(drag+ "has been dropped on "+eval(drag._droptarget));
    if (drag.hitTest(greyCircle)) {
    drag+ gotoAndStop (32);  //<- what's that supposed to do?   <----------That makes the timeline go to frame 32 when the symbol is dropped into the                                                                                                              //landing area
    drag.removeMovieClip();
    } else {
    gotoAndStop (31);
    What I want to happen is that after you drop the dragged symbol into the landing area the symbol disappears instead of staying in the landing area.
    I am just wondering how to do this.         
    the drag.removeMovieClip(); did not work the movie clip drop symbol was still was visible when it was placed in the landing area

  • List display update labelfunction after drag and drop

    I have two list boxes. I have drag and drop enabled and depending upon whether an item has been already dragged to the right box, I want its display in the left box to change (gray out). I have the  label function working fine but it's always one item behind, i.e., when I drop an item in the right side box, it's not grayed in the left box until the next action.
    I've tried after the drop things such as:
    dp.refresh()
    leftSideBox.validateNow();
    Anything else I can do to get the left side box to re-run the label function for the dataprovider as soon as the drop is done?

    Wow. It's almost as if you knew the answer. Thanks.

  • Firefox crashes after dragging and dropping any component.

    When the TorButton add-on is enabled, Firefox will crash when an attempt is made to drag and drop any component. This includes tabs, text, images, and any other item drag-and-drop-able under normal circumstances.
    This is a known bug and info lives at https://bugzilla.mozilla.org/show_bug.cgi?id=715885 but I don't know if any fix has been found.
    I am running version 3.6 of Firefox, which I recognize is rather out of date. This is because I have yet to update from OS X 10.4.
    Thank you for any input you have.

    It looks like the patch for this crash hasn't been checked in, and unfortunately, since firefox 3.6.28 is the last planned update for 3.6, it doesn't look like it will ever be fixed on that branch :(

  • Music not showing up in library after drag and drop (7.0)

    Music will not show up in library after draging and dropping .mp3's into itunes. Also won't show up if I try the File > Add Folder to Library. The processing files box shows up like its going to work, but it just doesn't. I have tried many differnet mp3's, some actually DID import.
    Also, double clicking on an mp3 will bring up itunes, but it will not load or play the song.
    I currently have 55.5GB of music, and 10,158 songs. Not sure if that has anything to do with it.
    xw8200 HP   Windows 2000  

    Try holding down the Shift key in Windows when launching iTunes. In the resulting dialogue you will get the option to create a new library or navigate to an existing one. The default location for your iTunes library is in \Documents and Settings\Username\My Documents\My Music\iTunes\. Look in there and see if you have more than one library file (they have the extension .itl) If you have more than one try opening them in turn, you may find your original library is still intact: How to open an alternate iTunes Library file

  • Missing files after drag and drop

    In the newest FCP X, I accidentally imported a couple .mov files into the wrong event. I dragged and dropped them into the correct event but now they are missing. I've checked each event in FCP, and also looked for the files in Finder (opening each event from FCP), for the files and can't find them. I can't find them at all in the FCP X created backup versions. Any other ideas on where to find the files?

    Ah ha!  Now I bet I know where they are!   Go to the original Event, or the Event you copied them to.  Dont' search names, look at the clips them selves.  FCPX by defualt changes the names to creation time/date.  Select everything in an Event, go to the Modify menu, to "Apply Custom Name", and select "Original Name From Camera".  I bet they show up.
    From now on, when you move or copy stuff, to verify it will work properly, and for peice of mind, highlight what you want (Event, Project, media file), go to the File menu and select the move or copy command.
    And remember that FCPX renames your video when you import it.  I hate it, too.  But, that's how they do it.
    Also remember when you rename the file in FCPX, the creation time/date name stays in the Finder.

  • [BUG] Cursor Disappears After Drag And Drop

    hi,
    every time i drag and drop an image out of firefox into an already open document in photoshop cs5, my cursor disappears (it doesn't change to reflect the program specific tasks like type/move/scale etc) and i have to restart the program.
    please fix this?
    cheers

    sorry, forgot to mention that...
    mac os x server 10.6, all updates
    firefox 3, all updates

  • Can't see music even after drag and drop

    Since I was having the same problems with MM and MS, I tried the solution I saw several people post on here and have done the following:
    On my BB Pearl 
    options>media card
    media card support: on
    encryption mode: none
    mass storage mode: on
    auto enable mass storage mode when connected: yes
    Connected phone to pc using cable then dragged and dropped music files to E: drive music folder.
    Removed phone from pc but music files are still not showing up.
    Solved!
    Go to Solution.

    when you have your device plugged and you can browser it with Windows Explorer,
    delete all bbthumb.dat files in the Music\ folder.
    then unplug, and open the media application. And wait.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

Maybe you are looking for

  • SharePoint 2013 - Refiners "Sorry, something went wrong."

    Good Afternoon, I have an issue that has had me stumped for a couple of days now. I have a number of search results pages and on one of them and only one of them I am getting an error. Whenever I add a refiners webpart and save the page everything wo

  • Viber messages and data lost from iTunes backup HELP

    This morning I backed up everything in iTunes on my iPhone 4s, which I just had replaced due to a cracked display. When I restored my replacement iPhone from the latest back up, to my horror, all Viber history and messages had vanished and only the b

  • Show all nodes in a hierarchy

    Hi all, I am working with a report where I am showing a hierarchy. I am wondering if it is possible to see all nodes in the hierarchy, that is even if some nodes do not contain data. By default only the nodes that contain data are displayed. How do I

  • Import Word to InDesign while keeping lay-out

    Hello I want to import a Word-file into InDesign, but I want to keep my lay-out, and I want that it's possible to still edit my Word text, in InDesign. Can anyone help me please? Grts Jay

  • Combining attributes of multiple tables in one iterator.

    One simple question. How to create an iterator that includes atrributes from more than one associated tables in the application where the EJB 3.0 is the basis. As far as i undrstand it's more easily to do this through ADF BC, where we can create VO u