Do I need to have data before performing Drag and Drop????
I have gotten drag and drop working with Swing in JDK 1.4b2 using "URL-based" files instead of operating system native files. The way this was accomplished by creating a wrapper class that sub-classed File and would download the contents of the URL to a temporary file and then initiate a normal drag and drop operation using the normal java file mechanisms. However, when you have a large file, the operation can take too long since I am fronting all of the effort at the start of the drag. I would like to be able to delay the need to produce the bytes/files to give to the operating system until after there has been a successful drop, at which point I can do the heavy lifting and raise a dialog telling them that the action is commencing. As best as I can tell, you must have all of the data BEFORE any operation (which could be a potential design flaw!!)
So, is there a way to get a hook that there has been a successful drop to a vm-external drop target before the VM gives the data over? Even if I create my own data flavor (which isn't well documented outside of Text types) won't I still run into the same problems? Am I just overlooking something simple?
Thanks for your help.
Hello
I've had the same problem, but take a look at: http://foxtrot.sourceforge.net/
You can use their API to start the long consuming time job (reading files from the network) and also to paint a progress bar, showing the progress in the Event Dispatch Thread.
This is how I've solved my problem:
I've passed a MyTransferable object to the startDrag method of the DragGestureEvent event.
In the getTransferData method of MyTransferable object (that implements Transferable interface) I've used the Worker.post method of their API which reads the file from the network and updates a progress bar.
The API lets the Event Dispatch Thread enter but not return from the listener method (getTransferData in my case), instead rerouting the Event Dispatch Thread to continue dequeuing events from the Event Queue and processing them (repaint the progress bar). Once the worker thread has finished, the Event Dispatch Thread is rerouted again, returning from the listener method.
Similar Messages
-
IPhoto file creation date inconsistencies during drag and drop
I have noticed that if I drag and drop a photo from iPhoto to Finder, the file creation dates in Finder are inconsistent.
(This question is related to drag and drop only and not File->Export, which always uses the export date and timestamp for the file creation date and thus does not suit my needs).
TEST A -- If the EXIF DateTimeOriginated is 01/01/2013, and today's date is 03/03/2013, then:
In some cases when I drag a file to Finder, the EXIF date is used as the file modification/creation date in Finder
In some cases, today's date is used as the file modification/creation date in Finder
In some cases, a date in between the EXIF date and today's date is used
It appears that for case A1, these are files that do not have a modified copy. That is, if you select the photo in iPhoto and then click "File" -> "Reveal In Finder", the "Modified File" choice will be greyed out.
For cases A2 & A3, iPhoto has inexplicably decided to create modified versions of these files either today or sometime in the past.
TEST B -- I have read that unexplained modifications are tied to the auto-rotate function in cameras, and it does seem to be the case when I performed the test below:
Select a large group of landscape format photos (these would not have been auto-rotated), then drag and drop to Finder. The file creation dates are set to the EXIF date
Add some portrait photos to the group in (1). Now the file creation date of ALL photos including the non auto-rotated photos are set to the current date
The behaviour in B2 is clearly wrong, since the landscape photos should be the same as in B1. This is bug #1.
Furthermore, iPhoto appears to be inconsistent with when these modifications are made. For example, I dragged & dropped an auto-rotated photo on 02/02/2013, then dragged & dropped it again today, then the file creation date in Finder (and also the date of the modified file in iPhoto, as shown in iPhoto File->Reveal In Finder->Modified File) can either the EXIF date (01/01/2013), the late of the last drag & drop (02/02/2013), or today's date (03/03/2013); there does not appear to be any rhyme or reason to this. This is bug #2.
In any case, saying "you should never use drag & drop in iPhoto" (as I have read in some other forum posts) isn't a solution, because Apple should either (a) support this function correctly or (b) remove it altogether. Furthermore, I regularly burn photos to disk for others so having the file date and timestamps correctly set to the EXIF date helps keeping the photos sorted in the directory listings for multiple OS, so File->Export isn't a solution.File data is file data. Exif is photo data. A file is not a photo. It's a container for a photo.
When you export you're not exporting a file. You're exporting a Photo. The medium of export is a new file. That file is created at the time of export, so that's its creation date. The Photo within that file is dated by the Exif.
There are apps that will modify the file date to match the Exif.
The variation you're seeing is likely due to the changes in how the iPhoto library works over the past few versions. Drag and drop is handy, but is not a substitute for exporting, nor intended to be. -
I want drag and drop in the form of icons on my iMac, from all my other Apple devices. I don't want to have to go through iCloud, iTunes and DropBox.
What are you other apple devices?
For an all Mac OS X set, you could write an applescript to perform the task.
Robert -
Compare time slot in dates while making drag and drop..
Hi,
The drag and drop is working fine without conditions, but I have to check the time slots between two dates. If the time of both date are same it should not dropped else it can drag and drop. I use the code below, but not getting executed according to condition.. Please provide suggestion and ideas to get it executed..
declare
l_date_value varchar2(150) := apex_application.g_x01;
l_primary_key_value varchar2(150) := apex_application.g_x02;
l_full_time varchar2(150);
l_time_a varchar2(150);
l_time_b varchar2(150);
begin
select
ltrim(replace(to_char(resv_start_date,'hhmiAM'),'00',' '),'0')||','|| ltrim(replace(to_char(l_date_value ,'hhmiAM'),'00',' '),'0')
into l_full_time
from reservation
where resv_no=l_primary_key_value;
select SUBSTR(l_full_time, 1 ,INSTR(l_full_time, ',', 1, 1)-1) into l_time_a from dual;
select SUBSTR(l_full_time, INSTR(l_full_time,',', 1, 1)+1)into l_time_b from dual;
begin
if l_time_a<> l_time_b then
update reservation set RESV_START_DATE = to_date(l_date_value,'RRRRMMDDHH24MISS') where Resv_no= l_primary_key_value;
end if;
exception when others then
Raise_application_error(-20001,'Error'||SQLERRM);
end;
end;
Thanks..First 3 .as are the component
source. in the last test.mxml file i have written the drag and drop functionality.
can any help me?? please -
Hi,
I am trying to make a photocard in iphoto '09 but when I open an album and then click on card the area where the photos to drag and drop should be is blank. I have managed to make a calender (which has the photos there to use) and can't work out what I am doing wrong. Please can someone help? Thank youPut the photos in an album, open the album and select all, go to the create button and select card - to add more photos to the project drag them ot the card project in the source pane on the left
LN -
Now that I have home share my drag and drop feature doesn't work to create playlists
Now with Home Share there are two subsets of playlists. One is on the hard drive of the acutual computer where the iTunes originated. Once I am at a Home Share computer I cannot use the playlist feature. I can CREATE a playlist and name it, but the drag and drop feature does not work for songs which are not directly located on this hard drive. I can, for some reason, attach an iPod and make a list over on that, but that is all.
Because IE is running in a different user context. You cannot drag and drop anything from Explorer into a different user context. This isn't a "SharePoint" issue, as it relates to any application run as a different user.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Drag and drop data from Numeric Control or Numeric Array to excel file
I have two inquirries about drag and drop:
1. How to drag and drop data from a Numeric Array or Numeric control to excel file
2. How to drag and drop data from a Numeric Array or Numeric control to an Numeric array Indicator?
The item 2, I tried it with the event structure, but it didnt work.
Please do reply.
mytestautomation.com
...unleashed the power, explore and share ideas on power supply testing
nissanskyline.org
...your alternative nissan skyline information siteThere are very good drag and drop examples that ship with LabVIEW. Have you looked these over to see if they can be modified for your needs?
Matthew Fitzsimons
Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison -
I upgraded from eprint to HP Connected today. Now it won't let me back into eprint website (and, yes, I would not have gone back if something didn't work right at hp connected).
I could drag and drop the placement of my apps to arrange them as I want them on the printer display touchscreen at eprint. However, I can't drag or drop anything at hp connected and I don't see any help on managing the placement of apps on your printer.
How can this be done? It was easy before - just drag and drop and website updated printer. I have a officejet 7610.
Thanks in advance!
This question was solved.
View Solution.Thanks for trying but your answer is incorrect, according to an email I received today from HP Connected:
"I have reviewed your email. I understand that you have questions related to rearranging the order of the apps on the printer. I know this can be frustrating, and I want you to know you're certainly valuable to us and I want to do everything possible to ensure your complete satisfaction. The following information should provide the answers you need:
1) Unfortunately when HP launched the new website (www.hpconnected.com) they did not include a method of rearranging the apps on the printer. They may include this feature in a future update, however as this time it is not available.
2) If you have made the upgrade from eprintcenter to HP Connected you do not have the option of returning. Eprintcenter is in the process of being eliminated and unfortunately retuning to the old site is not possible."
I hope <<S-O-O-N>> HP fixes this new website -- it's crazy to take away any controls like this from their customers and not either embellish them or at least leave them be.
I may take this 7610 OJ back for a new Brother 11x17 all-in-one --- they look nice ) -
How to perform a Drag and Drop operation on JButton in a JPanel?
Hi guys,
There is a requirement to perform Drag and Drop operation on JButton component added to a JPanel Componet.
I could not get a proper solition to move the JButton component inside a JPanel component by drag and drop.
I request every one to provide some related information on moving a JButton component using Mouse operation.
Rajashekar.THere is some code for moving a window around the screen. The concept would be the same for moving a button around a panel:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=599181 -
I just bought an unlocked Iphone 4s and I wanna know if I need to take an Iphone plan or a 30$ plan could be enough and also if I only use it on wi-fi do I need to have datas in my plan?
The iPhone is designed to always have an internet connection as long as there is an available wi-fi network you have access to, or cellular reception. MMS requires a data connection with your cell phone carrier, which can't be exchanged over wi-fi. If your carrier supports visual voicemail with the iPhone, visual voicemail messages are downloaded to the iPhone via the carrier's cellular data or internet network only, not via wi-fi. If you ever need to make use of the Find My iPhone feature, it will be worthless without a data connection with your carrier's cellular network.
If you don't plan on having a data plan or you can't afford it, your money was wasted purchasing an iPhone. This likely makes no difference since most carriers require a data plan with the iPhone. -
Do you need to have lion before installing mountain lion?
do you need to have lion before installing mountain lion?
No. You can upgrade from Snow Leopard http://www.apple.com/osx/how-to-upgrade/.
-
I am unable to open PDF files or run adobe flash when its needed I have downloaded it several times and tried updating it. NEED HELP
Adobe Acrobat NPAPI Plug-in, Version 11.0.04
Adobe® Acrobat® Plug-in for Web Browsers, Version 11.0.04 — from file “AdobePDFViewerNPAPI.plugin”.
application/pdf
Acrobat Portable Document Format
pdf
application/vnd.adobe.pdf
Acrobat Portable Document Format (Interim)
pdf
application/vnd.adobe.pdfxml
Acrobat XML Portable Document Format
pdfxml
application/vnd.adobe.x-mars
Acrobat XML Portable Document Format (Interim)
mars
application/vnd.adobe.xdp+xml
XML Data Package
xdp
application/vnd.adobe.xfd+xml
FormFlow99 Data File
xfd
application/vnd.adobe.xfdf
Acrobat Forms Data Format in XML
xfdf
application/vnd.fdf
Acrobat Forms Data Format
fdf
doubleTwist Web Plugin
doubleTwist Web Plugin — from file “doubleTwistWebPlugin.bundle”.
application/x-vnd-doubletwist
doubleTwist Web Plugin
Java Applet Plug-in
Displays Java applet content, or a placeholder if Java is not installed. — from file “JavaAppletPlugin.plugin”.
application/x-java-applet
Basic Java Applets
javaapplet
application/x-java-applet;deploy=10.25.2
Java applet
application/x-java-applet;javafx=2.2.25
Java applet
application/x-java-applet;jpi-version=1.7.0_25
Java applet
application/x-java-applet;version=1.1
Java applet
application/x-java-applet;version=1.1.1
Java applet
application/x-java-applet;version=1.1.2
Java applet
application/x-java-applet;version=1.1.3
Java applet
application/x-java-applet;version=1.2
Java applet
application/x-java-applet;version=1.2.1
Java applet
application/x-java-applet;version=1.2.2
Java applet
application/x-java-applet;version=1.3
Java applet
application/x-java-applet;version=1.3.1
Java applet
application/x-java-applet;version=1.4
Java applet
application/x-java-applet;version=1.4.1
Java applet
application/x-java-applet;version=1.4.2
Java applet
application/x-java-applet;version=1.5
Java applet
application/x-java-applet;version=1.6
Java applet
application/x-java-applet;version=1.7
Java applet
application/x-java-vm
Java applet
application/x-java-vm-npruntime
Java applet
QuickTime Plug-in 7.7.1
The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site. — from file “QuickTime Plugin.plugin”.
application/sdp
SDP stream descriptor
sdp
application/x-mpeg
AMC media
amc
application/x-rtsp
RTSP stream descriptor
rtsp,rts
application/x-sdp
SDP stream descriptor
sdp
audio/3gpp
3GPP media
3gp,3gpp
audio/3gpp2
3GPP2 media
3g2,3gp2
audio/aac
AAC audio
aac,adts
audio/ac3
AC3 audio
ac3
audio/aiff
AIFF audio
aiff,aif,aifc,cdda
audio/amr
AMR audio
amr
audio/basic
uLaw/AU audio
au,snd,ulw
audio/mid
MIDI
mid,midi,smf,kar
audio/midi
MIDI
mid,midi,smf,kar
audio/mp3
MP3 audio
mp3,swa
audio/mp4
MPEG-4 media
mp4
audio/mpeg
MPEG audio
mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
audio/mpeg3
MP3 audio
mp3,swa
audio/vnd.qcelp
QUALCOMM PureVoice audio
qcp,qcp
audio/wav
WAVE audio
wav,bwf
audio/x-aac
AAC audio
aac,adts
audio/x-ac3
AC3 audio
ac3
audio/x-aiff
AIFF audio
aiff,aif,aifc,cdda
audio/x-caf
CAF audio
caf
audio/x-gsm
GSM audio
gsm
audio/x-m4a
AAC audio
m4a
audio/x-m4b
AAC audio book
m4b
audio/x-m4p
AAC audio (protected)
m4p
audio/x-midi
MIDI
mid,midi,smf,kar
audio/x-mp3
MP3 audio
mp3,swa
audio/x-mpeg
MPEG audio
mpeg,mpg,m1s,m1a,mp2,mpm,mpa,m2a,mp3,swa
audio/x-mpeg3
MP3 audio
mp3,swa
audio/x-wav
WAVE audio
wav,bwf
image/jp2
JPEG2000 image
jp2
image/jpeg2000
JPEG2000 image
jp2
image/jpeg2000-image
JPEG2000 image
jp2
image/pict
PICT image
pict,pic,pct
image/png
PNG image
png
image/tiff
TIFF image
tif,tiff
image/x-bmp
BMP image
bmp,dib
image/x-jpeg2000-image
JPEG2000 image
jp2
image/x-macpaint
MacPaint image
pntg,pnt,mac
image/x-pict
PICT image
pict,pic,pct
image/x-png
PNG image
png
image/x-quicktime
QuickTime image
qtif,qti
image/x-sgi
SGI image
sgi,rgb
image/x-targa
TGA image
targa,tga
image/x-tiff
TIFF image
tif,tiff
video/3gpp
3GPP media
3gp,3gpp
video/3gpp2
3GPP2 media
3g2,3gp2
video/avi
Video For Windows (AVI)
avi,vfw
video/flc
AutoDesk Animator (FLC)
flc,fli,cel
video/mp4
MPEG-4 media
mp4
video/mpeg
MPEG media
mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa
video/msvideo
Video For Windows (AVI)
avi,vfw
video/quicktime
QuickTime Movie
mov,qt,mqv
video/sd-video
SD video
sdv
video/x-m4v
Video (protected)
m4v
video/x-mpeg
MPEG media
mpeg,mpg,m1s,m1v,m1a,m75,m15,mp2,mpm,mpv,mpa
video/x-msvideo
Video For Windows (AVI)
avi,vfw
SharePoint Browser Plug-in
Microsoft Office for Mac SharePoint Browser Plug-in — from file “SharePointBrowserPlugin.plugin”.
application/x-sharepoint
Microsoft Office for Mac SharePoint Browser Plug-in
Shockwave Flash
Shockwave Flash 11.9 r900 — from file “Flash Player.plugin”.
application/futuresplash
FutureSplash Player
spl
application/x-shockwave-flash
Shockwave Flash
swf
Silverlight Plug-In
5.1.20913.0 — from file “Silverlight.plugin”.
application/x-silverlight -
my hard drive crashed on my MacBook Pro crashed and I need to get my CS5 up and running on the new hard drive. I copied what I could onto an external hard drive but when I drag and drop I get directions to uninstall but the uninstall folder I have does says it is an alias that is no longer present. I get error 6. I would like to get my software up and running on the laptop again please
If you subscribed to iTunes match the songs are kept in icloud. If you didn't but you did save the actual iTunes library folder which should include the music, video, etc. you should be able to just drag this file back to your machine in the same place and when you open iTunes it will give you a chance to identify the iTunes library folder.
You can test this to find out if you saved the media files or not and don't need to attach your nano to do it.
You are correct that once you connect the nano it will clear the existing files from it and sync it with the new iTunes library.
If you don't have the media files i'm not sure if/how to get them back on a windows ipod. I have everything backed up regularly because of the horror stories I have seen & heard. -
I need to have audio out from HDMI and headphone jack simultaneously
I need to have audio out from HDMI and headphone jack simultaneously.
I seem to be able to select one or the other, but not both ? !
ThanksNo. You can only use one sound output:
Why can't I select HDMI audio on my Mac mini?
If you connect an HDMI display or television to a Mac mini (Mid 2010 or later), you might not be able to select the HDMI audio device (in System Preferences > Sound > Output). This can happen if you also have headphones plugged in to the computer. Unplug the headphones to be able to select HDMI audio.
Mac computers: Frequently asked questions about using HDMI -
I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the master, and I cannot get the margins to alternate at print time. The larger margin is always on the left. Can anyone please help me on this, as I have spent hours and lots of ink.
Set up as facing pages with a larger inside margin.
Maybe you are looking for
-
Table for purachse order tax( Invoice tab)
Hi, Can anybody tell me table name for purchase order taxes which are matainined in invoice tab. Thanks and Regards Anil
-
Problem in SQL Developer installation
Recently i installed Oracle 11g but i could not connect sql developer. when i click sql developer icon it show pop-up box.... "*Enter the fullpath name for java.exe*". i dont know from where i can get this path so that i can open sql developer.
-
Performance tuning--- Automatic workload repository (AWR &ADDM)
hi all, i am in need of some kind of demo or step-by-step procedure to implement Oracle 10G Automated workload repository and ADDM.................... atleast Point me metalink note should work fine .... actually i need real time implementation detai
-
Formula Collision on properties of char in query designer
Hi BW Gurus, Can someone explain this topic with some good example(s)? Anil
-
Changes in standard screen of EG44(Device info record)
Hi, I have to add some fields in other device data of Device Tab of the standard screen of EG44 as per the client requirement. Can you please help me how to do that. Regards, Mukesh Kumar