/** * Return the tooltip position as an array in for them [x, y] * * @param textbox the textbox to get the position of * @return tooltip position */ private int[] getTooltipPosition(TextBox textbox) { int[] pos = new int[2]; pos[0] = textbox.getAbsoluteLeft() + textbox.getOffsetWidth() + 5; pos[1] = textbox.getAbsoluteTop() + 2; return pos; }