Added support for location, textpane and tabbedpane