@@ -656,16 +656,16 @@ public void run() {
656656 });
657657 }
658658 });
659- pnlSeqAnalysis .add (btnDnaShapeBed );
660659
661- JButton btncolorSequencePlot = new JButton ("4Color Sequence Plot" );
662- btncolorSequencePlot .setToolTipText ("Generate 4Color sequence plot given FASTA file and user-defined RGB colors" );
663- btncolorSequencePlot .addActionListener (new ActionListener () {
664- public void actionPerformed (ActionEvent e ) {
660+ JButton btnSearchMotif = new JButton ("Search Motif in FASTA" );
661+ pnlSeqAnalysis .add (btnSearchMotif );
662+ btnSearchMotif .setToolTipText ("Search a motif in fasta files with mismatch" );
663+ btnSearchMotif .addActionListener (new ActionListener () {
664+ public void actionPerformed (ActionEvent arg0 ) {
665665 EventQueue .invokeLater (new Runnable () {
666666 public void run () {
667667 try {
668- FourColorSequenceWindow frame = new FourColorSequenceWindow ();
668+ SearchMotifWindow frame = new SearchMotifWindow ();
669669 frame .setVisible (true );
670670 } catch (Exception e ) {
671671 e .printStackTrace ();
@@ -674,15 +674,16 @@ public void run() {
674674 });
675675 }
676676 });
677+ pnlSeqAnalysis .add (btnDnaShapeBed );
677678
678- JButton btnDnaShapeFasta = new JButton ("DNA Shape from FASTA " );
679- btnDnaShapeFasta .setToolTipText ("Calculate intrinsic DNA shape given input FASTA file" );
680- btnDnaShapeFasta .addActionListener (new ActionListener () {
681- public void actionPerformed (ActionEvent arg0 ) {
679+ JButton btncolorSequencePlot = new JButton ("4Color Sequence Plot " );
680+ btncolorSequencePlot .setToolTipText ("Generate 4Color sequence plot given FASTA file and user-defined RGB colors " );
681+ btncolorSequencePlot .addActionListener (new ActionListener () {
682+ public void actionPerformed (ActionEvent e ) {
682683 EventQueue .invokeLater (new Runnable () {
683684 public void run () {
684685 try {
685- DNAShapefromFASTAWindow frame = new DNAShapefromFASTAWindow ();
686+ FourColorSequenceWindow frame = new FourColorSequenceWindow ();
686687 frame .setVisible (true );
687688 } catch (Exception e ) {
688689 e .printStackTrace ();
@@ -691,17 +692,15 @@ public void run() {
691692 });
692693 }
693694 });
694- pnlSeqAnalysis .add (btnDnaShapeFasta );
695695
696- JButton btnSearchMotif = new JButton ("Search Motif in FASTA" );
697- pnlSeqAnalysis .add (btnSearchMotif );
698- btnSearchMotif .setToolTipText ("Search a motif in fasta files with mismatch" );
699- btnSearchMotif .addActionListener (new ActionListener () {
696+ JButton btnDnaShapeFasta = new JButton ("DNA Shape from FASTA" );
697+ btnDnaShapeFasta .setToolTipText ("Calculate intrinsic DNA shape given input FASTA file" );
698+ btnDnaShapeFasta .addActionListener (new ActionListener () {
700699 public void actionPerformed (ActionEvent arg0 ) {
701700 EventQueue .invokeLater (new Runnable () {
702701 public void run () {
703702 try {
704- SearchMotifWindow frame = new SearchMotifWindow ();
703+ DNAShapefromFASTAWindow frame = new DNAShapefromFASTAWindow ();
705704 frame .setVisible (true );
706705 } catch (Exception e ) {
707706 e .printStackTrace ();
@@ -710,6 +709,7 @@ public void run() {
710709 });
711710 }
712711 });
712+ pnlSeqAnalysis .add (btnDnaShapeFasta );
713713 pnlSeqAnalysis .add (btncolorSequencePlot );
714714
715715
0 commit comments