I'm no expert on the GUI classes but your last suggestion sounds reasonable.
Set the sequence and let people view it while running a search on a copy of the sequence and then when the features have all been added you can swap the sequences and update the display. It's not elegant and there may be a better way. - Mark Joel Peter William Pitt <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/13/2005 09:46 AM To: biojava-l@biojava.org cc: (bcc: Mark Schreiber/GP/Novartis) Subject: [Biojava-l] Disabling SequencePanel updates Hi All, I'm trying to develop a GUI based sequence analysis tool. I have a SequencePanel displaying features that are found by a seperate thread. Within this thread are calls to Sequence.createFeature when an appropriate match is found - my problem is that SequencePanel listens for all changes to a sequence and there is no way (that I know of) to disable this. The reason this is annoying is because I would like allow a user to still view the sequence while waiting for the search to complete. I can push events to the Swing EventQueue that add features, but this drastically slows down the search due to the number of matches found - I would rather just fire a ChangeEvent once the search has completed. I thought I could override the setSequence method in a subclass of SequencePanel and not assign changeListeners, but then the other methods of SequencePanel won't have access to the sequence. Alternatively I could make a copy of the sequence for viewing and one for searching on. Can anyone suggest the best way to go about this? Thanks, Joel _______________________________________________ Biojava-l mailing list - Biojava-l@biojava.org http://biojava.org/mailman/listinfo/biojava-l _______________________________________________ Biojava-l mailing list - Biojava-l@biojava.org http://biojava.org/mailman/listinfo/biojava-l