* Enable 'scale protein as cDNA' in a SplitFrame view. The selection is
* stored in the ViewStyle of both dna and protein Viewport
*/
+ scaleAsCdna.setEnabled(false);
if (ap.av.getCodingComplement() != null)
{
+ scaleAsCdna.setEnabled(true);
scaleAsCdna.setVisible(true);
scaleAsCdna.setSelected(ap.av.isScaleProteinAsCdna());
}
.getStringBounds("I", getGraphics()).getWidth();
if (mw < 1 || iw < 1)
{
- fontName.setSelectedItem(lastSelected.getName());
- fontStyle.setSelectedIndex(lastSelStyle);
- fontSize.setSelectedItem(lastSelSize);
- monospaced.setSelected(lastSelMono);
JOptionPane
.showInternalMessageDialog(
this,
MessageManager.getString("label.font_doesnt_have_letters_defined"),
MessageManager.getString("label.invalid_font"), JOptionPane.WARNING_MESSAGE);
+ /*
+ * Restore previous values - size first to avoid recursive calls to this
+ * point!
+ */
+ fontSize.setSelectedItem(lastSelSize);
+ fontName.setSelectedItem(lastSelected.getName());
+ fontStyle.setSelectedIndex(lastSelStyle);
+ monospaced.setSelected(lastSelMono);
return;
}
if (tp != null)