Question on using JSplitPane to display 2 JPanels(thats has been drawn on)

im currently doing a project in which the user is able to draw on 2 panels and the last step is to display the 2 panels with all the text and images that were drawn on it.
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panel1, panel2);
splitPane.setOneTouchExpandable(true);
splitPane.setContinuousLayout(true);
c.add(splitPane, BorderLayout.CENTER);i want to call repaint on the 2 panels so when it goes through paintComponent my array of text/images will be redrawn on the splitpane accordingly.
any suggestions on how this can be done since its my first time display 2 jpanels on a splitpane im out of ideas.
thanks in advance

Just call repaint on each panel.

Similar Messages

  • I would like to know if you have to back up a macbook hard drive, can I use a external hard drive that has been previously used to back up several pc 's, or is it best to have a separate external drive for the Mac?

    I would like to know if you have to back up a macbook hard drive, can I use a external hard drive that has been previously used to back up several pc 's, or is it best to have a separate external drive for the Mac?

    In the Mac side of things, backups usually come in two flavors: clones or incrementals.
    A bootable clone is a bit-for-bit copy of all essential files in the startup volume. If using the Lions, clones can be made using CarbonCopyCloner or just plain old Disk Utility. These backups represent the safest protection of your info, but take the longest to do. Recovery is an inverse process: you copy the clone back into the internal drive.
    Incremental backups start with a complete backup of the startup volume and only copy whatever changed from the previous run. OS X includes the fully integrated Time Machine backup utility to do this. It is extremely easy to do and takes the least amount of time. Recovery is another matter altogether since you have to start with a freshly installed instance of the OS and have to apply all intervening backups to bring the result to the latest saved version.
    As for where the backup takes place, the recommended media is an external dedicated drive or drives connected via the fastest interface available on your Mac: Thunderbolt, USB3, Firewire, or USB2. Network-based backups, wired or wireless, are attractive but may not offer the same performance and hence take longer. Also important to note that the entire drive need not be completely dedicated to a single backup. The Mac's EFI firmware infrastructure allows for an unlimited number of partitions on a hard drive and each can be used for either type of backups.
    Holler if you need specifics on how to do each. This was just an executive summary.

  • I just bought a used XP Home Edition program that has been installed before. Will I be able to install this again on my computer or is it only a one time use software? I have the Product Key and CD.

    I just bought a used XP Home Edition software program that has been installed before. I have the Product Key and installation disc. Will I be able to install it on my own computer? Or, is this software (purchased retail) a one time install? Please advise.

    Depends on many things.
    If your system is Lion, XP can only be installed under VM.  BootCamp in Lion only accepts Windows 7.
    As to "one use only", if you are referring to OEM ...
    A reinstall can trigger the OS to "not register" because "a major component serial number or MAC (the network MAC chip) address" has changed, according to MS databases.
    But you can call MS to get the key reactivated, usually/sometimes.  It is worth a try, at least, before spending money on another Windows 7 package.  But this discussion should end *now* at "maybe" as it treads close to matters that forum Terms-of-Use would prefer we not discuss.

  • How do I use an external hard drive that has been used on a windows machine on my mac....

    I have recently just bought a new mac and want to edit files that are currently saved on my external hard drive that I used on my windows machine.
    Is there any way to be able to do this or will I have to transfer all files across to my mac and then re-format the external?
    Thanks in advance.

    Either copy files over, reformat drive from NTFS to a Mac format and copy files back, or tell your Mac how to write to NTFS drives with a third-party product. Tuxera NTFS has high ratings: http://www.tuxera.com/products/tuxera-ntfs-for-mac/

  • I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

  • Safe to delete a "List Template" that has been used to create several libraries?

    In SharePoint 2010, is it safe to delete a "List Template" from the Gallery that has been used to create several libraries?  I have a user that has requested the template be deleted.  But he has used the template to create several active
    libraries that he needs to keep.  I wanted to make sure there will be no impact to those libraries and associated workflow, etc...
    Thanks! 

    Libraries created from a template are not tied to the template, so the template can be removed if it is no longer required. The same holds true for Site Templates.
    Yes, the template can be removed.
    One more thing, if you dont want delete the List template or having some fear than you can hide it from UI. in Template just hide it.
    <ListTemplate Hidden="TRUE" />
    But is you have the list definition than its different story.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • I have just dowloaded the icloud control panel on my PC and i am am able to see everything that has been pushed to icloud from my ipad. However i cannot see my email. i can send from the computer using icloud, but i do not see any mail that is being rec.

    i have just dowloaded the icloud control panel on my PC and i am am able to see everything that has been pushed to icloud from my ipad. However i cannot see my email. i can send from the computer using icloud, but i do not see any mail that is being received by my ipad, which is set up with my mail server. What haven't i checked lol?

    turn your ipad off by holding the sleep wake button for 5 seconds and slide to turn off then turn it back on and the apps should be finished and if the apps didnt finish just redownload them

  • How do I reformat an IPod Touch for Windows that has been formatted for a Mac?  All instructions I have been able to find use ITunes or Device Manager to reformat.  My IPod is not being recognized by ITunes or in Device Manager.

    I have an IPod Touch that has been formatted for a Mac.  All instructions I have been able to find use ITunes or Device Manager to reformat the device for Windows.  This cannot be done if Windows doesn't recognize the device.  Is there another way to set the device back to the factory settings directly on the device without using ITunes?

    Ipod touch is not formatted one way or the other at all.
    Just sync it to the new computer using itunes.
    iPod touch User Guide (For iOS 5.1 Software)

  • HT4623 I found an update ios6 in my iphone settings and then I tapped on  install ,but it is going on and nothing is displaying .Only apple logo is displaying  frequently.It has been happening  for 13 hours.my question is how much time it will take to upd

    Can anybody help in my concern below
    I found an update ios6 in my iphone settings and then I tapped on  install ,but it is going on and nothing is displaying .Only apple logo is displaying  frequently.It has been happening  for 13 hours.my question is how much time it will take to update ios

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • How do I open a pdf book cover file using Acrobat XI into Indesign CC?  Everytime I try, it says I am trying to open a file that has been saved wrong.

    How do I open a pdf book cover file using Acrobat XI into Indesign CC?  Everytime I try, it says I am trying to open a file that has been saved wrong.

    PDF files cannot be natively opened in InDesign. They can only be placed as graphics.

  • Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Contact facebook to address the facebook issues.

  • TS1292 My pin number had been already use? I bought a $10 card and it appears that has been used. How can i solve this?

    Hi!!
    My pin number had been already use? I bought a $10 pin number and it appears that has been used.
    How can i solve this?
    I already speak with a representative of the provider company and they told me to contact Itunes or apple to solve this.
    Help me please!!
    I cant neither pay with my Master card debit and now with a pin.

    From where did you buy this "PIN"? And did you get an actual card, or did they just send you a number? If you got only a number, then you may well have been defrauded. You'll need to go back to whoever sold you this "PIN" to resolve the problem. Apple to the best of my knowledge does not authorize any company to provide codes rather than a physical card and hence probably cannot help you if you did not get a physical iTunes card or receive a gift certificate issued by the iTunes Store themselves.
    Regards.

  • "COM object that has been separated from its underlying RCW cannot be used.

    I am constantly getting the following error when closing my app if we viewed/printed a report.  What do I need to do to correct this error?  For the following error, I opened my app, viewed a report on the screen using the 'CrystalReportViewer', closed the report viewer window, closed my app.  When closing the app, the following error occurs.
    CR version: 11.5.3300.0
    VB.NET v2.
    System.Runtime.InteropServices.InvalidComObjectException was unhandled
      Message="COM object that has been separated from its underlying RCW cannot be used."
      Source="mscorlib"
      StackTrace:
           at System.Runtime.InteropServices.UCOMIConnectionPoint.Unadvise(Int32 dwCookie)
           at CrystalDecisions.ReportAppServer.%. {(_ISCDClientDocumentEvents_OnClosedEventHandler  u)
           at CrystalDecisions.ReportAppServer.%.remove_OnClosed(_ISCDClientDocumentEvents_OnClosedEventHandler value)
           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.DisconnectEventRelay()
           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.  (Boolean  \b, Boolean       )
           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(Boolean bDisposeManaged)
           at System.ComponentModel.Component.Dispose()
           at CrystalDecisions.CrystalReports.Engine.ReportDocument.  (Boolean      :)
           at CrystalDecisions.CrystalReports.Engine.ReportDocument.  (Boolean      ;)
           at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
           at CrystalDecisions.CrystalReports.Engine.ReportDocument.
        (Object      >, EventArgs      ?)

    Hello,
    First thing is to install Service Pack 6 which you can get from the download page by clicking on BusinessObjests tab above and then downloads on the left...
    When you close your viewer be sure to add/have Youreportobject.close and Youreportobject.Dispose. Adding a GC.Collect may help also.
    Thank you
    Don

  • There were no results for Hi there, I have been using gmail Id and that has been changed by someone into a hotmail apple id whenever I wanted to sign into my account. I am really really troubled a lot. I have also successfully created another apple ID and

    I have been using gmail Id and that has been changed by someone into a hotmail apple id whenever I wanted to sign into my account. I am really really troubled a lot. I have also successfully created another apple ID and password after a lengthy process and tried to go and get downloads, I was asked for my apple id and again the same problem came back and I couldn't be able to use my new account and use apple downloads from iTunes , etc. please, help me as soon as possible. Yimenu

    Apss are forever tied to the Apple ID under which they were originally purchased. If you forgot the password to your original Apple ID, you can retrive it here:
    https://iforgot.apple.com

  • What can i use instead of microsoft word that has the same capabilities for school work etc

    what can i use instead of microsft word that has the same capabilities so i can do school work etc.

    You could use LibreOffice which is a free open source Office clone. The only downside is that by default it ddoesn't save in Office formats, you have to specifically choose that option. GoogleDocs is another free Office like product.

Maybe you are looking for