Frame frame = new Frame();
frame.add(cap);
- jalview.bin.JalviewLite.addFrame(frame, "PDB - Sequence Mapping",
- 550, 600);
StringBuffer sb = new StringBuffer();
+ try {
for (int s = 0; s < jmb.pdbentry.length; s++)
{
sb.append(StructureSelectionManager.getStructureSelectionManager()
.printMapping(jmb.pdbentry[s].getFile()));
sb.append("\n");
}
+ cap.setText(sb.toString());
+ }
+ catch (OutOfMemoryError ex)
+ {
+ frame.dispose();
+ System.err.println("Out of memory when trying to create dialog box with sequence-structure mapping.");
+ return;
+ }
+ jalview.bin.JalviewLite.addFrame(frame, "PDB - Sequence Mapping",
+ 550, 600);
}
else if (evt.getSource() == charge)
{