Results 1 to 3 of 3
  1. #1
    jazgold is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Default File drop zones don't move with window in Firefox

    I have a java applet which allows users to upload files.

    The code for the drop zones is grabbed from: FileDrop (Taverna 1.7.0.0 API)

    Things seem to work fine for the most part. Unforunately in Firefox in Mac OSX (especially Leopard), when the user drags the browser window containing the applet, the drop zones strangely don't move. That is, they remain in the same location on the screen, so when the applet moves, they have moved relative to the applet. If they user moves the window far enough, they zones might not even be within the confines of the window any longer. If the user doesn't move the window, it's fine. If they do, they they must drop the file where the zone was, not where the visual drop zone appears to be on the screen.

    Here's the applet:
    TRintuition workBench Uploader

    It's very odd, and other browsers seem to do fine.

    If you've seen anything like this before, please let me know. thanks:)

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Please post this message in firefox as well... hope they could look into it. I havent tried those things ..
    dont worry newbie, we got you covered.

  3. #3
    jazgold is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Default workaround: window moving event?

    it's possible that i've done something stupid, or that i've stumbled onto a big here.

    i'm thinking of trying to force redraw (invalidate) the applet whenever the browser window is moved. perhaps this will get firefox to really redraw the drop zones.

    i'm not sure if capturing a window-move event is possible. i looked into the WindowListener (http://java.sun.com/j2se/1.4.2/docs/...Listener.html), but it doesn't seem to listen to window movements or resizing. just maximing, minimizing, and focusing.

    not sure if this hack would work, but if anyone knows how to capture these events, i'd give it a try...

    thnx... peace

Similar Threads

  1. Help with Move Shape
    By romina in forum AWT / Swing
    Replies: 2
    Last Post: 12-09-2010, 04:25 AM
  2. Getting domainname/user in Firefox
    By Ganesh Prasad in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-14-2008, 02:13 PM
  3. Move to forum 'New To Java'
    By lalithalydia in forum New To Java
    Replies: 1
    Last Post: 01-31-2008, 08:16 AM
  4. IE and Firefox
    By Ed in forum Advanced Java
    Replies: 1
    Last Post: 06-15-2007, 05:16 PM
  5. How to Move a File to Another Directory
    By Ada in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 02:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •