runelite-client/src/main/java/net/runelite/client/util/SwingUtil.java
/**
	 * Check if point is in screen bounds.
	 *
	 * @param x the x
	 * @param y the y
	 * @return the boolean
	 */
Check if point is in screen bounds.
@param x the x
@param y the y
@return the boolean
Check if point is in screen bounds . @param x the x @param y the y @return the boolean
public static boolean isInScreenBounds(final int x, final int y)
	{
		final Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
		final Rectangle bounds = new Rectangle(size);
		return bounds.contains(x, y);
	}
public static boolean isInScreenBounds ( final int x , final int y ) { final Dimension size = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; final Rectangle bounds = new Rectangle ( size ) ; return bounds . contains ( x , y ) ; }
Check if point is in screen bounds.
Check if point is in screen bounds .