double size = shareNode.getDO().getSize(); size = size / 1048576; String s = Double.toString(size); if (s.indexOf(".") + 3 < s.length()){ s = s.substring(0, s.indexOf(".") + 3) + " MB"; } return s;
return DownloadModel.parseGroesse(shareNode.getDO().getSize());
    public Object getValueAt(Object node, int column) {        ShareNode shareNode = (ShareNode)node;        try {            switch(column) {                case 0:                    {                        if (shareNode.isLeaf() && shareNode!=getRoot()){                            return shareNode.getDO().getFilename();                        }                        else{                            return "";                        }                    }                case 1:{                        if (shareNode.isLeaf() && shareNode!=getRoot()){                            double size = shareNode.getDO().getSize();                            size = size / 1048576;                            String s = Double.toString(size);                            if (s.indexOf(".") + 3 < s.length()){                                s = s.substring(0, s.indexOf(".") + 3) + " MB";                            }                            return s;                        }                        else{                            return "";                        }                    }                case 2:                    {                        if (shareNode.isLeaf() && shareNode!=getRoot()){                            return new Integer(shareNode.getDO().getPrioritaet());                        }                        else{                            return null;                        }                    }                default:                  return null;            }        }        catch (SecurityException se) {        }        return null;    }