Changeset 1143 for trunk/src/org/expeditee/items/widgets/SwingWidget.java
- Timestamp:
- 09/18/18 12:00:17 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/SwingWidget.java
r1098 r1143 4 4 import java.awt.Container; 5 5 import java.awt.Graphics2D; 6 import java.awt.Point; 6 7 7 8 import javax.swing.JComponent; … … 109 110 Graphics2D g = SwingMiscManager.getIfUsingSwingGraphicsManager().getCurrentSurface(); 110 111 111 int x = getX(); 112 int y = getY(); 112 final Point location = _swingComponent.getLocation(); 113 int x = location.x; 114 int y = location.y; 113 115 114 116 g.translate(x, y);
Note:
See TracChangeset
for help on using the changeset viewer.