Key Press Problem

Hello!
First i want to say, sorry my bad english.
I'm new here,i searched on forums and web but i don't found the solution.
I have 2 scenes:
''menu''
''level1''
And i have a ''button'' in the ''level1''. This button is needed to start the game. It has only a code, that shows/hides/changes cursor. Nothing else.
In ''menu'' i have 2 frames, the first is the ''mainmenu'', and the second is the ''levelselect'' ( where i have a button that redirects you to the scene ''level1'', it works.)
I have this code in the scene ''level1'', but it only redirects me to ''menu'', frame 1,when i click that ''button''.
But i don't know why, this thing works only when i click that button, but the 2 things are not related.
This is the script for the ''escape'' key.
stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_KeyboardDownHandler);
function fl_KeyboardDownHandler(event:KeyboardEvent):void
            if(event.keyCode==27)
           gotoAndStop(1, "menu")        
          trace("escape" + event.altKey);
And this is script for the button:
( I have custom cursor that activates when i press the button, it works perfectly.
Just i need to click the button and the escape to redirect to the first scene. Dont know why.)
import flash.events.MouseEvent;
stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_KeyboardDownHandler);
function fl_KeyboardDownHandler(event:KeyboardEvent):void
            if(event.keyCode==27)
           gotoAndStop(1, "menu")                                                                                           //this is the code, when i press the escape key
           dot.removeEventListener(Event.ENTER_FRAME, showcustomcursor);
           stage.removeChild(dot);
           Mouse.show();
          trace("Escape is " + event.altKey);                                                                                    //this line is only for test, so i know i pressed the ''escape''
startbutton.addEventListener(MouseEvent.CLICK, activate);                                            //personal test too, i can see the whole stuff is active
function activate(event:MouseEvent):void
          trace("Activated");
startbutton.addEventListener(MouseEvent.CLICK, showcustomcursor)
function showcustomcursor(event:MouseEvent):void
  stage.addChild(dot);
  dot.mouseEnabled = false;
  dot.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
  function fl_CustomMouseCursor(event:Event)
          dot.x = stage.mouseX;
          dot.y = stage.mouseY;
  Mouse.hide();                                                             //hides the cursor
Thank you, and sorry.
EDIT: I want to press only escape key to quit to main menu, not button+escape.

never nest named functions. once you unnest them, copy and past your unedited code because you showed two different keylistener functions with the same name.
function showcustomcursor(event:MouseEvent):void
  stage.addChild(dot);
  dot.mouseEnabled = false;
  dot.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
Mouse.hide();
  function fl_CustomMouseCursor(event:Event)
          dot.x = stage.mouseX;
          dot.y = stage.mouseY;

Similar Messages

  • Flash 9 Key press Problem

    Using Flash 9, when running an application from the IDE, key
    presses of K which are supposed to do something in my app are being
    captured by the IDE and doing something there instead.
    Didn't happen in flash 8, is there a way to disable / fix
    this.

    Plucka,
    > Using Flash 9, when running an application from the IDE,
    > key presses of K which are supposed to do something in
    > my app are being captured by the IDE and doing something
    > there instead.
    While in the SWF window you're testing in the IDE, go to
    Control >
    Disable Keyboard Shortcuts. Let me know if that does it for
    you. :)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to get the actual key pressed in a UITextField

    Hi all , now i develop a program on iphone SDK 3.0 GM.
    I have an UITextField (created programmatically) and I have implemented the delegate as well as the UITextFieldTextDidChangeNotification so that I can react to changes in the text values.
    However, I specifically want to know when the user presses the backspace key in the UITextField when there is currently no text in the field. I can't find where I can get a specific notification of the actual key pressed, as opposed to the resulting state of the text. I'm sure there is a way to do this...help?

    I can imagine why you want to do it. I had the same problem myself and managed to circumvent it in a slightly painful way. What I did was to subclass UITextField to create a text field that always had text in it, even when it "seemed" empty. In fact the first character of the text is a space character, and then what follows is the actual text. In this way, your delegate will always get called about a backspace (when it's an attempt to delete the leading space character, obviously you should return NO in the textField: shouldChangeCharactersInRange: replacementString: method). I won't get into the details of exactly how to set everything up, like I said it is kind of elaborate and I wouldn't really recommend it unless you are desperate to have that kind of functionality.

  • Flash Action Script Key Press Restrictions

    Hello, so I am making a Pacman game and am using the following script for the movement of my character.
    onClipEvent (enterFrame) {
              speed = 10;
              if (Key.isDown(Key.LEFT))
                        this._x -= speed;
                        _root.char.gotoAndStop(2);
              if (Key.isDown(Key.RIGHT))
                        this._x += speed;
                        _root.char.gotoAndStop(1);
              if (Key.isDown(Key.UP))
                        this._y -= speed;
                        _root.char.gotoAndStop(3);
              if (Key.isDown(Key.DOWN))
                        this._y += speed;
                        _root.char.gotoAndStop(4);
    The problem that I'm having is that when I press the right and down keys, or any other two keys that result in diagonal movement, the character moves in that direction.  I only want the character to be able to move right, left, up and down.  The   _root.char.gotoAndStop(3); part of the script is just so that the character faces in that direction.  Is there any way to restrict the number of keys that can be pressed at once to one? Or to make it so that only the first of the two keys or the second of the two keys pressed is used? If not, is there any way to make a RIGHT and DOWN key press result in diagonal movement that also faces the character that way? Or stops the character entirely? I would throuroughly appreciate any help on the matter! Thanks in advance!
    Walt

    One way would be to incorpate "else" 's for the last three conditionals.  That would make it so that the first key determined to be down would be the key that determines the movement.
    onClipEvent (enterFrame) {
              speed = 10;
              if (Key.isDown(Key.LEFT))
                        this._x -= speed;
                        _root.char.gotoAndStop(2);
              } else  if (Key.isDown(Key.RIGHT))          {
                       this._x += speed;
                        _root.char.gotoAndStop(1);
              } else if (Key.isDown(Key.UP))          {
                        this._y -= speed;
                        _root.char.gotoAndStop(3);
              } else if (Key.isDown(Key.DOWN))           {
                        this._y += speed;
                        _root.char.gotoAndStop(4);

  • Using InputMap and ActionMap to detect any key pressed...plz help

    Hi,
    I am quite new to Java. I have a tiny problem. I wanna put an actionlistener into a JTextField, so it printout something whenever a key is pressed (when the textField is selected).
    I can only get it to print if I assign a specific key to pressed...example below (works):
    JTextField searchBox = new JTextField();
    InputMap imap = searchBox.getInputMap();
    ActionMap amap = searchBox.getActionMap();
    imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, 0), "pressed");
    amap.put("pressed", new AbstractAction() {
              public void actionPerformed(ActionEvent e) {
                   System.out.println("TYPEEEEEEEEEEEEEEE");
    HOWEVER, when i change keystroke to any key pressed, it doesn't work. Example below(doesn't work):
    JTextField searchBox = new JTextField();
    InputMap imap = searchBox.getInputMap();
    ActionMap amap = searchBox.getActionMap();
    imap.put(KeyStroke.getKeyStroke(KeyEvent.KEY_PRESSED, 0), "pressed");
    amap.put("pressed", new AbstractAction() {
              public void actionPerformed(ActionEvent e) {
                   System.out.println("TYPEEEEEEEEEEEEEEE");
    Somebody plz helps me. I am really confused how to use KeyEvent.KEY_PRESSED. I thought it would work the same way as KeyEvent.VK_A...if i can't use KEY_PRESSED for that purpose, what KeyEvent do I use?
    Thank you very much in advance.

    Sounds like you want a KeyListener.
    textField.addKeyListener(new KeyListener() {
        public void keyTyped(KeyEvent e) {
            System.out.println("Key typed.");
        public void keyPressed(KeyEvent e) {
            System.out.println("Key pressed.");
        public void keyReleased(KeyEvent e) {
            System.out.println("Key released.");
    });See the API documentation for more information.

  • Multiple key press's with Bluetooth Keyboard

    I'm ready to update my mac to a new G5 imac and fancy getting the wireless bluetooth keyboard and mouse with it.
    I have one question, has anyone experienced problems when holding down multiple keys on the keyboard and moving the mouse all at once (Using illustrator)?
    In my office I have the misfortune of having to use a PC, I have had a number of wireless keyboard and mouse combos, all of them when using Illustrator and photoshop can not handle multiple key press's and mouse movement.
    ie if I'm duplicating an object by dragging a copy of it across the screen, on the PC it will work but it always "releases" after a couple of seconds and drops the copy in the where I don't want it which gets very frustrating (this only happens with wireless).
    As I do a lot of work at home, I hoping this wont be the case with the mac's bluetooth K & M.
    thanks
    Russell

    The shift key works just fine on my Bluetooth keyboard.  So I would imagine this is an issue with your keyboard.

  • Key pressed in Jlist and selecting the item of key list accordingly

    Hi,
    I have a JList with the items in sorted order.Now I want that if a person presses any key (say K) then the first item starting with K should be selected.Hmmm I can do it by addding a key listener to the list and cheking all the items in the list ,by traversing through the whole lenght of JList and selecting the item if it starts with the character of the key pressed.
    But i was thinking if there is any better way to do that?
    Regards Amin

    see bugid: 4654916 - it does say that the the
    scrolling for the JList should now work with keyboard
    selection.I have the same problem. Thanx for the hint with the bugid. Saw a good workaround there with a simple subclass of JList. Works for me although it is annoying to subclass JList all the time. The bug seems not to be fixed in the 1.4.1 JDK.
    Andreas

  • "Enter Passcode" screen not showing the dots for key press

    I've a passcode that is 6 characters long. When I slide to unlock my phone , the "Enter Passcode" screen comes up as normal, but sometimes when I try to enter my passcode in the white box, though the key press turns blue under my finger tips as normal but nothing (no black dots) is entered into the white box. Whenever this happens I'm not able to unlock my phone with the passcode and I've to power off and power on the phone to detect the passcode.
    Not sure anyone else having the same problem as mine. If anyone encountered the same problem and know how to fix it, please help me.
    Thanks!

    I have two iPhone 4S both with iOs7 and simple passcode. One had the dots, the other didn't. I went through changing settings on the one without dots to match the settings to the one with dots one at a time until they came on.
    For me the exact change was turning on the Auto Brightness setting.
    Settings > Wallpapers and Brightness > Auto-Brightness
    Perhaps it's the same bug for complex passcodes? Worth a try.

  • How to detect any key pressed for program running in the background?

    Hi All,
    is it possible to detect when any key is pressed if a java program is not in the focus? For example, when I have a console based program I can write something like:
    System.in.read();
    and wait until any key is pressed. However, if I move the mouse away from the console and make any other window active, the console program "doesn't hear" anything. Ok, it's clear, of course, but how is it possible to make the program detect any keys pressed even if it's running in the background?
    Thanks a lot for any hints!

    qnx wrote:
    1) Stop trying to make spyware. -> I don't do anything like this!
    2) Stop re-posting the same questions. -> didn't know they are the same, sorry.
    3) Stop taking us for fools. -> what? Honestly, I don't think that I realy deserved this :)With a limited posting history and the type of questions you are asking they are unusual.
    There are very few legitimate problem domains that would require what you are asking about. There are illegitimate ones though. And the legitimate ones would generally require someone with quite a bit of programming experience and would also be required (the fact that java can't do it would not get rid of the requirement.)
    Thus one might make assumptions about your intentions.

  • Simultaneous ASDW key press undetected

    Hi guys, I'm currently developing a game that uses ASDW buttons for its movement system
    During one of my testing session, i realized that if i press 2 buttons simultaneously, (ex: A and S), both events would be dispatched one after the other (just like what i assume they would do)
    But if i press 3 buttons simultaneously, (ex: A, S and D), the last keypress (D) will go undetected
    Only after i release one of the keys (either A or S) will the last keypress be detected
    From what i read here ==> http://blog.nobien.net/2008/05/12/more-than-two-simultaneous-key-presses-and-keyboardevent key_down-woes/
    It is said that the problem might had been caused by a hardware issue
    From what i read at wikipedia http://en.wikipedia.org/wiki/Keyboard_%28computing%29
    [quote]
    Some low-quality keyboards suffer problems with rollover (that is, when multiple keys are pressed in  quick succession); some types of keyboard circuitry will register a  maximum number of keys at one time. This is undesirable for games (designed for multiple keypresses, e.g. casting a spell while holding  down keys to run) and undesirable for extremely fast typing (hitting new  keys before the fingers can release previous keys). A common side  effect of this shortcoming is called "phantom key blocking": on some  keyboards, pressing three keys simultaneously sometimes resulted in a  4th keypress being registered.
    Modern keyboards prevent this from happening by blocking the 3rd key  in certain key combinations, but while this prevents phantom input, it  also means that when two keys are depressed simultaneously, many of the  other keys on the keyboard will not respond until one of the two  depressed keys is lifted. With better keyboards designs, this seldom  happens in office programs, but it remains a problem in games even on  expensive keyboards, due to wildly different and/or configurable  key/command layouts in different games.
    [/quote]
    Question
    - What causes this problem is it a hardware issue or a language/flash player problem?
    Because i might be wrong, but i think i've played several non-flash games before that possess the ability to address multiple keypress at the same time
    - Can this problem be fixed?
    Code
    package
            import flash.display.Sprite;
            import flash.events.KeyboardEvent;
            public class Keyboard extends Sprite
                     public function Keyboard()
                            this.stage.addEventListener("keyDown", showKey);
                    public function showKey(event:KeyboardEvent)
                            trace(event.keyCode);
    Any help regarding the matter is greatly appreciated, thank you in advance~

    Quote
    do you think an update of the bios will do the trick?
    No, no, no, it won't, so please don't try it!
    Also, if you read the comments in the link you posted, your answer is there:
    Quote
    By Tony Fendall on May 12, 2008 | Reply
    The problem comes from the way in which the signal for the pressed keys moves from your keyboard to your computer. The signal is only 8-bit, and there are limits to how the signal can be changed to represent more than one key being pressed in combination.
    Long story short, the guys who designed the origional keyboards made a descision to support all two key combinations, and then selected as many three key combinations as they could support with the hardware. This meant that some combinations had to be left out, and they had to make a descision about which ones were more important.
    It just happens to be that they chose not to support three key combinations which involve the up arrow key. I do not think there is any solution to this problem…
    If you're playing games, why not just remap the keys in the game's settings?

  • KEY PRESS ISSUES

    I own a Pre Plus on Verizon. I have read the numerous posts describing issues with keyboard key press difficulties. What I haven't seen, is any resolution to the problem. Personally, The keyboard size is OK. The unreliable key press issues are driving me nuts. The worst key on my Pre+ is the "e" key and some others, mostly on the top row of keys. I first press, nothing, press again, maybe nothing or multiple entries of "e", The "y" is second worst. Same issues. Is ANYBODY doing anything to resolve this problem?
    Post relates to: Pre Plus p101vzw (Verizon)
    This question was solved.
    View Solution.

    The last software update 1.4.11 addressed this issue on the Verizon Palm Pre Plus. If you are on earlier software version you need to update your device to the latest SW version. If you are on the latest SW version you may have a hardware problem with the device. You should go to Device Info from your launcher, tap the drop-down menu, choose Tests, then Interactive Tests, then test your keypad for problems. If this test fails then you should get a replacement device from Verizon.

  • Key press elapsed time

    I'm building a shooting game. I want to record how long the player has the F key pressed in order to use that value to remove ammunition sprites from the stage.
    My application loops in frame 1.
    I have a script that subtracts the key press time from the system time on key release. I think the repeat rate of the keyboard is interfering with this as the output figures are quite random and holding the key down for longer returns a lower number.
    global gFire, gTotal, gStartTime
    on startMovie
      the keyDownScript = "handleKeydown"
      the keyUpScript = "handleKeyUp"
    end startMovie
    --Handler to fire
    on handleKeydown
      if the key = "f" then
        gStartTime = the milliseconds
      end if 
    end handleKeydown
    --Handler to stop firing
    on handleKeyUp
      if the key = "f" then
        gfire = (the milliseconds - gStartTime)/10
        gLeft = gTotal - gFire
        gTotal = gLeft -- gTotal is used to incrementally turn off sprite visibility
        put gfire -- Trace elapsed time to Message window
      end if
    end handleKeyUp
    --This sequence removes bullets from the stage\
    according to he time spent firing
    on enterFrame
      if tTotal < 900 then
        sprite(10).visible = False --this repeated for a sequence of 10 sprites
      end if
    end
    The other problem with this is that it doesn't update the stage till the key is released, so a player can defeat the logic by just holding the key down continuously (especially because the value of gFire doesn't increase as expected)
    Ideally I'd like to record the elapsed time the key is down, add it to a global and have it update the stage at the frame rate, so I guess it would have to be within a frame event handler.
    Any help would be gratefully received.

    MStewart,
    Thanks for doing that. I decided to do a little something like that and just reworked it a bit. Dropped the pause on a case structure and put the timer inside. seemed easier to do it that way for what I wanted to accomplish. The pause is going to be a good thing to have in the event that the heater needs to be turnd off and worked on for any reason, and it won't accrue time or cycles. Used a "in range and coerce" to compare minutes and seconds and then wired a 4 to 15 mA simulated signal to to the timer. All I got to do now is duplicate it 14 more times and then to work on the cDaq part of it to control relays through dig out signals, and sequence the whole thing to write a file for the analog in. Thanks alot for your help and BowenM too. like I said: you guys are awesome. Got me to thinking in other directions.
    Attachments:
    Mexico sentinal loop.vi ‏11 KB
    milliamp timer w pause function.vi ‏24 KB

  • Macbook Pro Key repeat problem

    I've had my MacBook Pro for almost 2 years now but it's recently started to have keyboard repeat issues. The keys are not physically stuck but behave like they are, in a totally random manner - including the delete key and the space bar. Messages will end up lookinggggggg a bittttttt like thissssssssssssss. Very annoying.
    This tends to be accompanied by a sluggish trackpad too. Then after a while - it behaves normally again.
    I have nothing else attached - anyone any ideas?
    Thanks
    curlydog

    I've been having an occasional key repeat problem for a while, I'd say for a year. I'll be typing, and then I'll stop, and the last key I pressed starts repeating and keeps going until I press another key. I've also seen it miss characters sometimes. This happens more often than a key repeating by itself. I'll be sure I pressed a key, but I get "wrds like ths." Maybe I'm just not pressing a key "deep" enough. Sometimes I've tried typing a bit slower and that seems to help.
    I regret not bringing my laptop in for someone to look at earlier, but I've been very busy for the last couple years. The problem hasn't occurred often enough to make it a problem that I felt compelled to solve right away. It just feels like an annoyance, like, "Come on. This shouldn't have made it off the line like this!" I don't want to start a "war", but I had a Windows laptop before my Mac and I never had these problems with the keyboard. There are other attributes I like about my Mac, so it's annoying but not a big deal for me.
    I usually run VMWare Fusion 2.0, and I've suspected that it's a culprit. The problem doesn't just occur on web pages, though that's where I usually notice it when it happens. I've seen it in TextEdit as well. What I notice is it happens when I've got something else running in the background taking up CPU time. Maybe the computer is swapping to/from disk. Sometimes I've seen it happen on a web page with some slow Javascript on it, again taking up CPU time. It seems to me it's a matter of the hardware or software missing the signal from the keyboard. Perhaps it's related to the "keyboard sleep" problem, which I've also seen, where the keyboard and trackpad just go dead. In this case I put the computer to sleep for a bit and then wake it back up. That brings both back for a bit, but it usually reoccurs, in which case I reboot it.
    I've been hoping that Apple would come out with a patch for the key repeat problem. So far I haven't seen it. Would an upgrade to Snow Leopard fix it?

  • ActiveX is stealing my key presses?

    Hi all,
    I have a fairly simple front panel with a handful of LabVIEW controls and an ActiveX container. In the ActiveX container is the Adobe Reader plugin.
    My vi works, but exhibits an odd behaviour that I presume is focus related. Once the ActiveX control is programmatically told to open and display a pdf file, it seems to steal the focus - permanently. If I select my LV string control, I can select any text in it, but key presses are all still sent to the Adobe Reader ActiveX control. If I click a few check boxes, then the string control again, it still doesn't accept my keyboard presses. The only way I've found to stop all this is to press tab, as this causes LabVIEW to move the focus away to the next control in the tab sequence. After that, all is ok until the next pdf file is read into the ActiveX control, and then I'm back at square one.
    Now I don't want to be telling my customers, "that's alright mate, just make sure you press the tab key after every pdf you generate and you'll be just fine."
    I've tried programmatically moving the focus away from the ActiveX control, and setting "SkipTabbing" to true, but this doesn't work.
    Anyone know how I can prevent this darned ActiveX control from permanently stealing my focus?
    Thoric (CLA, CLED, CTD and LabVIEW Champion)
    Solved!
    Go to Solution.

    nathand wrote:
    Unfortunately I don't have a good solution, but I can sympathize - I've had the same problem.
    Hi nathand, thanks for the sympathy 
    I've tried a few things, including navigating away from and straight back to the tab panel which houses the control to attempt to change the control focus. I've even tried simulating the keyboard TAB key press, which actually works - but only once for some annoyingly unfathomable reason! A second call to the ActiveX AdobeReader control makes it the focus again, but this time permanently. I've even tried putting the ActiveX control into a subvi that's hosted within a subpanel - no difference.
    Ultimately, like yourself, I've had to settle for a separate window, which I've called a Preview Window. Of course, putting my large ActiveX container in a separate subvi has left a dirty big empty space on my main vi front panel 
    I'm tempted to try to hide all borders around the preview window, and programmatically control its location such that it sits perfectly over the empty space within my main front panel. Of course, this means monitoring main panel window resizes and movements to maintain the correct relative locations, but it's do-able...
    I've got a new problem now - I thought about using Invoke to Get the Front Panel Image, then place this into a picture control. However, it seems the AdobeReaderActiveX control evades the LabVIEW Front Panel Image method, revealing nothing but the blank front panel colour behind the container. I can't seem to find a way around this either!
    Dam dam dam dam dam dam dam dam dam dam dam dam!!!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Where can i learn to handle key presses?

    Right now if I try to hold two keys at once the computer only listens to one of the key presses, and if I am trying to hold a key and release another key at the same time, it only responds to the release. Does anyone know how I can fix these problems or at least point me in the direction of a place I can learn? Right now I have been trying for days and am completely stumped.

    Not sure if this will help or confuse you more but try this:
    1) Run the program as is. Try the left/right arrow keys
    both keyPressed and keyReleased events are generated
    2) Uncomment the line // panel.add(tf). Run again and try the left/right arrow keys
    only the keyReleased event is generated (so the text field is doing something)
    3) Uncomment the remaining lines to override the processKeyEvent of the text field
    Run again and try the left/right arrow keys
    both keyPressed and keyReleased events are generated
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class TestKeyListener extends JFrame implements KeyListener
         public TestKeyListener()
              setSize(200, 200);
              addKeyListener(this);
              JPanel panel = new JPanel();
              getContentPane().add(panel);
              JTextField tf = new JTextField(10)
    //               public void processKeyEvent(KeyEvent e)
    //                    super.processKeyEvent(e);
    //                    System.out.println(e);
    //          panel.add(tf);
         public void keyTyped(KeyEvent e)
              System.out.println(e);
         public void keyPressed(KeyEvent e)
              System.out.println(e);
         public void keyReleased(KeyEvent e)
              System.out.println(e);
         public static void main(String[] args)
              JFrame frame = new TestKeyListener();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setVisible(true);
    Here is another program that gets all events from the AWT event queue. There is a way to set a mask to retrieve only the events you want (ie. key events), but I'm not sure how to do it. If you search the forum you should be able to find an answer.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class TestEventQueue extends JFrame
         public TestEventQueue()
              Toolkit.getDefaultToolkit().getSystemEventQueue().push(new MyEventQueue());
              setSize(200, 200);
    //          JTextField tf = new JTextField(10);
    //          getContentPane().add(tf);
         public static void main(String[] args)
              JFrame frame = new TestEventQueue();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setVisible(true);
         public class MyEventQueue extends EventQueue
              protected void dispatchEvent(AWTEvent event)
                   super.dispatchEvent(event);
                   System.out.println(event);

Maybe you are looking for

  • EH&S WWI Issue-Page no is printing incorrect

    Hi all, I have a problem when issuing a printout of an MSDS document from CG54 .The pagenumbers are not incrementing.For eg if i have 3 pages the print out shows 0 of 3 in all the pages and not as 1 of 3 ,2 of 3 etc...can anyone help on this?? Is thi

  • How Do I Transfer A File to an NTFS External?

    I finished with one of my movies and the final product is a little over 2GB's. It is stored an my external MAC journaled G-Drive. I am trying to load it to an NTFS drive for somebody else to view it and use it on a Windows PC. Mac can READ but not WR

  • Need router suggestions for G4 MDD

    Wi-Fi availability is very sparse in my neighborhood, so using an iPhone at home can be challenging.  I thought that by purchasing a router I could improve my situation.  I would also like to control my iTunes library on the G4 through my iPhone. The

  • JDBC: send batch of SQL commands as anonymous PL/SQL block

    Hi All, I did a little measurement to see if I can improve jdbc applications by batching dissimilar SQL commands into one anonymous PL/SQL block and execute it once. To my surprise, for a batch of 5 SQL commands, it take 60% more time than execute ea

  • Photos get auto-cropped and ken burns. stop it.

    Trying to do a stop motion. don't need the photos to movie. Cant get imovie to stop auto cropping and ken burns-ing the photos on import from iphoto. Would be fine, but i can't bulk adjust them either, tired of going through frame by frame and puttin