Skip to content

Commit

Permalink
Rearrange button position
Browse files Browse the repository at this point in the history
  • Loading branch information
William Lai committed Apr 18, 2018
1 parent 274baf8 commit fbea17c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/main/ScriptManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -710,6 +709,7 @@ public void run() {
});
}
});
pnlSeqAnalysis.add(btnDnaShapeFasta);
pnlSeqAnalysis.add(btncolorSequencePlot);


Expand Down

0 comments on commit fbea17c

Please sign in to comment.