jdk-24/jdk/test/java/awt/DataFlavor/MissedHtmlAndRtfBug/NextFramePositionCalculator.java

21 lines
393 B
Java
Raw Normal View History

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();
}
}