The change of the electron temperature inside magnetic island caused by localized radio frequency (rf) heating is studied numerically by solving the two-dimensional energy transport equation, to investigate the dependence of the temperature change on the location and width of the rf power deposition along the minor radius and the helical angle, the island width, and the ratio between the parallel and the perpendicular heat conductivity. Based on obtained numerical results, suggestions for optimizing the island stabilization by localized rf heating are made.