Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Astro1123 committed Nov 8, 2021
1 parent 2bf0d14 commit d521fef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
0.3
10.0
0.0
20.0
14.5
0.005
40
80
100000
-0.5
-0.00753125
0.1732050807568877
1
0
0
0
1
1
resalt.txt
21 changes: 21 additions & 0 deletions input.java
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ private JPanel btnline() {
JButton btnc3 = new JButton("Cace 3");
btnc3.addActionListener(this);
btnc3.setActionCommand("Case 3");
JButton btnc4 = new JButton("Cace 4");
btnc4.addActionListener(this);
btnc4.setActionCommand("Case 4");
JButton btnsave = new JButton("Save");
btnsave.addActionListener(this);
btnsave.setActionCommand("Save");
Expand All @@ -378,6 +381,7 @@ private JPanel btnline() {
p.add(btnc1);
p.add(btnc2);
p.add(btnc3);
p.add(btnc4);
p.add(btnsave);
p.add(btnrun);
p.add(btnquit);
Expand Down Expand Up @@ -546,6 +550,23 @@ public void actionPerformed(ActionEvent e) {
out.bmet=1;
out.filename = "resalt.txt";
settext();
} else if (cmd.equals("Case 4")){
out.mag = 0.3;
out.lx = 10.0;
out.ly = 0.0;
out.deg = 14.5;
out.dt = 0.005;
out.lcount = 80;
out.nacount = 100000;
out.ddeg = -0.00753125;
out.dy = 0.1732050807568877;
out.sign = 1;
out.type = 0;
out.output = 0;
out.cf = 1;
out.bmet=1;
out.filename = "resalt.txt";
settext();
}
}
}
Expand Down

0 comments on commit d521fef

Please sign in to comment.