label.invalid_name = Invalid Name !
label.output_seq_details = Output Sequence Details to list all database references
label.urllinks = Links
-label.togglehidden = Toggle hidden regions on/off
+label.togglehidden = Show hidden regions
label.quality_descr = Alignment Quality based on Blosum62 scores
label.conservation_descr = Conservation of total alignment less than {0}% gaps
label.consensus_descr = PID
label.invalid_name = Nombre inválido !
label.output_seq_details = Seleccionar Detalles de la secuencia para ver todas
label.urllinks = Enlaces
-label.togglehidden = Toggle hidden regions on/off
\ No newline at end of file
+label.togglehidden = Show hidden regions
\ No newline at end of file
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
-import javax.swing.JMenuItem;
+import javax.swing.JCheckBoxMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.SwingUtilities;
private AlignmentPanel ap;
+ private JCheckBoxMenuItem displayToggle;
+
private boolean showHidden = true;
/**
{
// switch on/off the hidden columns view
toggleHiddenColumns();
+ displayToggle.setSelected(showHidden);
}
};
- JMenuItem item = new JMenuItem(
+ displayToggle = new JCheckBoxMenuItem(
MessageManager.getString("label.togglehidden"));
- popup.add(item);
- item.addActionListener(menuListener);
+ displayToggle.setEnabled(true);
+ displayToggle.setSelected(showHidden);
+ popup.add(displayToggle);
+ displayToggle.addActionListener(menuListener);
popup.show(this, e.getX(), e.getY());
}