Constant Window Refreshing?

I was reading chapter 19 of the SuperBible, about “short-circuiting WM_PAINT” and telling Windows to constantly refresh your window, and now I’m wondering, is there any way to do that in a java program?

i guess the silence means “no”