Tested with jpanels