@@ -223,12 +223,12 @@ private void configureDownloadButtons(GenomeListItem item) {
223
223
final boolean sequenceDownloadable = GenomeDownloadUtils .isSequenceDownloadable (item .getPath ());
224
224
final boolean annotationsDownloadable = GenomeDownloadUtils .isAnnotationsDownloadable (item .getPath ());
225
225
// downloadSequenceCB.setEnabled(sequenceDownloadable);
226
- downloadSequenceRB .setEnabled (sequenceDownloadable );
227
- remoteSequenceRB .setEnabled (sequenceDownloadable );
226
+ downloadSequenceRB .setVisible (sequenceDownloadable );
227
+ remoteSequenceRB .setVisible (sequenceDownloadable );
228
228
229
229
// downloadAnnotationsCB.setEnabled(annotationsDownloadable);
230
- downloadAnnotationsRB .setEnabled (annotationsDownloadable );
231
- remoteAnnotationsRB .setEnabled (annotationsDownloadable );
230
+ downloadAnnotationsRB .setVisible (annotationsDownloadable );
231
+ remoteAnnotationsRB .setVisible (annotationsDownloadable );
232
232
}
233
233
}
234
234
@@ -310,8 +310,8 @@ public void keyReleased(KeyEvent e) {
310
310
downloadSequenceRB = new JRadioButton ("Download sequence" );
311
311
remoteSequenceRB = new JRadioButton ("Use remote sequence" );
312
312
remoteSequenceRB .setSelected (true );
313
- downloadSequenceRB .setEnabled (false );
314
- remoteSequenceRB .setEnabled (false );
313
+ downloadSequenceRB .setVisible (false );
314
+ remoteSequenceRB .setVisible (false );
315
315
downloadSequenceGroup = new ButtonGroup ();
316
316
downloadSequenceGroup .add (downloadSequenceRB );
317
317
downloadSequenceGroup .add (remoteSequenceRB );
@@ -325,8 +325,8 @@ public void keyReleased(KeyEvent e) {
325
325
downloadAnnotationsRB = new JRadioButton ("Download annotations" );
326
326
remoteAnnotationsRB = new JRadioButton ("Use remote annotations" );
327
327
remoteAnnotationsRB .setSelected (true );
328
- downloadAnnotationsRB .setEnabled (false );
329
- remoteAnnotationsRB .setEnabled (false );
328
+ downloadAnnotationsRB .setVisible (false );
329
+ remoteAnnotationsRB .setVisible (false );
330
330
downloadAnnotationsGroup = new ButtonGroup ();
331
331
downloadAnnotationsGroup .add (downloadAnnotationsRB );
332
332
downloadAnnotationsGroup .add (remoteAnnotationsRB );
0 commit comments