[JSP] Drag & Drop and OrdHttpUploadFile...

Is it possible to create a "drag & drop" feature that get a file from desktop to browser and adapt it to an Oracle Multimedia OrdHttpUploadFile object?
Looks like the OrdHttpUploadFormData.*getFileParameter* only get a parameter there is in a input "file" control in the form, but I can't set a value to it programmatically, even with JS.
So there's a way to do something like it?
Thanks in advance.

I am guessing you are using an ImageIcon to put the image into the JLabel. I would suggest creating your own version of "ImageIcon". In the interface Icon, the paintIcon method gives you access to the component which is your JLabel. You can get the size of this and draw the image to fit the components size. getIconHeight/Width() should work ok if you just return the initial size that you want the icon to be.
Another option is to extend JPanel and override its paint method. This would give you direct acces to paint whatever you want, and you can resize your image accordingly when the size changes.
As far as the flashing goes, you might want to post code (use [ code ] [ / code] tags). There might be something there that someone will see.

Similar Messages

  • ITunes crashes when try to add songs to library both drag-drop and Add folder/file option

    I got the old iTunes updated, it crashed when open. Then I uninstall and download the newest iTunes. Restart my laptop.
    I even start iTunes in safe mode but it keep crashing.
    I try Add folder first, then Add file, then drag and drop. None of them work and I only have 700MB total of songs, no vids
    There were no pop up for error code or anything, iTune just crash when I try one of those add options.
    If anyone can help I would really appreciate

    after I got offline yesterday, I tried drag-drop again, it worked.

  • Problem with Drag & Drop and multiselection in tables

    Hi,
    we have a problem concerning drag and drop and multiselection in tables. It is not possible to drag a multiselection of table rows, as the selection event is recognized or handled before the drag event. So before the drag starts, the selection will be changed and only a single row is selected at the position where you started the drag with a mouse click.
    There was also a java bug with the id 4521075 regarding this problem a couple of years ago. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4521075.
    This bug has been resolved but in our application we have not enabled drag by setting setDragEnabled(true) on the table as we have an own implementation of a DragSource (which is the table component), and a DragGestureRecognizer to control mimetype and data to be dragged.
    So my question is: Is there any solution for this case without calling setDragEnabled(true) on the table? Or is it possible to enable drag on the table and override some method where the drag recognition happens and the transferable object is created?
    Thanks,

    Thanks for reply,
    Steps to reproduce the problem:
    1) user clicks the ascending sorting icon in the table(the button get disabled after sorting the table).
    2) After sorting user drag and drop some row over another row.
    3) Now the table is no longer sorted.
    4) If user again wants to sort the table now, he cannot do it because the sorting button is still disabled.
    So I want the user to sort the table again, without refreshing the page
    Thanks and Regards,
    Tarun

  • Strange UI sticking issue with drag/drop and JList

    Hi all,
    I have implemented drag/drop between a jtree and jlist. The jtree can accept drops from the jtree (nodes to other parent nodes) and from the jlist. The jlist can accept nodes of the tree being dropped on it.
    Let me say this much, it all works. Works fine and great. BUT, the purpose of my post is I am seeing a very strange and not easily reproducible problem.
    I should first say that after a successful drop, the list removes the selected items. I do support drag/drop for multiple items.
    When I drag items from the list to the tree, reasonbly normal (not too fast), everything seems to work every time. But if I drag an item quickly from the list to the tree, for some reason after the items are removed from the list, another item is selected, sometimes NOT in the place of where the item(s) were selected. Infact, when I drag quickly, I notice the selection changes in the list itself. I only accept tree objects being dropped in the list, so there is no ability to drag/drop list items onto itself, and thus if I drag a list item around the list normally, nothing changes..the item I am dragging stays selected and the cursor shows the drag arrow.
    So this problem seems seems odd. I can reproduce it fairly easily, but only when I click and drag quickly.
    Anyone have ideas? I don't see where in my list code that as I drag, when drop is done, etc that I select anything in the list. I have tried JDK 1.4.1 and 1.4.2 and it does it in both. I don't see a bug in the bug database for it, and I am not sure its a bug in the JVM or my own code!
    Any help is appreciated. Can't really post code as its a large set of code and it is dependent on our company project, so it would take some time to take the code out into its own app to test it again.

    Hi,
    +" Please note that dropSite==null is a legal value for collection components. dropSite=null and DropOrientation==ON indicates that the drop has happened outside the data portion of the collection component and should be treated as a drop on the entire component Also note that dropSite==null and DropOrientation==AFTER indicates that the drop has happened on an empty collection component and the user intends to append the data."+
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10684/oracle/adf/view/rich/event/DropEvent.html#getDropSite__
    List dropRowKey = (List) dropEvent.getDropSite();
            //if no dropsite then drop area was not a data area
            if(dropRowKey == null){
                return DnDAction.NONE;
            }Frank
    Edited by: Frank Nimphius on Feb 18, 2011 11:18 PM

  • Drag drop and dial up

    Has anyone tried using drag and drop with a dial up system? I
    am just curious if it works. My hunch is it will but a member of
    our project team had raised this question.
    :

    It doesn't matter. Once any given slide is loaded for the
    user to see,
    that slide is 'local' - not running from the server. In fact,
    the entire
    published file (.swf) is ultimately loaded to the user's
    computer cache
    and run from there. Any slide they're viewing will be running
    locally,
    not from the server. So once they see the D'n'D exercise, it
    is local.
    Any 'lag' would be due to the computer's processing not the
    dialup
    connection.
    The only slowness related to the dialup connection is how
    long it takes
    for a given slide to appear to the user. But once it appears
    and can be
    interacted with, it's local.
    Erik
    AW corp wrote:
    > I would like to know if the matching question
    functionality works with a dial
    > up connection. Because you drag and drop your answers is
    there lag time once
    > you have selected an answer and drag it to the
    appropriate box in the other
    > column.
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Drag & Drop and Magic Wand and Any Selection Bug...

    Helllo,
    I am experiencing a continuous bug in Photoshop CC 2014.
    First I'm on a Mac G5 using OSX version 10.8.5.
    The bug I am experiencing is not allowing me to select anything using the Magic Wand tool or even the Arrow Selector in any layer if I drag and drop an image from the web to Photoshop.
    I have to physically click on the Mac's main background window outside of Photoshop and then click back to Photoshop to get it to work.
    Thanks,
    JW

    I am guessing you are using an ImageIcon to put the image into the JLabel. I would suggest creating your own version of "ImageIcon". In the interface Icon, the paintIcon method gives you access to the component which is your JLabel. You can get the size of this and draw the image to fit the components size. getIconHeight/Width() should work ok if you just return the initial size that you want the icon to be.
    Another option is to extend JPanel and override its paint method. This would give you direct acces to paint whatever you want, and you can resize your image accordingly when the size changes.
    As far as the flashing goes, you might want to post code (use [ code ] [ / code] tags). There might be something there that someone will see.

  • Drag drop and ProgressBar cancel button

    Hi,
    I have a class that extends CDragDropTargetFlavorHelper, during ProcessDragDropCommand I want to show a ProgressBar (the code that does this is actually in another, model only, plugin - might be significant), however, though the progress bar shows the cancel button doesn't.  Unless I delay the processing until after the drop is complete by scheduling the command - if I either process the command or schedule and process scheduled commands the cancel button doesn't show.
    Scheduling the command gives a bit of a delay to the user (even with highest priority) and also no ability to feedback 'drop failed'.  So I'd like to:
    - preferably get the cancel button to show without scheduling the command
    - know immediately when a drop has been completed and process scheduled commands.
    Thanks in advance
    Ian

    Thanks Ned,
    I have since been continuing to research this and it would seem that implementing the HitTest could be the way to go. If anyone has any experience or advice to support this I would be grateful.
    Regards
    Chris

  • I can import my first clip to the video library, but not the second clip. I tried dragging-dropping and using the "E" key, but only the first clip will show up in the library. I use IMovie 9.0.9 and OSX 10.8.5. with no problems until yesterday.

    I can drag my first clip from the New Event window into the Project Library, but not the second. I can highlight the second clip in the New Event window, but it won't "drag". The "E" key works for the first clip, but not the second.I've been using IMovie daily and the problem just appeared. No upgrades to the computer and no new software installed.  IMovie 9.0.9 and OSX 10.8.5

    Thanks victoryhat.  I learned some new things from this very clear tutorial.  But it didn't answer my question about why the titles don't stay with the video when I export it.
    He did mention something that might be a clue however.  When he talked about importing a title he created as an image, he noted that he was careful to make the image the same size as the video he was adding it to: 1280 x 720.  Since I took the video with an iPhone in the vertical position, my video image isn't the same size and orientation as the titles.
    Maybe there is a way I should be setting the screen for this size???  I'll go back and play around.  Meanwhile thanks for alerting me to Gary Rosenzweig's MacMost tutorials.  Very clear.  I'll look for more.

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • Mulit task selection and drag drop

    Hi Gurus,
    SAP cProjects UI does not have capability of Drag Drop and multi task selections in the project strucuture tree.
    I have narrowed down two options which include customisations.
    If any one knows simpler options it would be a great help.
    Thanks in advance.
    Niketan.

    Hi,
    > Drag & Drop and multi task selections in the project strucuture tree
    will be available with "SAP Portfolio and Project Management 5.0" (the successor of cProjects 4.5 and SAP RPM 4.5).
    Kind regards,
       Florian

  • Can't copy pdf via drag & drop to iBooks

    Hi everybody,
    I wanted to copy some PDFs to my iPad via drag & drop and iTunes but I am suffering under the problem that nothing happens.
    I even get not displayed a "+" on my cursor and everything I have tried, nothing is copied to the ipad..
    iPad is running under iOs 4.3 and iTunes is up-to-date.

    I thought you were trying to find out how to drag and drop PDF files in your iTunes library in order to sync to your iPad but there are ways of sending files without syncing.
    If it is just a PDF file - not a book - you can attach the file to an email and send it yourself from your computer to the iPad, open it and choose the option of open in iBooks. When you open the file in your email, tap the curved arrow icon in the upper right corner and select open in iBooks. Then the PDF will be stored in books for later viewing.
    You can also sync PDF files with apps like Dropbox using WiFi. There are other apps available that will do the same thing.

  • ICal to Mail drag & drop not working in OSX 10.10

    In a frequently used work flow I dragged an iCalendar entry and dropped it to mail, where it was received as .ical attachment. Sometimes I used copy/paste to insert the entry's data as plain text.
    This does not work any more with 10.10. Is there any better way to insert the ical file into an existing (reply-to) mail, without creating a blank invitation first and doing copy-paste there?

    Thanks, I have seen this but this process has the same number of steps as the blank invitation - I do not need to close the empty window in your version, but have to locate the .ics file in the finder.
    Could it be that a product manager or programmer at Apple did not understand the merits of the old drag&drop and has killed this feature without offering any replacement?

  • Drag & Drop Text into place holder while Matching  style. Possible?

    Is it possible to drag text into a placeholder text box and have the dragged text assume the style of the placeholder text? I know that I can "paste and match style" which I use constantly but I am trying to build a template for other people to use and would love for them to simply be able to drag & drop text into a template. It seems like this would be the default behavior for a template but it does not seem to be.
    Am I missing something obvious?
    -joey
    G5 Quad   Mac OS X (10.4.8)  

    Eric Brooks wrote:
    I either have to select, copy, and then paste matching formatting, or drag, drop and then reformat the text from the styles. Is there any way I can drag and drop so that the text being dropped picks up the formatting of the place holder I'm dropping it into? It seems to me that this is what a placeholder should be for.
    Am I missing something?
    Perhaps the fact that the definition of placeholder is not the same for you and for the Pages designers
    Seriously, I think that you hit a design flaw. Here we are end users trying to help end users. We are unable to change the program behavior.
    _Go to "Provide Pages Feedback" in the "Pages" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'09
    Yvan KOENIG (from FRANCE jeudi 19 juin 2008 21:23:23)

  • How to improve Drag&Drop?

    Hey guys,
    we have a graphical editor that we realized with GEF. In this graphical editor you are able to create a process by dragging and dropping elements from the palette and connecting them.
    One nice feature we have is to drag and drop an element on a transition which inserts this element on this position in the "chain".
    The problem we have is that the area to drop the element from the palette is pretty hard to hit. The line itself has a width of 1px. Below the transition the drag area starts exactly where the line starts, so it's hard to hit it from below. Above the transition it's a bit easier because there is a small area of probably 16px. Which is nice because from this side it's much easier to hit the transition. The worst case is a vertical transition because on the sides left and right there is no extended drop area which makes it very hard to hit the transition.
    My question is where I can influence this behaviour. I want to improve the user experience for the drag&drop and so I want to extend the drop area for the transition. Is this possible in GEF? If yes, where do I have to look? For a transition it seems to be harder than for an element that has a fixed size.
    Cheers, David

    sar_lax,
    Have you done any research at all? Even tried to find code examples other than posting here? Try this:
    1) go to www.google.com
    2) enter search words "java drag and drop"
    --A                                                                                                                                                                                                                                                                                                                                                                                           

  • Unable to upload a file with Drag and Drop and http

    Hello,
    I am trying to upload a file through the web interface (Netscape 4.7 and IE 5.0). When I click un upload, Via Drag and Drop, a new window is started, but never completes.
    With Netscape, I get a message box: Netscape is unable to locate the server null. Please check the server name and try again.
    With IE 5, I get an error: This page can not be displayed.
    Are there any files I need to edit on the PC side to get this to work?
    Thanks
    Scott
    PS I think you guys are doing a great job with support on iFS.

    WebUI Drag & Drop requires FTP to be running and available.
    Drag & Drop is really just uses the browser built in FTP ability.

Maybe you are looking for

  • Period 001/2010 is not open for account type S and G/L 799999

    Hi friends I am in SD. I am trying to create stock for newly created material, movement type 561. system give error Period 001/2010 is not open for account type S and G/L 799999. I use the T. Code OB52, i am confuse which combination i.e. variant, A,

  • Bulk Load from OIM to OID

    hi, i am trying to figure out how to move existing user from OIM to OID in bulk. Is there anyway by which we can move all the existing user in OIM simultaneously rather than one by one through resource profile by provisioning. Regards Pegasus

  • How to get the parent node of the current node?

    Hi all, i want to get the parent node of the current node and the not the parent of the parent node. thank you very much

  • Change Quiz Buttons

    Should be as simple as a nursery rhyme, but I can't make the gray buttons go away on a quiz slide. If I go to a button's properties and change it to an image button, scroll until I find one approriately colored for my presentation and click OK, the b

  • Query on XML Beans replacing Castor Java -XML Bindings

    Hello, We use Castor XML Framework for today Java - XML bindings and were looking for XML Beans replacement. One of the key problems we face in using XML (maybe a flawed design) is we create XSD for our applications and run Castor to generate Java Cl