Java tutorial
//package com.java2s; import java.awt.geom.Rectangle2D; public class Main { public static double getMonitorYCoordinateSystem(double x, Rectangle2D.Double rect) { return rect.getMaxY() - x; } }