private String[] getTableNames()
    {
        ArrayList<DrawNode> rootNodes = new ArrayList<DrawNode>();

        for(DrawNode node: nodes)
        {
            if(node.getStyle().getTitle().equals("Table Node"))
            {
                rootNodes.add(node);
            }
        }
        
        String[] names = new String[rootNodes.size()];
        for (int i = 0; i < names.length; i++)
        {
            names[i] = rootNodes.get(i).getNode().toString();
        }
        
        return names;
    }