+ calculateTree.removeAll();
+ // build the calculate menu
+ for (final String type:new String[] {"NJ", "AV"})
+ {
+ for (final Object pwtype: ResidueProperties.scoreMatrices.keySet())
+ {
+ JMenuItem tm = new JMenuItem();
+ ScoreMatrix sm = (ScoreMatrix) ResidueProperties.scoreMatrices.get(pwtype);
+ final String title="Calculate "+type+" using "+sm.getName();
+ tm.setText(title);// MessageManager.getString("label.neighbour_blosum62"));
+ tm
+ .addActionListener(new java.awt.event.ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ NewTreePanel(type, (String) pwtype, title);
+ }
+ });
+ calculateTree.add(tm);
+
+ }
+ }