The CTRL-V Game
Yes, yes, yes!
snubs is not dumb as he really is very smart. — Bmuntz
| Odyssey Chat | Odyssey Moments | OM Podcast | #NotAIOMerch |
| Odyssey Chat | Odyssey Moments | OM Podcast | #NotAIOMerch |
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class Exercise15_05 extends Application {
@Override
public void start(Stage primaryStage) {
VBox text = new VBox();
text.setSpacing(20);
VBox field = new VBox();
field.setSpacing(10);
TextField tfInvest = new TextField();
TextField tfYears = new TextField();
TextField tfRate = new TextField();
TextField tfValue = new TextField();
Label invest = new Label("Investment Amount: ");
Label years = new Label("Number of Years: ");
Label rate = new Label("Annual Interest Rate: ");
Label value = new Label("Future Value: ");
text.getChildren().addAll(invest, years, rate, value);
field.getChildren().addAll(tfInvest, tfYears, tfRate, tfValue);
HBox beforePane = new HBox();
beforePane.getChildren().addAll(text, field);
Button calculate = new Button("Calculate");
HBox bPane = new HBox();
bPane.getChildren().add(calculate);
bPane.setAlignment(Pos.BOTTOM_RIGHT);
VBox pane = new VBox();
pane.getChildren().addAll(beforePane , bPane);
pane.setSpacing(20);
calculate.setOnAction(e -> {
tfValue.setText(Double.parseDouble(tfInvest.getText()) * Math.pow((1 +
(Double.parseDouble(tfRate.getText()) / 100.0 / 12.0)),
(Double.parseDouble(tfYears.getText()) * 12)) + "");
});
Scene scene = new Scene(pane);
primaryStage.setTitle("Exercise15_05");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
A bunch of code I did for an assignment.. =p
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class Exercise15_05 extends Application {
@Override
public void start(Stage primaryStage) {
VBox text = new VBox();
text.setSpacing(20);
VBox field = new VBox();
field.setSpacing(10);
TextField tfInvest = new TextField();
TextField tfYears = new TextField();
TextField tfRate = new TextField();
TextField tfValue = new TextField();
Label invest = new Label("Investment Amount: ");
Label years = new Label("Number of Years: ");
Label rate = new Label("Annual Interest Rate: ");
Label value = new Label("Future Value: ");
text.getChildren().addAll(invest, years, rate, value);
field.getChildren().addAll(tfInvest, tfYears, tfRate, tfValue);
HBox beforePane = new HBox();
beforePane.getChildren().addAll(text, field);
Button calculate = new Button("Calculate");
HBox bPane = new HBox();
bPane.getChildren().add(calculate);
bPane.setAlignment(Pos.BOTTOM_RIGHT);
VBox pane = new VBox();
pane.getChildren().addAll(beforePane , bPane);
pane.setSpacing(20);
calculate.setOnAction(e -> {
tfValue.setText(Double.parseDouble(tfInvest.getText()) * Math.pow((1 +
(Double.parseDouble(tfRate.getText()) / 100.0 / 12.0)),
(Double.parseDouble(tfYears.getText()) * 12)) + "");
});
Scene scene = new Scene(pane);
primaryStage.setTitle("Exercise15_05");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
A bunch of code I did for an assignment.. =p
== TheStepHat [[email protected]] has joined
Monica Stone: Jasoooon
Jason: Yes Monica_Stone?
Jason: Have we met?
Penguin: xD
Monica_Stone: No we haven’t
Penguin: You’ve never met Monica
Penguin: She’s new
Dan_in_Trank_Mobile: …
Jason: It’s a pleasure meeting you Monica_Stone
Monica_Stone:
Jason: Wait…Is Monica_Stone for reals new? Or just someone posing as Monica_Stone?
***Monica_Stone is now known as Paula
Paula: Sup Jason
Jason: Cuz it’s april 1…TRUST NO ONE
Jason: O.O
Penguin: xD
Jason dies
-------------
Anybody remember this? xD
Jason: Yes Monica_Stone?
Jason: Have we met?
Penguin: xD
Monica_Stone: No we haven’t
Penguin: You’ve never met Monica
Penguin: She’s new
Dan_in_Trank_Mobile: …
Jason: It’s a pleasure meeting you Monica_Stone
Monica_Stone:
Jason: Wait…Is Monica_Stone for reals new? Or just someone posing as Monica_Stone?
***Monica_Stone is now known as Paula
Paula: Sup Jason
Jason: Cuz it’s april 1…TRUST NO ONE
Jason: O.O
Penguin: xD
Jason dies
-------------
Anybody remember this? xD
Fast & Jelly are at it again. This time they face the evil fast clickers. Can fast be faster? Is Jelly too slow to turn them into jelly? Find out this week on Fast & Jelly! --> Penguin
#pPodPartnersWithPenguin
#pPodPartnersWithPenguin
9DBB864.EE66719E.5537FD5F.IP
- Whitty Whit
- Whittier than you
- Posts: 5985
- Joined: June 2010
- Location: Somewhere
This is not a threat and is in no way implicating the consequences of not joining the chatroom. Any herds of feral monkeys let loose in your home upon refusal are purely coincidental and not related to us in any way.
1x admin, 2x moderator. 3-26-11, 5-25-12
#FOREVERKITTYJehoshaphat wrote:I mean every election is basically just choosing what type of government we want.
Here you will find the rules and guidelines as well as other important information.
Mwahahaha
snubs is not dumb as he really is very smart. — Bmuntz
| Odyssey Chat | Odyssey Moments | OM Podcast | #NotAIOMerch |
| Odyssey Chat | Odyssey Moments | OM Podcast | #NotAIOMerch |
The Twenty-ninth Town of Odyssey Election
- Amethystic
- Random Rebel
- Posts: 13261
- Joined: April 2008
- Location: Somewhere between this world and the planet Xoltac.
I was convicted that if I would not speak out against the killing of multitudes of children at the cost of virtually nothing, then how could I expect I would have spoken out against other historical injustices at the cost my life?
"You hit the nail on the proverbial head."
- Woody
- Set blasters to rapid-fire
- Posts: 5153
- Joined: January 2012
- Location: Whenever and wherever I want to be
Sir Robert: Nevertheless, that creature won't give up, Doctor, and we still don't possess an actual weapon!
The Doctor: Oh, your dad got all the brains, didn't he?
Rose Tyler: Being rude again!
The Doctor: Good, I meant that one. You want weapons? We're in a library! Books! The best weapons in the world! This room's the greatest arsenal we could have - arm yourselves!
The Doctor: Oh, your dad got all the brains, didn't he?
Rose Tyler: Being rude again!
The Doctor: Good, I meant that one. You want weapons? We're in a library! Books! The best weapons in the world! This room's the greatest arsenal we could have - arm yourselves!
I have been robbed of my rightful secret moderator powers! Vote here to help me get them back!
Full değil .nette de fulu yok maalesef. Bulan gören haber etsin hayrına
"I still see Marvin as a newbie that is just as cool as an oldie." --snubs
Most Sarcastic Poster | Most Likely To Be Eaten By a Dinosaur and Smote by God |
Biggest Joker and Grammar Nazi | Best Writer
Most Sarcastic Poster | Most Likely To Be Eaten By a Dinosaur and Smote by God |
Biggest Joker and Grammar Nazi | Best Writer
HAPPY BIRTHDAY TO
snubs is not dumb as he really is very smart. — Bmuntz
| Odyssey Chat | Odyssey Moments | OM Podcast | #NotAIOMerch |
| Odyssey Chat | Odyssey Moments | OM Podcast | #NotAIOMerch |
bit.ly/1CvzHkO
The Steps of City Hal