Minimize all frames

i've got a program running, which if one of the window is being minimized all of the opened windows which is opeened will be minimized, and if clicked ffrom the taskbar all will be restored .. here is the code ....
private void iconifyAllWindows(int state){
     int iterator;
     //Returns an array containing all Frames created by the application.
        Frame[] frame = getFrames();
         for(iterator = 0; iterator < frame.length; iterator++){
               if(state == 0){
                  frame[iterator].setState(ICONIFIED);
             }else if(state == 1){
                frame[iterator].setState(NORMAL);
}but this code has a prob .. if doing a fast double click in the taskbar to minimize or to maximize .. it will do an endless looping of minimizing the frames and maximizing.
any ideas ??

Posting this method is ok, but we can't guess on
which event / context it will be called...oh ok .. forgot that part .. apologies .. here it is
     public void windowOpened(WindowEvent e) {}
     public void windowClosed(WindowEvent e){}
     public void windowActivated(WindowEvent e) {}
     public void windowDeactivated(WindowEvent e){}
     public void windowClosing(WindowEvent e) {
        System.exit(0);
     public void windowIconified(WindowEvent e) {
        iconifyAllWindows(0);
     public void windowDeiconified(WindowEvent e) {
        iconifyAllWindows(1);
    

Similar Messages

  • Changing the titles of all frames in a running application

    Hi All,
    I've got a 50+ frame application. I have realized that I need to update the frame titles for all the frames based upon some event that can be initiated by any of the frames. Each frame title will be different but will incorporate a bit of knowledge about the event. (Note that when I use the term "event", I'm using it in the normal English language sense, not a Java language sense!)
    I've been considering a few approaches and most look either stupid or a whole lotta' work! I'm looking for how to do this the "right way." ...I don't have a broad enough experience to know what's "common" regarding application architecture, but here's what I've got:
    A "Master" class kicks things off. It instantiates a few things like a database connection and so forth, and then it starts a MainFrame that appears on the users screen. The MainFrame, and all of its children, are actually of a class that's an extension of JFrame.
    It's my supposition that I'd like to create some kind of frame pointer holder in the Master, and all frames "register" themselves. When an event occurrs that warrants changing the frame titles, the Master walks the collected frame pointers and directs the titles be changed, as appropriate. ...OR... Is there already a collection of "children" of the master? How would I get that list and how would I walk it looking for a frame?
    Another idea is to be able to send some kind of notification to each frame and say, "Go Update Your Title!"
    Example code GREATLY appreciated!
    Thanks much,
    Richard

    ... While looking into doing this EventObject thing, I noticed that EventObjects are a heavyweight version of what I want... What it really boils down to is:
    Master defines:
    private static Master M = null;
    Vector myChildren = new Vector();
    Then in the constructor:
    M = this;
    Then in a method:
    Vector v = (Vector)myChildren.clone;
    for (int i=0; i<v.size(); i++;)
    ((JFrame)v.elementAt(i)).updateTitle();
    In each JFrame (in my case, in the class that extends JFrame):
    M.addElement(this);
    and in the right place
    M.removeElement(this);
    Oh yeah, and don't forget a method to set the frame title!...
    public void updateTitle()
    this.setTitle("whatever");
    ...That's it! WAY easier than all that foolishness with declairing your own event listeners and everything... For my needs, this was the way to go!
    Regards,
    Richard

  • Add static background image to all frames of gif animation

    First, I'm not a fireworks regular. I use it when I have to to get something done (mostly web optimazations). I would use it more but, frankly in many cases the UI is counter intuitive to everything else adobe makes.
    Here is my problem...
    I need to add (not replace) a static background to ALL existing frames(states) in a fireworks gif animation (with alpha) , the end product gif will be an element in the Edge web animation...details
    I have an animated seq of a rotating object that was created in 3ds max and rendered as a png seq with alpha.
    I opened the SEQ "as animation" in fireworks. I set the frame rate. It plays fine. So far so good....
    I imported an image that I want to be BEHIND the animated seq on ALL frames. I tried puting it on a sub layer behind, i tried puting it on it's own layer behind, but it ONLY shows on the first frame (state).
    I tried using "share with all states" but it replaces the SEQ images already on the "states" instead of adding it behind them like in the arrangement of the layers.
    So first, can this be done and if so how?
    Second, why is this process so counter intuitive in fireworks? I mean if a layer is behind something then it should be a simple button click or check box etc to say "show on all frames (states)", you know like any other product adobe makes. Even "image ready" made more sense than this.  My thought process was that since I needed to end up in fireworks to create and optimize the gif that i should be able to put it together there also but it's turning out to be a lot harder than it should. I guess I can just composite my elements in AE (which is a piece of cake compared to fireworks) and then render another SEQ that I import to fireworks to create the optimized gif. While I'm a fan of the "creative suite" concept, one of my biggest complaints about the "suite" is the lack of master oversite so the common functions, keyboard shortcuts, and fundimental UI concepts are consitant accross all the apps so it functions as a "suite" and not just a collection of seperate applications. I know that demanding that all applications follow certian rules would slow development, in the long run it would make it a lot easier for the end user to spend more time being "creative" and less time trying to figure out why something doesn't work like it does in all the other apps. Just my $.02
    Thanks for any help and or explaination
    Joel H

    Thanks for the response.
    You know I tried that exact thing the only difference being I didn't change the layer names. So not naming the layers would keep that from working ?? Also as you eluded to draging layers to position them in fireworks is a delicate operation. It always seems to take 2 or 3 times to get it to drop where you want it. I named the layers and it works as you said.  Unfortunately I was really pressed for time so I had already given up on fireworks and just composited the SEQ with the BG layer in AE and kicked out another PNG SEQ and then open that "as animation" in Fireworks and then optimized and exported as a gif. So there are allways several ways to do things.
    Thanks again,
    Joel H

  • How can you minimize all open pdf files at once in Acrobat 10?

    My company just switched us to Acrobat 10 from 6.  Now if I have a number of pdf files open I have to minimize each of them individually.  Before all you did was click the minimize button and the program just minimized to the taskbar.  How do you do that in Acrobat 10?  The Help link is of no use in the program.  Maybe this can't be done any longer.  If not, pretty stupid.

    Use the menu Window > Minimize All Windows

  • Minimize All Open Windows

    Hello:
    I am using Photoshop CS2 on Win XP machine and was wondering if there was a keystroke to minimizing all open windows or can that be set up in custom keystrokes.

    ALL open windows, or all open document windows within Photoshop?
    To minimize ALL open application windows, press and hold the left "Windows" key. While holding that key, press "M". The "Windows" key is the quad twisted square key, usually between the Ctrl and Alt keys. Some people actually think the key looks like the Windows logo.
    (has nothing to do with Photoshop)

  • Hello, 2 questionss here is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

    Hello, 2 questionss here>is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

    Hello, 2 questionss here>is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

  • External Monitor Viewing - ALL FRAMES Unchecked

    Hello FCP gurus
    I cannot get a video signal on my external monitor.
    For some reason I have lost the ability to check the ALL FRAMES option in the View Menu under External Video. Each time I click ALL FRAMES it stays in the OFF mode. I think this may be the reason for the external picture loss? I have also just relocated my edit suite so somewhere in the move I might have upset the 'workflow'. Not sure, can't see why? Before today I was getting an external picture no problem.
    The configuration I have is: A Firewire connection from the Hard Drive to a DV Cam (PD150). RCA Vid connector from the cam into a domestic TV.
    I have followed all of Shane's #8 Stock Answer and still nudda!!
    Can anyone help?
    Thanks in advance!
    josie
    P.S. I work in Pal
    #8 External Monitor Viewing.
    Shane's Stock Answer #8:
    A simple path is mac > firewire > camera or deck > rca cables > tv
    Then start up your camera and tv, then open fcp.
    Then go View > External video > all frames
    Video playback should be Apple firewire NTSC (If you are using an NTSC set)
    Audio playback should be Audio follows Video
    Techinially, this should send synched video to your TV
    If for some reason you can't view your timeline on your external monitor, there are a few things to try:
    1) Make sure that the camera/deck is connected and powered on BEFORE you open FCP.
    2) In the Final Cut Pro menu select AUDIO/VIDEO Preferences and make sure your signal is being sent out thru Firewire DV.
    3) Go to the menu and select VIEW>EXTERNAL>ALL FRAMES.
    4) Click in the % box above the image and select FIT TO WINDOW.
    5) Go to VIEW->refresh A/V devices
    6) Make sure the Log & Capture window is closed
    If you want it to play in both the canvas and the external monitor you need to go to the FINAL CUT PRO menu and select AUDIO/VIDIO settings and make sure MIRROR ON DESKTOP is selected under the PLAYBACK OUTPUT section
    Shane
    G5 Mac OS X (10.4.8) FCP 5.1.2

    Heck, I don't know, but reading your question helped me to finally figure out how to get my external monitor working.
    Would it be okay to add to your question. Now that I have mine working the audio goes through the monitor instead of my nice Cerwin-Veg speakers. Is there a way to fix that?
    P.S. Have you tried a power down, hooking up the monitor and then coming back up?

  • External view defaults to off...will not let me view all frames

    In drop down View Menu,  I can't check "All Frames". It defaults to Off resulting in no playback on external Sony D1000 or NTSC monitor???

    Try selecting View->Refresh A/V Device.
    Also check to make sure that the External Video and Audio menus are properly set for Firewire output.
    -DH

  • Configure ce interface to accept all frames (regardless of 802.1q tag)?

    On Solaris 9,
    is it possible to configure a ce interface so it accepts
    all Ethernet frames it receives, regardless of the presence,
    absence, or value of an 802.1q tag?
    I'm trying to run packet sniffing software on a ce interface
    (I'm not using the interface for IP). The Ethernet switch
    I'm attached to forwards to me copies of traffic from many
    different VLANs, via a port mirroring function. Most of
    this traffic is tagged with various 802.1q VLAN tags.
    Some of this traffic may be untagged.
    My difficulty is that since the Sun Gigaswift 'ce' interface
    supports 802.1q, if I configure the interface so it
    doesn't "do" VLANs (e.g. 'ifconfig ce5 plumb'), the ce interface
    discards any incoming frames that have 802.1q tags.
    Alternatively, if I configure the ce interface so it "does"
    VLANs (e.g. 'ifconfig ce10005 plumb'), I end up having to
    configure dozens of logical ce interfaces (one per VLAN) each
    of which will only receive frames tagged for one particular VLAN;
    I don't end up with an interface that receives all VLAN frames.
    I want one logical interface that receives all the frames,
    so I can point my sniffing software at it.
    There's no problem doing this with a card that doesn't support
    802.1q, since that card will happily accept all frames and pass
    them up. So I can do this on qfe or bge interfaces. But I need
    to do this using interfaces available on a PCI card
    (my V880 has several port mirrors coming from various Ethernet switches),
    the interfaces need to be 1000 Mbps (which rules out the qfe card), and
    I'd like to stay with copper (which rules out the bge card).
    That's why I'm trying to do it with the quad ce card, but I'm
    stymied by it support for 802.1q. (If there were just some way
    I could turn off 802.1q support for specific ce instances.)
    Is there a way I can accomplish this with the
    copper Gigaswift interface (Cassini driver) in Solaris 9?
    If not, is there another 1000 Mbps copper interface (provided on PCI card)
    that can do this?
    Or does this become possible in Solaris 10?

    Oops, when I wrote "bge" above, I meant "ge", of course.
    (ge is fiber gigagbit ethernet interface and doesn't know about 802.1q.)

  • When to recompress all frames?

    Hello guys,
    When I am exporting my HDV video from the time line using "Export Quick Time Movie option".
    Should I leave RECOMPRESS ALL FRAMES option checked or unchecked? What is the difference? What does it depend on?
    Thank you.

    Leave unchecked for the most part. Final Cut Pro simply copies frames from existing media files into the new file with no recompression. This is a convenient way to export your media without subjecting it to recompression artifacts.( from the manual) I believe it good for animations and heavy gradients, although I'm not positive.
    --Bob

  • All frames dropped?

    While exporting the film to my external HD, the usb port lost contact so the process was cut. But when reopening previously saved material all I get is a horrible sound and no images.
    The message says: "One or more frames were dropped during playback, if this occurs freqeuntly try ...." I have the RT on dynamic, closed other sequences. Don't know how to lower the compression rate but I have the feeling that nothing of that will help since all frames seems dropped.
    Anyone got any clue?
    Yours dewjack

    I just needed to restart FCE and then the saved versions worked just fine.

  • Copy roto selection to same position in all frames

    I am using AE CS5 in Production Premium. I also have moca AE 3.1 that may be a better way of trying to isolate an object using planar tracking.  I need to replace an item that appears in the same position on all frames of a clip.  This is a previous problem I covered some time ago involving a spiders web that was fixed on an 8mm film gate.  As a result, the web appears on the top left hand corner of every frame in the clip.  Perhaps a different approach will work.  This is complicated because the background behind the item changes such that the boundaries of the selected item become blurred.  I will need to further isolate sections of the clip where there is similar background interference, e.g. a background of mostly dark trees in the top left may to be passable.  There may be a way I can gradually replace the web with background that appears in following frames as the background moves by using duplicate layers.
    How can I roto select the item in the first frame and copy the boundaries of the selection to all frames or is there a better way of doing this?

    How can I roto select the item in the first frame and copy the boundaries of the selection to all frames or is there a better way of doing this?
    You don't. You're thinking in wrong terms here and will work yourself to death if you follow that approach. Instead export a frame, isolate the pattern as a clean greyscale image in Photoshop. Then you can either use it as a matte to punch out the disturbances directly or by creating proper transparency, possibly in a pre-composition by using it as a luma matte on a white solid, as an input for an adjustment layer. Then you can eitehr just fill in the blanks with a copy of your footage that you have slightly shifted in position or in the second case apply effects liek Minimax, Matte Choker and varius blurs to fill the gaps. CC VEctor Blur with the transparency channel as the input will do miracles to "sew" such stuff together. Of course you might also consider RevisionFX' RE:Fill as sort of a canned and pimped plug-in tool set for these kinds of things...
    Mylenium

  • How do I apply the same effect to all frames in CS5 animation?

    I need to add lens flare to all frames at once - but it needs to be applied to the flattened image.  I don't want to have to flatten, click lens flare for each of the 70 frames seperately.
    Here is the gif and photos illustrating what happens if I select frame one - unflattened and flattened.  The spinning globe of course is the animation that is inserted into the surrounding jpeg: http://bobwoolcock.com/images/300_Jiminy-Glick.gif

    Could this filter not be applied to a separate black Layer, that sez to Blend Mode Screen and extended in the Animation Panel in Timeline Animation instead of Frame Animation?

  • Generic code to minimize all windows in a form

    I want to write a procedure to minimize all windows in a form. This procedure will be called from a menu item.
    This can be done by using SET_WINDOW_PROPERTY built-in by hardcoding window names in the form and setting the window state to MINIMIZE.
    The requirement is, the code should be generic. So that, if it is called form the menu item, it will do minimizing of all windows in the current form.
    Hope no form built-ins are available to get the list of window names in a form.
    The requirement can be done by using FORMS The. I doubt it will not work for three tier architecture. Any alternate ways to get a solution?

    You can loop through all blocks and items and collect the used window names.

  • When I have my Firefox browser running, if I bring up a document from my computer, it appears briefly, then disappears behind the browser. It shows in the taskbar, but won't stay on top until I minimize all other windows.

    When I have my Firefox browser running, if I bring up a document from my computer, it appears briefly, then disappears behind the browser. It shows in the taskbar, but won't stay on top until I minimize all other windows.

    Hi NicoMan,
    According to your description ,we seem to suffer a performance issue here.
    Have you tried to open the task manager to check the system performance  ? Is there any specific process occupied many system resources ?Will the issue occur only with the specific applications ?
    We can try to restart the Windows Explorer process to have a check.
    If it only occurred with the spefcific two applications ,we can try to end the other application processes manually from the task manager to have a check .
    If this is caused by the specific application ,we may need to look for help from the third party support considering they are all the third party applications .
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • No data was been displayed in Windows Performance Analyzer

    When I use the Windows Performance Analyzer to analysis the data,but the performance data is not displayed in the WPA. Who can support me to solve the question. Detail: 1. Create the *.etl file (1)do the command:   xperf -on SysProf -stackwalk profil

  • Cant change in call volume

    Hi, i cant change my default in-call volume (default value is maximum). i tried many of volume manager apps, in their setting, in-call volume is fine ( fine for me, is 2 of 5 ), but when income new call, in-call volume, set to highest. i do upgrade t

  • Using my built in isight to record video

    yo guys, i really wanna use my isight to record video but i cant find any apps that will do this for me and i cant find a way to do it with anything that are on here. i know i can do it usin the imovie program but i want sumthin much simpler, kinda l

  • Weird lines ...

    Hello everyone, as this is my first post I do not believe I can post a  new thread.. I am having a problem in Premiere CS3. I have  captured the video off of a dv tape.  The .avi plays fine... when it is  imported into premiere or after effects and i

  • HP 6940 suddenly printing with lines and red hue

    Hello, I was printing photos tonight with my 6940 and suddenly the photos started coming out with the first half (left sides) printed correctly, and the right half has a red hue and striated lines.  I thought the black cartridge might be out, so I re