Installing jre7-openjdk prints this message:
when you use a non-reparenting window manager set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh
My WM is openbox, have I to edit the file?
The re-parenting window manager article on Wikipedia strongly implies that openbox is a reparenting wm:
Virtually all modern window managers are re-parenting, although earlier window managers, such as the uwm window manager, were not. Exceptions to that rule are dwm, cwm, PLWM, ratpoison and xmonad, due to a lack of any typical window decorations used by these window managers, and also Compiz which drew the decorations separately up until version 0.9.0, where it became a re-parenting window manager to allow it to run in a non-composited mode.
This is already answered (and goldilocks is right), but the answer isn't direct. To remedy this: No. Openbox is a reparenting WM. Just about any WM with "fancy" window borders is re-parenting. I know of no window manager with borders that is non-reparenting.
/etc/profile.dis a weird place. The choice of window manager is a per-user setting. That means it should be set within the users home directory e.g.$HOME/.profile.