Not until 1840 was it established that Antarctica was indeed a continent and not just a group of islands or an area of ocean .