DnD JPanel and show moving JPanel

I have JPanels on a JFrame and want the user to be able to drag a JPanel to a different part, which is easy with Drag and Drop, but
Is it possible to show the JPanel moving along with the mouse?
Or is it at least possible to show some text dragging along with the mouse?

Write your own "DnD" code. Something like this:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=599181

Similar Messages

  • I updated to OS X 10.9.2 and turned on my calendar sync in iCloud, now my calendar is unavailable and shows moving calendar to server acount for 3 days. Not sure how to reset or gain access? Please help!

    I updated to OS X 10.9.2 and turned on Calendar sync in iCloud, now my calendar is unavailable and shows "moving calendars to server account" for 3 days. Not sure how to reset or access calendar. I can only force quit the app and when I restart it, it goes right to the same message. I have also tried turning off the sync in iCloud to no avail. Please help. I need my calendar!

    Try the solution posted by melosaris here: https://discussions.apple.com/message/23475967#23475967.

  • I deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    i deleted my download folder by accident  i waz moving it and it just deleted it and showed this smoke. i found it in my trash so put it on my dock then clicked on it and it shows preview?! plz help how do i get it back!!!

    You need to restore the folder using the (Put back) selection (CTRL click).

  • My project in imovie says source unavailable after I moved the events to the backup drive. It is connected and shows up in the events library. I can see the pictures but they won't play without the source. What do I do.

    My project in imovie says source unavailable after I moved the events to the backup drive. It is connected and shows up in the events library. I can see the pictures but they won't play without the source. What do I do.

    I moved it because I did not have room on my hard drive to import my latest video. I take videos my grandkids basketball games then edit them as projects. I don't have room to move the whole events library back to my hard drive. Can I move part of it at a time.
    I filled up my 1 TB back up drive so got a 3TB to move my video projects to. Do I have to move both the i photo videos and the projects to the 3 TB drive together some how. When can I delete them off the hard drive .
    I moved all the i photo library to the 3 TB drive and deleted them out of i photo. That is 87 GB which I don't have room for on my hard drive.
    I think when I use the export movie to my hard drive it works but will I still be able to edit it later if I want. Is it best to do quick time or i tunes if I use the export feature.

  • Image only shows after screen is reloaded (hidden and showed again)

    Hello everyone,
    I have a class that calls a drawImage. The thing is that it was supposed to be shown when the JFrame is shown, but it isn't. It is only shown after I hide it and show it again (like after I minimize it and minimize it back.
    Can anyone help me here? I need it loading without nothing being done by the user.
    Here goes my class:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.applet.*;
    import sun.audio.*;
    import java.io.*;
    public class Shapes extends JFrame
        public Image imagem;
        public Shapes(Integer resultado, Image imagem)
            super("Grafico dos Valores");
            setBounds( 0, 0, 900, 570 );
            getContentPane().setLayout(null);
            this.imagem = imagem;
            setVisible(true);
            getGraphics().drawImage(imagem, 20, 20, null);   
        public void paint(Graphics g)
            super.paint(g);
            Graphics2D g2d = ( Graphics2D ) g;
            g2d.drawImage(imagem, 20, 20, null);   
        }

    1) Swing related questions should be posted in the Swing forum
    2) Don't override the paint(...) method of JFrame
    3) Don't use getGraphics to draw your image
    4) If you need to do custom painting then override paintComponent(..) of JPanel or JComponent
    5) Read the tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/14painting/index.html]Custom Painting

  • Is there a way to hide and show the whole 3D viewer with javascript?

    I'm trying to set up a pdf so that the person who's reading it can use a button to switch between a picture of the product and a 3D model of the same. The idea is that the two ways of illustrating the product can be in the same space, so that there's still room to put enough text on the front page. I have spent about three hours trying to figure this out.
    Even if I hide the model withtin the 3D viewer and make the background transparent, the 3D viewer is still there, intercepting mouse clicks and showing the toolbar.
    I've tried modfiying the Annot3D, by moving it off the page, because the javascript reference says that the "rect" property of Annot3D can be written, but the viewer just stays in the same location.
    Is there any way to get the whole thing to go away with one button click and come back with another?
    Thank you for your help and patience,
    Daniel,
    PS - In the past I've placed product drawings and pictures in the same place by putting them on separate layers, but I can't figure out how to get the 3D display attached to a layer.

    One way you could get the same effect is to use separate pages. Disable the mouse scroll for switching pages and instead use buttons to go from one page to the other.  The user will get the impression that the annotation has appeared and disappeared.
    Another hack is to use the product information as the icon on the annotation, so just disable it when you want to show the product information and make sure it lines up with an overlay of surrounding product information.

  • I bought my Iphone4S from australia and then moved back to my country which is India. Two days back "GAMES" catogeries was missing from the app store. I have no idea why it went gone missing.I have treied to sign in various times but it doesn't work out.

    I bought my Iphone4S from australia and then moved back to my country which is India. Two days back "GAMES" catogeries was missing from the app store. I have no idea why it went gone missing.I have tried to signing in the app store several times but stil it doesn't show the GAMES catogery. Help me out.

    Try what Terence Devlin posted in this topic:
    Terence Devlin
    Apr 14, 2015 11:21 AM
    Re: Is Iphoto gone ? i want it back!
    in response to Johannes666
    Recommended
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • WAFS Legacy and show commands

    Hi
    Somebody knows if there is any CLI that shows individual CIFS connections and its optimization in WAAS. Legacy mode on  version 4.0?. Something similar that in WAAS 4.1 in AO mode.
    Currently i can only see the tunnel between the WAAS on port 4050 and traffic moving inside the tunnel.
    Thanks
    - Alex

    Alex,
    Try show cifs session list.
    Regards,
    Zach

  • HT201401 My iphone 3GS keeps freezing and showing the apple logo during phone calls.  Can anybody help plese ? Bee

    My iphone 3GS keeps freezing and showing the apple logo during phone calls.  Can anybody help plese ? Bja

    Hiya thankyou for the answer.
    Trying to set it up as a new device but can't find the backup to save it.
    I have no "mediasync" folder in my library/application support. Did these folders get moved around with Lion?
    Thankyou again,

  • TS1368 I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    I'm a PC user with an itunes account for several years. I updated my itunes and now it wont open and shows me 'missing file MSVCR80.dll,and error 7(Window error 126)' keep coming up even after re-installing itunes . What should i do?

    Click here and follow the instructions.
    (98897)

  • Sites Taking too much time to open and shows error

    hi, 
    i've setup sharepoint 2013 environement correctly and created a site collection everything was working fine but suddenly now when i am trying to open that site collection or central admin site it's taking too much time to open a page but most of the time
    does not open any page or central admin site and shows following error
    event i go to logs folder under 15 hive but nothing useful found please tell me why it takes about 10-12 minutes to open a site or any page and then shows above shown error. 

    This usually happens if you are low on hardware requirements.  Check whether your machine confirms with the required software and hardware requirements.
    https://technet.microsoft.com/en-us/library/cc262485.aspx
    http://sharepoint.stackexchange.com/questions/58370/minimum-real-world-system-requirements-for-sharepoint-2013
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • When I click on any of my movie or TV shows in Itunes I immediately get an error message that says Itunes has stopped working and closes the program. I can sync the movies and shows to my phone okay but I can't watch on Itunes. Can anyone help?

    When I click on any of my movie or TV shows in Itunes I immediately get an error message that says Itunes has stopped working and closes the program. I can sync the movies and shows to my phone okay but I can't watch on Itunes. Can anyone help?

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • Problem description: My  macbook pro since this afteon has been slower, every application I open, it takes a long time to open, and shows the spinning beach ball for a while before it opens or performs some task, or responds to a click-  EtreCheck

    My computer
    Problem description:
    My  macbook pro since this afternoon has been slower, every application I open, it takes a long time to open, and shows the spinning beach ball for a while before it opens or performs some task, or responds to a click…
    EtreCheck version: 2.1.8 (121)
    Report generated 31 de março de 2015 18:29:15 BRT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,1
        1 2.3 GHz Intel Core i5 CPU: 2-core
        16 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 250
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: 0:25:47
    Disk Information: ℹ️
        Hitachi HTS545032B9A302 disk0 : (320,07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 318.84 GB (47.94 GB free) - 51 errors
                Core Storage: disk0s2 319.21 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [running]    com.trusteer.rapport.rapportd.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [running]    com.trusteer.rooks.rooksd.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    UNKNOWN Hidden (missing value)
        AdobeResourceSynchronizer    Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        Stickies    Application  (/Applications/Stickies.app)
    Internet Plug-ins: ℹ️
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
        FlashPlayer-10.6: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        AdobePDFViewerNPAPI: Version: 10.1.13 [Click for support]
        AdobePDFViewer: Version: 10.1.13 [Click for support]
        Flash Player: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.4.8 - SDK 10.6 [Click for support]
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User internet Plug-ins: ℹ️
        npsf_cef: Version: sf 3.3.1.1 [Click for support]
        Google Earth Web Plug-in: Version: Unknown
    Safari Extensions: ℹ️
        DivX HiQ
        DivX Plus Web Player HTML5 <video>
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Java  [Click for support]
        MacFUSE  [Click for support]
        Perian  [Click for support]
        Trusteer Endpoint Protection  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 318.84 GB Disk used: 270.90 GB
        Destinations:
            Time Machine Backups [Local]
            Total size: 999.86 GB
            Total number of backups: 60
            Oldest backup: 2012-07-15 01:16:54 +0000
            Last backup: 2015-03-29 19:28:06 +0000
            Size of backup disk: Excellent
                Backup size 999.86 GB > (Disk size 318.84 GB X 3)
    Top Processes by CPU: ℹ️
            97%    rapportd
             3%    WindowServer
             1%    mds
             0%    fseventsd
             0%    distnoted
    Top Processes by Memory: ℹ️
        155 MB    Safari
        120 MB    Finder
        86 MB    rapportd
        86 MB    WindowServer
        69 MB    mds_stores
    Virtual Memory Information: ℹ️
        12.56 GB    Free RAM
        2.53 GB    Active RAM
        428 MB    Inactive RAM
        1.66 GB    Wired RAM
        1.04 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Mar 31, 2015, 06:00:15 PM    Self test - passed
        Mar 31, 2015, 01:13:05 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Microsoft Error Reporting_2015-03-31-131305_[redacted].crash
        Mar 31, 2015, 01:05:42 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Microsoft Error Reporting_2015-03-31-130542_[redacted].crash
        Mar 31, 2015, 12:24:33 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Microsoft Error Reporting_2015-03-31-122433_[redacted].crash
        Mar 30, 2015, 05:45:38 PM    /Library/Logs/DiagnosticReports/Skype_2015-03-30-174538_[redacted].cpu_resource .diag [Click for details]
        Mar 30, 2015, 01:52:07 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Last.fm Scrobbler_2015-03-30-135207_[redacted].crash
        Mar 29, 2015, 05:55:05 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-03-29-175505_[redacted].crash
        Mar 29, 2015, 01:06:38 PM    /Library/Logs/DiagnosticReports/VLC_2015-03-29-130638_[redacted].hang
        Mar 29, 2015, 01:02:47 PM    /Library/Logs/DiagnosticReports/VLC_2015-03-29-130247_[redacted].hang

    Open Activity Monitor and kill this process - rapportd.
    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Whenever I try to open Microsoft Word it doesn't open and shows me an error report!

    Whenever I try to open Microsoft Word it doesn't open and shows me an error report! I don't know what to do! Help!!!!
    This is the extra info that comes along with the error report:
    Microsoft Error Reporting log version: 2.0
    Error Signature:
    Exception: EXC_BAD_ACCESS
    Date/Time: 2013-08-30 16:41:14 -0400
    Application Name: Microsoft Word
    Application Bundle ID: com.microsoft.Word
    Application Signature: MSWD
    Application Version: 14.1.0.110310
    Crashed Module Name: MBURibbon
    Crashed Module Version: 14.3.4.130416
    Crashed Module Offset: 0x000072f0
    Blame Module Name: MBURibbon
    Blame Module Version: 14.3.4.130416
    Blame Module Offset: 0x000072f0
    Application LCID: 1033
    Extra app info: Reg=en Loc=0x0409
    Crashed thread: 0
    What should I do??????

    It might be a good idea to also ask here:
    Office for Mac forums

  • My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management

    I have recently purchased a Mac computer (updated to Maverick) to go with my Epson Stylus Photo RX500 printer which has given excellent service with my old Windows computer. However, when trying to print pictures or photos via Photoshop Elements 11, the best results I can get are using the Colour Management and Epson Colour controls in the printing options box.
    My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management, The only way I can reset the controls is to shut down the printer and computer and restart.
    Could there may be a setting somewhere that I need to adjust please?  I have been in touch with Epson and they say that the Epson Colour controls are part of the Photoshop Elements software but a post on the Adobe forum brought no results and I am unable to contact Adobe.
    <Edited by Host>

    Hello Garry. Thanks for the reply. I guess I should have used a different title from "How do I post a question?" That should come after trying to resolved the colour settings first. However, to answer your question, after experimenting with all the different settings in Photoshop Elements and Epson software, I now start with PSE11 Colour settings then click "no colour management" then after clicking Print, I choose "More Options/Colour Management/Colour Handling/Printer Manages Colour" then I choose "Page Setup/Layout/Colour Matching" which then shows Epson Colour Controls but I also choose "Layout/Colour Management" which then shows "Colour Controls/Mode" I then of course choose an Epson printer profile depending on the paper I am using. I get good results but as I said, the Colour Matching and Colour Controls are then greyed out. Hope that makes sense.

Maybe you are looking for

  • How do I share address book and calendars with other iCloud users?

    I guess the title of the discussion question says it all. My wife, and other family members want to SHARE Contacts, Calendars etc... with other iCloud users. Simple task... most people would want to do it... But... I can't find an easy answer... how

  • Mid-2011 Macbook Air with very slow wifi yet with OSX 10.9.1

    Yes, I am opening yet another topic on this pretty old issue because I am too confused with all that I have read so far (as also have not found a recent case similar to mine). I have a mid-2011 Macbook Air i5 13'. My home wireless network works just

  • Solution for google map in Nokia C7 & C6-01

    I have Nokia C7 & C6-01. I installed Google Maps on my C7 & C6-01 with Belle. But I found a solution. Latest Version of Google map (V. 4.1.1) works fine with belle, you need to just turn on your wifi for it. Then it will work

  • Using an MS Excel like template for data entry into an Oracle table

    Does anybody know of a way, or development tool, that has the look and feel of MS Excel but can be used for data entry and be saved to an Oracle table and be embedded into a JSP page? I am currently using iSupport and have a need to allow users to en

  • Ipad not connecting to wifi, "unable to connect"

    So i have done everything from turning off and on, network reset, and reseting the entire ipad to factory settings. Nothing has helped. The wierd thing is once I got a airport express, my ipad would only connect to that and nothing else. Or it connec