Ignore:
Timestamp:
09/18/18 12:00:17 (6 years ago)
Author:
bln4
Message:

Used Eclipse refactoring to encapsulate Point.X and Point.Y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/SwingWidget.java

    r1098 r1143  
    44import java.awt.Container;
    55import java.awt.Graphics2D;
     6import java.awt.Point;
    67
    78import javax.swing.JComponent;
     
    109110                Graphics2D g = SwingMiscManager.getIfUsingSwingGraphicsManager().getCurrentSurface();
    110111
    111                 int x = getX();
    112                 int y = getY();
     112                final Point location = _swingComponent.getLocation();
     113                int x = location.x;
     114                int y = location.y;
    113115               
    114116                g.translate(x, y);
Note: See TracChangeset for help on using the changeset viewer.