Updated for JLayedPane

At least works but runnning into the same problem