Ignore:
Timestamp:
05/19/08 12:03:18 (16 years ago)
Author:
ra33
Message:

Fixed a bunch of problems with rectangles and resizing the window, as well as adding some more unit tests etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/MouseEventRouter.java

    r41 r67  
    9595                                forwardToExpiditee = true;
    9696                        } else if (DisplayIO.getCurrentFrame() != null) { // is mouse over
    97                                                                                                                                 // a specific
    98                                                                                                                                 // expeditee
    99                                                                                                                                 // item?
     97                                // a specific
     98                                // expeditee
     99                                // item?
    100100                                // NOTE: Do not use FrameUtils.getCurrentItem() - thats relevent
    101101                                // for old mouse position only
     
    110110                                                .getCurrentFrame(), containerPoint.x, containerPoint.y) != null);
    111111                        }
    112                        
     112
    113113                        if (forwardToExpiditee) {
    114114
     
    125125                                MouseEvent expediteeEvent = SwingUtilities.convertMouseEvent(e
    126126                                                .getComponent(), e, _contentPane);
    127                                
     127
    128128                                switch (e.getID()) {
    129129                                case MouseEvent.MOUSE_MOVED:
     
    131131
    132132                                        // Ensure that expiditee has focus only if no popups exist
    133                                         if (!Browser._theBrowser.getContentPane().isFocusOwner()
    134                                                         && !isPopupVisible()) {
    135                                                 Browser._theBrowser.getContentPane().requestFocus();
     133                                        if (Browser._theBrowser.getContentPane() != null) {
     134                                                if (!Browser._theBrowser.getContentPane()
     135                                                                .isFocusOwner()
     136                                                                && !isPopupVisible()) {
     137                                                        Browser._theBrowser.getContentPane().requestFocus();
     138                                                }
    136139                                        }
    137140
Note: See TracChangeset for help on using the changeset viewer.