[quote]are you able to reach equally high framerates in window-mode, too?
[/quote]
hehe… not quite equally 
At best you’ll get about 1/2 of the framerate you get in fullscreen. This is because fullscreen pauses the windowing system, but in windowed mode, you have to share the resources of the system.
I wrote another example for you. This example is not as agressive when it comes to painting, instead it pauses at the end of every loop to let the windowing system to do its minor business. This will keep things running smoothly (i.e. you can drag the window without it staggering or leaving blank spaces all over the screen). I did try to use agressive rendering but I only got an extra 15fps at the most.
You can find the example here: BGWindow.jar, and the source here: BGWindow.java
Feel free to resize the window to see the FPS difference you get in different sizes. The program starts out with the display (not the JFrame) at 800x600. The actual dimensions of the JFrame depend on border settings and other stuff. Give it a try! I got around 435FPS with 800x600x32 @75Hz
By the way, something interesting you should note. The background is 800x600 in size by default. When the display is this exact size, Graphics does not need to resize the image to fit the display. So technically, a smaller resolution than 800x600 can actually be SLOWER! (try 700x500 for example). But of course, teeny tiny sizes like 300x200 or whatever will be faster.