jdk-24/jdk/test/java/awt/DataFlavor/MissedHtmlAndRtfBug/NextFramePositionCalculator.java
2013-02-08 22:08:10 +04:00

21 lines
393 B
Java

import java.awt.*;
class NextFramePositionCalculator {
private final Frame currentFrame;
public NextFramePositionCalculator(Frame currentFrame) {
this.currentFrame = currentFrame;
}
public int getNextLocationX() {
return currentFrame.getX() + currentFrame.getWidth();
}
public int getNextLocationY() {
return currentFrame.getY();
}
}