1 19 20 package org.netbeans.modules.exceptions.listeners; 21 import java.awt.event.WindowEvent ; 22 import java.awt.event.WindowFocusListener ; 23 import org.openide.util.NbBundle; 24 25 29 public class WinFocusListener extends EventsListener implements WindowFocusListener { 30 private static final String NAME = NbBundle.getMessage(org.netbeans.modules.exceptions.ExceptionsHandler.class, "FocusListener"); 31 32 public WinFocusListener() { 33 super(NAME); 34 } 35 36 public void windowGainedFocus(WindowEvent arg0) { 37 write(NbBundle.getMessage(org.netbeans.modules.exceptions.ExceptionsHandler.class, "IDEGaignedFocus")); 38 } 39 40 public void windowLostFocus(WindowEvent arg0) { 41 write(NbBundle.getMessage(org.netbeans.modules.exceptions.ExceptionsHandler.class, "IDELostFocus")); 42 } 43 44 } 45 | Popular Tags |