Is there any way I can ADD addDragSourceListener to JInternalFrame

I want to use addDragSourceListener to the JInternalFrame. Is there any way i can use it
This s waht i am using;
JInternalFrame dFrameDrag = new JInternalFrame();
dFrameDrag.addDragSourceListener(new DragSourceListener(){
public void dragEnter (DragSourceDragEvent event) {
System.out.println( " dragEnter");
public void dragExit (DragSourceEvent event) {
System.out.println( "dragExit");
public void dragOver (DragSourceDragEvent event) {
System.out.println( "dragOver");
public void dropActionChanged ( DragSourceDragEvent event) {
System.out.println( "dropActionChanged");
public void dragDropEnd (DragSourceDropEvent event) {  
if ( event.getDropSuccess()){
System.out.println("Success");
When i am compiling this i am getting " Method addDragSourceListener(DragNDrop.1) not found in javax.swing.JInternalFrame"
I Know JInternalFrame does not support "addDragSourceListener" but i want to use it.
Can any one tell me a way how to Accomplish this task?

Ravi,
Your problem may reside in the fact that JDesktopPane has a dragmode property. Swing is already listening for mouse drags at that level so a JInternalFrame can be moved around. Therefore, you should use addDragSourceListener on your JDesktopPane and either determine which InnerFrame is affected or only react to mouse drags within your topmost. If this doesn't work to your satisfaction, you may need to extend DefaultDesktopManager and override some of the drag methods with your own custom code.
Hope this helps,
Ron

Similar Messages

  • Is there any way I can add extra storage to hold my Newsstand magazines?

    Is there any way I can add extra storage to hold my Newsstand magazines?

    Thanks for that.  It is what I expected.
    There are lots of WIFI and flash drives that you can plug in but, as far as I can see,  they are only useful for holding stuff pre-loaded from a PC/MAC, and can only be used via a special app.
    Let bus look forward to the day that Apple give us a memory extension socket.

  • I have CS5 design premium student and teacher edition, have never been able to receive any updates. And cannot find cetain features like Content Aware, Adobe Watermarks etc...Is there any way I can add these and other features

    I have never been able to receive any updates. And cannot find cetain features like Content Aware, Adobe Watermarks etc...Is there any way I can add these and other features unavailable to me? Or do I have to upgrade the version I have? If so, how much would that be?

    The only "content aware" feature in CS5 is the fill, so you are not missing anything with the updates because nothing more is there. And I honestly don't know what you mean by "Adobe watermarks" there is no such thing, but there is a series of scripts for such stuff.
    Mylenium

  • Is there any way i can add games to my ipod?

    I live in Singapore, and do not have access to iTunes store to purchase games. Is there any other alternatives which i can have games on them?

    Click here for some games you can use.
    (34184)

  • Is there any way i can add my payment information in profile without credit card information.  The option "none" is not appearing for me

    I am unable to update my payment information in my profile without credit card information.  I do not see "None" option below Visa, Master, Amex & Discover.

    You would have to purchase a 3rd party program ( not supported by Apple).
    The ipod is not a storage/backup device.
    Copy everything from the old computer or your backup copy of your old computer.

  • I have switched computers - old one stolen - and lost access to my 800 or so song library. I started a new library. Is there any way I can retrieve my old library and add it to the new one?

    I am not very tech oriented - I love my Ipod - had a library of 800- 900 songs - my computer was stolen, I have since bought a new one - started a new library because I could not figure out how to access my old library. Is there any way I can somehow find that original library and add it to my new library??

    If these are photos that were synced to your phone, the only way to extract them from your phone is third-party software, like this:
    http://www.wideanglesoftware.com/touchcopy/index.php

  • I edit my photos in Photoshop, save as jpeg then import back into iPhoto.  But if I add text to an image in Photoshop can't save as jpeg but as psd. Is there any way I can change to jpeg in iPhoto?

    I edit my RAW photos in Photoschop CS3, save as jpeg then import back into iPhoto 11.  If I add text in Photoshop I can't save as jpeg but as psd.  Is there any way I can change to jpeg in iPhoto?

    Terence Devlin wrote:
    Yes you can. But you need to flatten it as jpeg doesn't support layers.
    While the final JPEG can't have layers, it is not necessary to flatten the original Photoshop file to create a JPEG. There are two ways to make a JPEG while not losing the flexibility of preserving layers, and they both flatten on the fly while saving.
    I just tried this in Photoshop CS3 myself. When I add a text layer, and choose Save, the Save As dialog box comes up and defaults to PSD as was described. But... that is just the default! Go ahead and choose JPEG from the Format pop-up menu down below the file list. JPEG is in there. So what happens to the layers? Notice when you choose JPEG, the Layers box grays out and the "As A Copy" box grays out and is checked (i.e. you cannot uncheck it). What is going on here is Photoshop will gladly make a JPEG of your layered file, but it will force the JPEG to be a copy, so as to not overwrite the original layered file. This is good, because your Photoshop file with its editable text layer is preserved, and you get a JPEG copy to put in iPhoto.
    The second way is, instead of doing Save or Save As, choose File/Save for Web and Devices. This will also give you a JPEG choice, and also create an exported copy. Because this way makes files for the Web, they will be smaller than JPEGs from Save As because they will lack built-in previews (which you don't really need these days) and other extra metadata that take up space.
    Either way you get a JPEG you can toss back into iPhoto.
    Terence Devlin wrote:
    Only by exporting.
    The Export menu in Photoshop CS3 does not have any direct choices for JPEG.

  • I accidentally created an iCloud account using the wrong email address for my username - I already have an iCloud account with a different email address username. Is there any way I can merge these accounts?

    I just upgraded my MacBook from OS X 10.6.8 to Mountain Lion so that I could stream from my other devices (iPhone and iPad) to my MacBook.  After making it through the upgrade process, I realized that I used the wrong email address for my iCloud username when starting up on the MacBook.  My iPhone, iPad, and iTunes are under my Hotmail email address and I accidently used my Gmail email address for the MacBook.  Is there any way I can merge these two icloud accounts together? I tried changing my account information to add the other email address, but wasn't allowed because another account was using the name (duh).  If I can't merge them, how could I change the MacBook from the Gmail address to the Hotmail address so that all my devices are on the same icloud account?  It'd be nice if I could keep the free 5GB of storage that comes with my purchase of the software, but I'd rather lose the storage than not be able to stream.

    To change accounts on your Mac, go to System Preferences, sign out of the current account, then sign into the new account.  When you sign out of the current account it will delete synced data from your Mac.  Assuming your data (such as contacts, calendars, etc.) is in the other iCloud account, it will be synced to your Mac when you sign into this account.

  • HT1933 My ex-boyfriend stole my email address and credit card information to make purchases with Apple and now my Apple ID account has a balance. Is there any way I can retract the purchases so I don't have to pay for his theft of my information?

    My ex-boyfriend stole my email address and credit card information to make purchases with Apple and now my Apple ID has a balance. Is there any way I can retract the purchases so I don't have to pay for his theft? I had no idea he had done this until I tried to sign in to the ITunes store and found all his information and a whole bunch of song purchases. I had to go to my email and reset everything. I only have a 2.10 balance due to him, but I just want to find out if there is a way to erase it because of this circumstance.

    You need to immediately pull credit reports to see what else he has done.  Then "freeze" the credit report at all three agencies.  That way even you need to lift the freeze to add credit cards or other credit items to your SSN.

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • Is there any way i can read Amharic or Geez fonts using my iPhone?

    is there any way i can read Amharic or Geez fonts using my iPhone?

    No, but you can ask apple to add this via
    Http://www.apple.com/feedback

  • Is there any way I can use Skype Number with Viber...

    Hello. With my Skype Number is there any way I can use it with Viber? So I give my Skype NUmber to a friend and they add me on Viber? Or do I have to divert my skype numebr to my actual number?

    Hi, if you give your Skype number to your friend they can make a Viber Out call to that number if they have some viber credit. Calls to landlines are usually cheap but it depends where in the world your friend is calling from.
    Have you got a Viber account too ? Viber to Viber over the Internet is free, like Skype to Skype being free. Persoanally I have both networks now.
    Viber is on smartphones, some feature phones and there's a desktop app too. Your Viber account is based upon the mobile number you register and Viber recognises phone numbers of your contacts to see if they're registered on Viber too.

  • HT201250 I've been working on a newsletter and have the final version. But I wanted to check something in a version I did last week. If I choose the day in Time Machine, is there any way I can view that document without "restoring" it to replace the final

    I've been working on a newsletter and have the final version. But I wanted to check something in a verssion I did last week. If I choose the day in Time Machine, is there any way I can view that document without "restoring" it to replace the final version?

    You can drag and drop a file from TM to the desktop.
    Let's say your newsletter is on the desktop. First thing to do is to add something to the file name, say Newsletter_1.
    Next open TM as if it is just another external drive by double clicking the icon. (This is not the same as "Enter Time Machine" which you do when you want to restore.) The file hierachy in TM follows the same logic as on your hard drive. Navigate to the date you want, find the file you want, and drag and drop it where you want it to be. Because you changed the name of the most recent version you can both files in the same space.
    I do this often.
    But remember if you make a back up now you will end up with both versions in TM.

  • HT1329 Is there any way I can get the music from my iPod to my new laptop?

    So recently my computer broke, taking all of my music with it, and now I only have the music on my iPod. Is there any way I can take the music from my iPod and put it on my new laptop?

    You can't transfer song files from iPod to computer using iTunes (except for songs purchased from the iTunes Store).  However, there are methods and utilities that can transfer from iPod to computer.  If you do a Google search on something like "ipod transfer," you should get some links.
    Once the song files are on your computer, you can add them to your new computer's iTunes library.

  • I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog.  Is there any way I can use the apple tv on analog cables?

    I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog.  Is there any way I can use the apple tv on analog cables?

    Welcome to the Apple Community.
    It's do-able, but I don't think it's a great idea.
    DVI
    Some users with DVI have managed to get their TV's to work with DVI-HDMI cables. DVI carries no audio, so alternative connections need to be explored to enable audio. DVI doesn't necessarily support HDCP as well as other standards used by HDMI (which may or may not be an issue)
    Analogue
    There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
    HDCP
    HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
    Resolution and aspect ratio
    I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p (Apple TV 2), 720p/1080p (Apple TV 3)
    DAC
    DAC (Example Only - Not a recommendation or suggestion that this is suitable in your circumstances)

Maybe you are looking for

  • SAP WM - PM reservation / GoodsIssue / Transfer order

    Dear all, I have a question regaring reservations and WM. When a reservation is created via PM (IW31) then the standard process is you do a GI via migo and then the transfer order is created etc. My client want that the GI is done after the Transfer

  • Source System Already Exists

    Dear Team, After the system copy from PRD to DEV, all the existing source system(s) from our ealier R/3 quality got vanished, according to BASIS team, the source sys assignments have been deleted during the databse restore, Now, the problem is, when

  • Tables-Primary Key-Sequential read

    Hi Folks, Out of the following which imporves performace? 1.Using all the primary keys of a table in the where clause of a select statement? 2.Using any one or two (not all) primary keys of a table in the where clause of a select statement? Let me th

  • DECODE and ToNum

    I can't get this DECODE expression right, I have never used it before and I also need to convert in this same expression GL_ACC and GL_CC ToNum. Please let me know, what would be the right way to write this SELECT      gl_ent,           gl_sa,       

  • Rh 10 can't produce printed documentation.

    I have a small project of about 20 topics so far and tried to produce printed documentation as PDF and as Word, but neither would work. I kept getting an errow that said: Waiting for Printed Documentation VBA Macros to be registered. Failed to regist