Reloading the same image into a JPanel

I have a multi user app.. one user can edit an image in one GUI and i want the other user to be able to refresh somehow a JPanel that they have in their GUI to reload the image file.
any help, would be appreciated.
thanks

Send a signal from one user's frame to the other's to reload the image. Then just call setIcon as you did before.

Similar Messages

  • Reload the same Image every second

    Has anyone load an Image and refreshed it automatically?
    What I would like to do is....
    1. Load Image on document creation.
    2. Refresh the image every 100 ml secs
    3. Its the same image.... another app that we wrote writes
    over the original
    thanks in advance
    This doesn't work at all
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="initTimer()">
    <mx:Script><![CDATA[
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    public function initTimer():void {
    // The first parameter is the interval (in milliseconds).
    The
    // second parameter is number of times to run (0 means
    infinity).
    var myTimer:Timer = new Timer(1000, 0);
    myTimer.addEventListener("timer", timerHandler);
    myTimer.start();
    public function timerHandler(event:TimerEvent):void {
    var url:String = "
    http://localhost/frame.png";
    var urlReq:URLRequest = new URLRequest(url);
    framePNG.url= sURL; //to avoid caching
    framePNG.send();
    ]]>
    </mx:Script>
    <mx:Image id="framePNG" />
    </mx:Application>

    OK - my guess is that it was to randomize the url to prevent
    caching. As much as I don't like the workaround, try something like
    this: take away your sURL and make it correctly load the image
    once.
    Once this is working, try to set the url like this:
    var url:String = "
    http://localhost/frame.png?dummy="
    + (new Date()).time;
    trace(url); // Just so you can make sure it changes every
    time
    What this is doing is changing your url every time it's
    requested so it's never found in the cache. Perhaps the cleaner way
    of doing this is correcting your server so the headers set
    immediate expiration.

  • Simplest way to tile four copies of the same image into a larger one

    I want to create a wallpaper for my retina display and have found a seamless image I should tile in a two by two juxtaposition to achieve the retina resolution. Any suggestion on the simplest and possibly free solution ? Thank you in advance.

    http://www.gimp.org/downloads/

  • How can I make different catalogs from the same image

    How can I make different catalogs from the same image where that image has been changed in some way between the catalogs. For instance if I wanted to have a catalogs for cropped images and have 3 catalogs one for 4x6 , 5x7 and 8x10 cropping. When I tried this , if I changed a file in one catalog that same image in the other would change also.

    Do not confuse the creation of the crops and the display in collections per crop ratio.
    Of course one virtual copy (VC) per crop ratio is needed. If the same image should be cropped in all 3 mentioned ratios there would be 3 VCs.
    The OP asked how to have/see a set of same-crop-ratios.
    After having created the virtual copies for whatever crop ratio he wants, the way to display this result in the fashion asked for is via smart collections, provided they can be found. Without a plugin the naming of the VC with the crop ratio applied is a straight way to achieve that.
    IF the wish is to get new crops automatically added. (See my answers 2+3)
    IF the wish is to creat static collections per crop ratio for a certain set of images, I'd go as follows:
    1. Select all images you want to have cropped in that way,.
    2. With this selection click on the + to add another collection and fill the dialog box like this:
    Then navigate into this newly created selection and perform the 4x6 crop - according to taste individually or by synchronizing the first crop.
    Cornelia

  • How to treat multiple instances of the same image

    In my W/F I use Lightroom as my catalog and main edit tool but also create (using capture NX) tiff images to be edited in PS and also create jpegs in different formats for web browsing or slideshows.
    To my knowledge, while LR provide a powerful version tool to maintain different edits of the same image, it doesn provide anything to manage different processing  stages of the same image.
    Does anybody face the same issue ? How do you manage ?

    It sounds like you have two requirements:
    1. That different processing stages in time be saved
    2. That different output versions be tracked and updated
    It seems like #1 can be managed using virtual copies or History snapshots, depending on what you need.
    #2 should be automatic on export. When you export, you can set an export folder, which can also be saved as a preset. If you have one export preset for PSDs and another for JPEGs, you simply save an export preset for each output. In addition, you can select "Add to this catalog" so that Lightroom automatically tracks the separate folders where it exported the PSDs and JPEGs. When you want to export, you just select the right preset and everything is put in the right place for you and you can see where they went.
    You might also look into the Publish Services feature since it can do all of the above, and also can automatically track when you change the source image and let you know which exported files (like PSDs and JPEGs) need to be updated. Then you just click one button and they're all updated in their folders.

  • How to manage multiple sizes of the same image?

    I recently took up LightRoom for all the good things it does. One of the things I need to do, however, is to create and manage multiple sizes of the same image needed for different purposes. I always found this cumbersome. I totally expected that the LR library would offer a solution for this but I looked and I didn't see anything. Sure you can export and resize in the process but then you're on your own. Am I missing something? Isn't there a better way? What does Adobe have in mind for best practices and how do you handle this?

    I can't speak for 99jon, but when I need multiple sizes, I export at the desired sizes, and then make use of the exported photos (upload, e-mail, whatever) and then delete the exports. Thus, there's really no need for me to keep track of the photo at this specific size, knowing that if I ever need it again -- unlikely -- I can regenerate it with the export pre-set, so I put no effort (zero!) into keeping track of photos at different sizes.
    The idea of adding it back into the catalog doesn't get me excited, and I would advise against it. I don't need this, and I don't see the benefit of keeping this particular size export for the long-term. As I said, I can always recreate it — but maybe you have such a need to keep these exports long-term and recreating it at a later point in time doesn't meet your needs? Can you explain?
    By the way, you can't resize a virtual copy, so that won't work here. The only time you can resize is on export.

  • How to automate saving the same image multiple times?

    Hello. I wish to save the same image multiple times in a folder... is there a way to automate this function? I also need the flexibility of determining the starting number in this image sequence. Thanks.

    Good day!
    I would recommend asking for help over at
    Photoshop Scripting
    And going into more detail about what you want to achieve (maybe post a screenshot, diagram, mock-up to illustrate it).
    Regards,
    Pfaffenbichler

  • I want to take an image that's from my files, no cropped and be able to set up action(s) where I can drop that image behind an 8x10 frame overlay, then the same with a 5x7 frame overlay, then the same image behind a memory mate overlay that's an 8x10 size

    So is there a way to do this using the images right from the camera, where I don't have to crop three different sized images and drag them into the overlays?  I can set up an action for each, but cropping the same image 3x is a pain in the ***..!

    There are.  I did not write you need to learn scripting and write your own scripts.  As I wrote most Photoshop will never write a script.  However I would write every Photoshop user will at times use a Photoshop script to do some automated process for them. 
    I wrote the it would be very hard to do what you want to do would a straight Photoshop action.  Actions on their own can not use logic.  An action would need to to it by brute force.
    However in Photoshop CC Adobe added conditional action support.  With this support it is now possible to create a group of actions to process some conditions.  Like you can separate Landscape from portraits have an Action for processing  landscape images and an other for processing portrait images.
    Size is still hard to deal with for you can have landscape's the are extremely wide to landscapes that are square and portraits the are extremely narrow to those that are almost square.
    Image the extreme aspect ratio will not fill a 8:10 or 5:7  area it resized to 10 and 7 and creating crops the have 8"10 and 5:7 will have images compositions where most of your image content has been discarded.
    Camera images do not have extreme aspect ratio the usually have  3:2 or 4:3 aspect ratios there are exceptions.  When you have print made the are 5x7 and 8x10 by printers  the prints you receive from the printers are center crops from your image files.
    It is very easy to make center crops if aree images have the same aspect ratio and orientation to begin with.  Now with CC you can have seperate actions to the two orientations.
    A general solution would need handle arbitrary aspect ratios the resulting center crop may well not have a satisfactory image composition for source image with extreme aspect ratios.
    Photoshop ship with several scripts users use all the time to process their image.  You may have used some yourself. Do any of these sound familiar to you. Conditional Mode Change, ContactSheetII, Delete All Empty Layers, Export Layers To Files, ExportColorLookupTables,  Fit Image, Flatten All Layer Effects, Flatten All Masks, generate, Image Processor, Layer Comps To Files, Layer Comps To PDF, Lens Correct, Load DICOM, Load Files into Stack, Merge To HDR, Photomerge, Script Events Manager and Statistics.
    My action package as I wrote contains more the a dozen script I wrote to be used in actions to add logic into the actions.
    It would also be extremely easy to create a Photo Collage Template PSD that contains a background layer that has your two frames the 8x10 and 5x7 and also have two alpha channels to map the locations of the images.  That can be batch populated with my script  BatchPicturePackage.
    Photo Collage Toolkit
    Photoshop scripting is powerful and I believe this package demonstrates this A video showing a 5 image collage PSD template  being populates with images:
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    There are twelve scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
    Documentation and Examples

  • "Thumbnail" image need to be the same image as the "Hero Image?"

    When using the slide show widget does the "Thumbnail" image need to be the same image as the "Hero Image?"
    I would like to keep my "Hero Image" I load into the widget, but would like to change its corresponding "Thumbnail" image to a different icon. Is it possible to use live type in MUSE as the icon and put it over the "Hero Image?" Thanks for the help!
    -t

    Thank you very much for the help. This works great! As I'm diving in deeper and messing with the Composition Widget I had few more questions...
    I have figure out how to put in a different image into the thumbnail, but how do I replace it with a text box instead of an image. I would like to use websafe fonts as the thumbnail that triggers the Hero picture. Is this possible?
    I attached an quick 3 frame storyboard as reference to show you what I am trying to do.
    Thanks in advance!
    -t

  • IPhoto uploading 2 of the same images

    my iPhoto keeps uploading two of the same images, one is lighter than the other one. I was wondering how to make it only upload the one photo from the SD card instead of making one lighter and then uploading the original it sounds weird and I don't know what setting this is or if it is something I did , but I was wondering if anyone knows how to fix it to is having the same problem?

    Go into "Settings" on your iPhone, select "Photos & Camera", scroll down to "Keep Normal Photo", and turn off. Your Macbook will then only download 1 image instead of 2.
    That is risky. You may be throwing away the only good version, sight unseen.
    When shooting HDR I would always keep the normal photo, because the HDR versions can be really bad. The problem is, that i is not really possible to judge the quality of the HDR version on the tiny iPhone screen. The iPhone has to combine multiple JPEGs into one HDR photo, and if the lighting is poor, the subject moved, or you could not hold the iPhone steady, the HDR version will be horrible, but the normal photo acceptable. After comparing the normal photo and the HDR version on my Mac, I usually discard the HDR version and keep the normal photo.

  • Loading the same image multiple times

    I'm trying to dynamically load a single image multiple times
    into flash. Basically I want to end up with two movieclips mc1 and
    mc2 that contain the image. I'm currently using the Loader
    component (connected to the ProgressBar) to dynamically load the
    image. It works fine for loading the image once but I'm really not
    sure how to go about creating a second movie clip with the image.
    Here's my code for loading the first image:
    var mc1:MovieClip = new MovieClip();
    var listener:Object = new Object();
    listener.complete = function(eventObj:Object){
    nextFrame();
    imageLoader.addEventListener("complete", listener);
    mc1 = imageLoader.content;
    imageLoader.load(imgURL);
    But everything I've tried to load mc2 with that same image
    has failed. I've tried 'mc2 = imageLoader.content', 'mc2 = mc1',
    'attachMovie', 'duplicateMovieClip', calling imageLoader.load()
    twice on the imgURL, and creating a second Loader component and
    loading the image again. All of these methods have invariably
    failed. Most of them can load mc1 alright and sometimes mc2 even
    shows up on the stage but in the AS mc2 is always undefined.
    Can anybody point me in the right direction for loading
    multiple copies of the same image? It really shouldn't be that
    hard, should it?

    Well I figured out a solution. Turns out Flash doesn't allow
    you to duplicate dynamically loaded content like an image in a
    movieclip. But there is a little class called BitmapData that will
    do precisely what I was looking for. Here's the link I got this
    info from:
    http://www.senocular.com/flash/source.php?id=0.174

  • How do I stop mail from looping the same emails into inbox?

    How do I stop mail from looping the same emails into the inbox over and over again? It does the same thing with deleted messages that keep showing up again and again in multiples even after deleting them. I have made sure my server settings in all email accounts are set to delete immediately once I delete them on my MacBook Pro/IPhone. This issue has severely compromised the efficiency of Mail on my MacBook. Thanks for any help you're able to give me.

    I have tried that but it does not fix the problem.
    The "card" group is not a previous recipient.
    Although not available for editing in Contacts, it is a valid group showing up in the "To" field of Messages, Mail, or any app using the AddressBook.
    Its associated file is automatically created in:
    ~/Library/ApplicationSupport/AddressBook/Sources/<hexaFolder>/MetaData/<hexa>ABG roup.abcdg
    This is why it also shows up in the Spotlight results...
    If I manually remove this file, it gets recreated...
    If I turn off the syncing through iCloud, the entry gets deleted. If I turn it up, it comes back!

  • WPC: unable to add different resources with the same name into a WPC page

    Hi,
    I got a WPC problem when adding different KM resources with the same name into a WPC page.  Only one KM resource is able to be added in WPC.
    For example:
    There two "article.html" with different content and RID:
    1. /company_a/article.html
    2. /company_b/article.html
    when adding these two html pages into a WPC page, only one page will be shown.
    This means that a WPC page is not able to contain resources with same file names.  I think the problem might lie on the resource-linking mechanism of WPC. WPC will add a resource link in the page folder, when a new resource is drag&dropped into WPC.
    Anyone has some good ideas to solve my problem? Thanks a lot.
    Regards
    Lei NING
    Edited by: Lei NING on Apr 15, 2008 4:16 PM

    As this is not possible and double entries cause this problem, why not just pu both napes in the contact details on the same number. IE John Smith & Peter Jones all in the first name, by doing this if you search your contacts either by searching for john, peter, smith or jones the number will show up and if either calls the number will show John Smith & Peter Jones, it may not be perfect but will work. As the phone only recognises a number if two seperate entries of the number exist with different names it cannot possibly know who is calling ?
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • How Do I put in the same image for multiple songs on iTunes

    Hi,
    I know if I click on the song on "info", I am able to change the album image. Is there a way for me to select multiple songs and do a bulk change with the same image?
    Thanks.

    Yes.
    Select multiple songs, get info and paste the artwork.
    Or select multiple songs and drag the artwork to the artwork window at the lower left of iTunes.

  • How do I relink multiple instances of the same image, in Illustrator CC?

    Is there a feature, like InDesign, where links automatically relink if they're in the same folder?
    Currently I have to search through the file structure multiple times even if the linked image is the same.
    Surely Illustrator should relink all instances of the same image and give the option search for any additional missing links in the same folder?
    I'd love to be pointed in the right direction, or if anyone has a script they've written to solve the problem, do let me know.
    Cheers

    try the script (version 3) in this post,
    Remember last folder location lost with Mac Lion updates

Maybe you are looking for