diff --git a/src/main/ScriptManager.java b/src/main/ScriptManager.java index 78fbeac6f..c9b37d623 100755 --- a/src/main/ScriptManager.java +++ b/src/main/ScriptManager.java @@ -656,16 +656,16 @@ public void run() { }); } }); - pnlSeqAnalysis.add(btnDnaShapeBed); - JButton btncolorSequencePlot = new JButton("4Color Sequence Plot"); - btncolorSequencePlot.setToolTipText("Generate 4Color sequence plot given FASTA file and user-defined RGB colors"); - btncolorSequencePlot.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { + JButton btnSearchMotif = new JButton("Search Motif in FASTA"); + pnlSeqAnalysis.add(btnSearchMotif); + btnSearchMotif.setToolTipText("Search a motif in fasta files with mismatch"); + btnSearchMotif.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { EventQueue.invokeLater(new Runnable() { public void run() { try { - FourColorSequenceWindow frame = new FourColorSequenceWindow(); + SearchMotifWindow frame = new SearchMotifWindow(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); @@ -674,15 +674,16 @@ public void run() { }); } }); + pnlSeqAnalysis.add(btnDnaShapeBed); - JButton btnDnaShapeFasta = new JButton("DNA Shape from FASTA"); - btnDnaShapeFasta.setToolTipText("Calculate intrinsic DNA shape given input FASTA file"); - btnDnaShapeFasta.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent arg0) { + JButton btncolorSequencePlot = new JButton("4Color Sequence Plot"); + btncolorSequencePlot.setToolTipText("Generate 4Color sequence plot given FASTA file and user-defined RGB colors"); + btncolorSequencePlot.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { EventQueue.invokeLater(new Runnable() { public void run() { try { - DNAShapefromFASTAWindow frame = new DNAShapefromFASTAWindow(); + FourColorSequenceWindow frame = new FourColorSequenceWindow(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); @@ -691,17 +692,15 @@ public void run() { }); } }); - pnlSeqAnalysis.add(btnDnaShapeFasta); - JButton btnSearchMotif = new JButton("Search Motif in FASTA"); - pnlSeqAnalysis.add(btnSearchMotif); - btnSearchMotif.setToolTipText("Search a motif in fasta files with mismatch"); - btnSearchMotif.addActionListener(new ActionListener() { + JButton btnDnaShapeFasta = new JButton("DNA Shape from FASTA"); + btnDnaShapeFasta.setToolTipText("Calculate intrinsic DNA shape given input FASTA file"); + btnDnaShapeFasta.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { EventQueue.invokeLater(new Runnable() { public void run() { try { - SearchMotifWindow frame = new SearchMotifWindow(); + DNAShapefromFASTAWindow frame = new DNAShapefromFASTAWindow(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); @@ -710,6 +709,7 @@ public void run() { }); } }); + pnlSeqAnalysis.add(btnDnaShapeFasta); pnlSeqAnalysis.add(btncolorSequencePlot);