diff --git a/JavaFXStudies b/JavaFXStudies deleted file mode 160000 index 2008c83..0000000 --- a/JavaFXStudies +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2008c8311898e85625c4b963c2e63a47e4962f9e diff --git a/Quick_GITHUB_Tutorial.txt b/Quick_GITHUB_Tutorial.txt deleted file mode 100644 index 2166f3d..0000000 --- a/Quick_GITHUB_Tutorial.txt +++ /dev/null @@ -1,161 +0,0 @@ -This is a quick tutorial on GitHub. For more information, -you may want to read the book; - -Introducing Github -Peter Bell & Brent Beer -ISBN: 978-1-491-94974-0 - -you can find the book online. - -********** intro ********** - -git is a version control system, -github is the web version of it. - - -using github, you can see team progress, issues, branches, -everything you need to manage a large scale software project. - -in general, you will have three basic branches; --master branch: everything will be merged to this branch eventually --feature branch: for each feature, you may have a branch --release branch: all releases may have a separate branch, v1.0, v2.0 etc. - -your team must have a branching strategy from the beginning of the project - -every branch should have a README.md, where you put basic, introduction information about the branch. - -commit history for a file will give you the list of commits, who did it and when. - -issues list is to report bugs. team members should always keep an eye on the issues. - -one of the most important views of a project is Network tab, -where you can see all the branches and merges in the project life cycle. - -members vs team; members who create a fork of the project. -forking means on GitHub, you will have a copy of the project on your GitHub account, not on your local computer. -however, teams are created to work on the project and commit their changes from their local repo to the remote repo. - -WE ARE NOT GOING TO EDIT ANYTHING ON GITHUB, -BUT WE WILL COMMIT ALL OUR CHANGES USING COMMAND LINE GIT COMMANDS. - - -********** first time installation ********** - -1. Download and install GitHub to your computer (github.com) - -2. If you use Windows, to run GitHub commands, use Git Shell - -3. open Git Shell application, you are under GitHub folder - -4. go online to our JavaFXStudies folder, where you were added as a team member -https://github.com/OpenSourceJavaProject/JavaFXStudies/tree/teamwork - -5. click on Clone or download link on the righthand side - -6. copy the github address; -https://github.com/OpenSourceJavaProject/JavaFXStudies.git - -7. go to your Git Shell and type; -git clone https://github.com/OpenSourceJavaProject/JavaFXStudies.git - -8. check the folder structure created. you should have JavaFXStudies folder. Go inside that folder typing; -cd JavaFXStudies - -9. type ls -al to see all files listed here; -.git -README.md - -10. type git status to see the status of the repo, including the branch name. you should see a similar output; -On branch master -Your branch is up-to-date with 'origin/master'. - -nothing to commit, working directory clean - -11. now, switch to branch teamwork by typing -git checkout teamwork - -the output should be; -Branch teamwork set up to track remote branch teamwork from origin. -Switched to a new branch 'teamwork - -12. check the configuration by typing; -git config -l - -output should be similar to; -user.email=muratagenc@gmail.com -user.name=Murat Ahmet Genc -core.repositoryformatversion=0 -core.filemode=false -core.bare=false -core.logallrefupdates=true -remote.origin.url=https://github.com/OpenSourceJavaProject/JavaFXStudies.git -remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* -branch.master.remote=origin -branch.master.merge=refs/heads/master -branch.teamwork.remote=origin -branch.teamwork.merge=refs/heads/teamwork - -13. IF your email and name is not set, use the following two commands to add your email and name. - -git config --global user.name "Your Name Here" -git config --global user.email "your_email@youremail.com" - -14. Now you have completed your github configuration. congratulations. - - -********** how to update REMOTE repo ********** - -when you modify a file or add a new one, you need to update the repo. -your local repo should be synchronized with the remote repo. - -1. for your JavaFX project files, create a new folder with your initials; -an example for me would be muratagenc - -2. now you have one folder. go into the folder using cd command. in my case, it would be; -cd muratagenc - -3. create a new file named test.txt. you can create the file using Notepad, Wordpad or Word. - -4. now, you will use the branch called teamwork, and update the repository. to do that, first switch to the branch teamwork; -git checkout teamwork - -5. type the following command to add your changes; -git add * - -6. and type the following command; -git commit -m "first test on JavaFxStudies, branch teamwork" - -you should receive a similar output: - -[teamwork 29bfde8] first test on JavaFxStudies, branch teamwork - 1 file changed, 0 insertions(+), 0 deletions(-) - create mode 100644 muratagenc/test.txt - -7. finally, you can now push your changes and update the repository. -git push - -type your username and password. you should get a similar output; - -Counting objects: 6, done. -Delta compression using up to 4 threads. -Compressing objects: 100% (2/2), done. -Writing objects: 100% (4/4), 361 bytes | 0 bytes/s, done. -Total 4 (delta 0), reused 0 (delta 0) -To https://github.com/OpenSourceJavaProject/JavaFXStudies.git - 2f32a72..3526b12 teamwork -> teamwork - -8. IF there is a change on the repo, you won't be able to commit your changes. so type, -git pull -to receive latest repo changes, then; -git push - - -********** how to update LOCAL repo ********** - -1. since other team members will update remote repo time to time, -you should get the latest copy too. to do that, type; -git pull - -the output may show that some files were updated, or your local repo is already up-to-date. - diff --git a/README.md b/README.md index 52e3eeb..0e3171a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ # JavaFXStudies -TeamWork Branch Collection of all JavaFX codes we are studying diff --git a/azouzisam/test.txt b/azouzisam/test.txt deleted file mode 100644 index e69de29..0000000 diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial1-3/JavaFXDemo.java b/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial1-3/JavaFXDemo.java deleted file mode 100644 index c86599a..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial1-3/JavaFXDemo.java +++ /dev/null @@ -1,42 +0,0 @@ -package javafxdemo; - -import javafx.application.Application; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class JavaFXDemo extends Application { - - Button button; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception{ - primaryStage.setTitle("Title of The Window"); - - /*setting up a button*/ - button = new Button(); - button.setText("Hey baby"); - button.setOnAction(e -> { - System.out.println("hey now brown cow"); - System.out.println("I am a meatball"); - }); - - /*Layout*/ - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - /*Scene*/ - Scene scene = new Scene(layout, 300, 250); - primaryStage.setScene(scene); - primaryStage.show(); - } - - -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial4/JavaFXDemoVideo4.java b/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial4/JavaFXDemoVideo4.java deleted file mode 100644 index 886c3b7..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial4/JavaFXDemoVideo4.java +++ /dev/null @@ -1,49 +0,0 @@ -package javafxdemovideo4; - -import javafx.application.Application; -import static javafx.application.Application.launch; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.StackPane; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - - -public class JavaFXDemoVideo4 extends Application{ - - Stage window; - Scene scene1, scene2; - - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception{ - window = primaryStage; - - Label label1 = new Label("Welcome to the first Scene!"); - Button button1 = new Button("go to scene 2"); - button1.setOnAction(e -> window.setScene(scene2)); - - //layout 1 - children are laid out in a virticle column - VBox layout1 = new VBox(20); - layout1.getChildren().addAll(label1, button1); - scene1 = new Scene(layout1, 200, 200); - - //button 2 - Button button2 = new Button("This scene sucks go back to scene 1"); - button2.setOnAction(e -> window.setScene(scene1)); - - //layout 2 - StackPane layout2 = new StackPane(); - layout2.getChildren().add(button2); - scene2 = new Scene(layout2, 600, 300); - - window.setScene(scene1); - window.setTitle("Title Here"); - window.show(); - } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/Alertbox.java b/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/Alertbox.java deleted file mode 100644 index cf16356..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/Alertbox.java +++ /dev/null @@ -1,34 +0,0 @@ -package javafxdemovideo5; - -import javafx.geometry.Pos; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; - -public class Alertbox { - public static void display(String title, String message){ - Stage window = new Stage(); - - window.initModality(Modality.APPLICATION_MODAL); - window.setTitle(title); - window.setMinWidth(200); - - Label label = new Label(); - label.setText(message); - - Button closeButton = new Button("Close the Window"); - closeButton.setOnAction(e -> window.close()); - - VBox layout = new VBox(10); - layout.getChildren().addAll(label, closeButton); - layout.setAlignment(Pos.CENTER); - - Scene scene = new Scene(layout); - window.setScene(scene); - window.showAndWait(); - - } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/Confirmbox.java b/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/Confirmbox.java deleted file mode 100644 index 29c29d7..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/Confirmbox.java +++ /dev/null @@ -1,47 +0,0 @@ -package javafxdemovideo5; - -import javafx.geometry.Pos; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; - -public class Confirmbox { - - static boolean answer; - - public static boolean display(String title, String message){ - Stage window = new Stage(); - - window.initModality(Modality.APPLICATION_MODAL); - window.setTitle(title); - window.setMinWidth(200); - Label label = new Label(); - label.setText(message); - - //create two buttons - Button yesButton = new Button("yes"); - Button noButton = new Button("no"); - - yesButton.setOnAction(e -> { - answer = true; - window.close(); - }); - - noButton.setOnAction(e -> { - answer = false; - window.close(); - }); - - VBox layout = new VBox(10); - layout.getChildren().addAll(label, yesButton, noButton); - layout.setAlignment(Pos.CENTER); - Scene scene = new Scene(layout); - window.setScene(scene); - window.showAndWait(); - - return answer; - } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/JavaFXDemoVideo5.java b/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/JavaFXDemoVideo5.java deleted file mode 100644 index 2017591..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 1-9/Tutorial5-9/JavaFXDemoVideo5.java +++ /dev/null @@ -1,124 +0,0 @@ -package javafxdemovideo5; - -import static java.awt.SystemColor.window; -import javafx.application.Application; -import javafx.geometry.Insets; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.control.TextField; -import javafx.scene.layout.GridPane; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - - -public class JavaFXDemoVideo5 extends Application{ - Stage window; - - public static void main(String[] args) { - //multiple windows - launch(args); - } - - -//Tutorial 9 - //GridPanes layout - @Override - public void start(Stage PrimaryStage){ - window = PrimaryStage; - window.setTitle("JavaFX - The New Boston"); - - GridPane grid = new GridPane(); - //spacing - grid.setPadding(new Insets(10, 10, 10, 10)); - //virticle spacing - grid.setVgap(8); - //horizontal spacing - grid.setHgap(10); - - //name label - Label nameLabel = new Label("Username:"); - GridPane.setConstraints(nameLabel, 0, 0); - - //name input - TextField nameInput = new TextField("Bucky"); - GridPane.setConstraints(nameInput, 1, 0); - - //password label - Label passLabel = new Label("Password:"); - GridPane.setConstraints(passLabel, 0, 1); - - //name input - TextField passInput = new TextField(); - passInput.setPromptText("password"); - GridPane.setConstraints(passInput, 1, 1); - - Button login = new Button("Login"); - GridPane.setConstraints(login, 1, 2); - - grid.getChildren().addAll(nameLabel, nameInput, passLabel, passInput, login); - - Scene scene = new Scene(grid, 300, 200); - window.setScene(scene); - window.show(); - } - - - - - -// Tutorial 5-8{alert confirm and layout} -// Button button; - -// public static void main(String[] args) { -// //multiple windows -// launch(args); -// } -// -// @Override -// public void start(Stage PrimaryStage){ -// window = PrimaryStage; -// window.setTitle("JavaFX - The New Boston"); -// window.setOnCloseRequest(e -> { -// //consumes the request -// e.consume(); -// closeProgram(); -// }); -// -// -//// button = new Button("Close Program"); -//// button.setOnAction(e -> { -//// closeProgram(); -//// }); -// -// HBox topMenu = new HBox(); -// Button buttonA = new Button("File"); -// Button buttonB = new Button("Edit"); -// Button buttonC = new Button("View"); -// topMenu.getChildren().addAll(buttonA, buttonB, buttonC); -// -// VBox leftMenu = new VBox(); -// Button buttonD = new Button("D"); -// Button buttonE = new Button("E"); -// Button buttonF = new Button("F"); -// leftMenu.getChildren().addAll(buttonD, buttonE, buttonF); -// -// BorderPane borderPane = new BorderPane(); -// borderPane.setTop(topMenu); -// borderPane.setLeft(leftMenu); -// -//// StackPane layout = new StackPane(); -//// layout.getChildren().add(button); -// Scene scene = new Scene(borderPane, 300, 250); -// window.setScene(scene); -// window.show(); -// -// } -// -// private void closeProgram(){ -// Boolean answer = Confirmbox.display("Title", "are you sure you want to do that?"); -// if(answer){ -// window.close(); -// } -// } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial10/JavaFXDemo10.java b/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial10/JavaFXDemo10.java deleted file mode 100644 index 4525f78..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial10/JavaFXDemo10.java +++ /dev/null @@ -1,62 +0,0 @@ -package javafxdemo10; - -import javafx.application.Application; -import static javafx.application.Application.launch; -import javafx.geometry.Insets; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.TextField; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -public class JavaFXDemo10 extends Application{ - - Stage window; - - public static void main(String[] args) { - //multiple windows - launch(args); - } - -//Tutorial 10 - //input and validation - @Override - public void start(Stage PrimaryStage) throws Exception{ - window = PrimaryStage; - window.setTitle("JavaFX - The New Boston"); - - //Form - TextField nameInput = new TextField(); - Button button = new Button("Click Me"); - button.setOnAction(e -> { - isInt(nameInput, nameInput.getText()); - - }); - - - //Layout - VBox layout = new VBox(10); - layout.setPadding(new Insets(20, 20, 20, 20)); - layout.getChildren().addAll(nameInput, button); - - - - Scene scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - } - - private boolean isInt(TextField input, String message){ - try{ - int age = Integer.parseInt(input.getText()); - System.out.println("User is " + age); - return true; - } - catch(NumberFormatException e){ - System.out.println("Error: " + message + " is NaN"); - return false; - } - } - - -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial11-12/JavaFXDemo11.java b/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial11-12/JavaFXDemo11.java deleted file mode 100644 index 98e619a..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial11-12/JavaFXDemo11.java +++ /dev/null @@ -1,59 +0,0 @@ -package javafxdemo11; - -import javafx.application.Application; -import static javafx.application.Application.launch; -import javafx.geometry.Insets; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.CheckBox; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -public class JavaFXDemo11 extends Application{ - - Stage window; - Scene scene; - Button button; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - window.setTitle("Buchy's Meat Subs"); - - //checkbox - CheckBox box1 = new CheckBox("Bacon"); - CheckBox box2 = new CheckBox("Tuna"); - box2.setSelected(true); - - - //Button - button = new Button("Order Now!"); - button.setOnAction(e -> handleOptions(box1, box2)); - - //Layout00000000000000 - VBox layout = new VBox(10); - layout.setPadding(new Insets(20, 20, 20, 20)); - layout.getChildren().addAll(box1, box2, button); - - scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - } - - private void handleOptions(CheckBox box1, CheckBox box2){ - String message = "Users Order:\n"; - - if(box1.isSelected()){ - message += "Bacon\n"; - } - if(box2.isSelected()){ - message += "Tuna\n"; - } - - System.out.println(message); - } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial13/JavaFXDemo13.java b/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial13/JavaFXDemo13.java deleted file mode 100644 index ffea885..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial13/JavaFXDemo13.java +++ /dev/null @@ -1,48 +0,0 @@ -package javafxdemo13; - -import javafx.application.Application; -import javafx.geometry.Insets; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.ChoiceBox; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -public class JavaFXDemo13 extends Application { - - Stage window; - Scene scene; - Button button; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - window.setTitle("ComboBox Demo"); - button = new Button("Submit"); - - ChoiceBox choiceBox = new ChoiceBox<>(); - - //get items returns observable object - choiceBox.getItems().add("Apples"); - choiceBox.getItems().add("Bananas"); - choiceBox.getItems().addAll("Bacon", "Ham", "Meatballs"); - - //default value - choiceBox.setValue("Apples"); - - //Listen - choiceBox.getSelectionModel().selectedItemProperty().addListener( (v, oldValue, newValue) -> System.out.println(oldValue) ); - - VBox layout = new VBox(10); - layout.setPadding(new Insets(20, 20, 20, 20)); - layout.getChildren().addAll(choiceBox, button); - - scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial14/JavaFXDemo14.java b/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial14/JavaFXDemo14.java deleted file mode 100644 index 5f6a900..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial14/JavaFXDemo14.java +++ /dev/null @@ -1,55 +0,0 @@ -package javafxdemo14; - -import javafx.application.Application; -import javafx.geometry.Insets; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.ComboBox; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -public class JavaFXDemo14 extends Application { - - Stage window; - Scene scene; - Button button; - ComboBox comboBox; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - window.setTitle("ComboBox Demo"); - button = new Button("Submit"); - - comboBox = new ComboBox(); - comboBox.getItems().addAll( - "Good Will Hunting", - "St. Vincent", - "Blackhat" - ); - - comboBox.setPromptText("What is your favorite movie?"); - - comboBox.setEditable(true); - - button.setOnAction(e -> printMovie()); - - comboBox.setOnAction(e -> System.out.println("User selected: " + comboBox.getValue())); - - VBox layout = new VBox(10); - layout.setPadding(new Insets(20, 20, 20, 20)); - layout.getChildren().addAll(comboBox, button); - - scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - } - - private void printMovie(){ - System.out.println(comboBox.getValue()); - } -} diff --git a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial15/JavaFXDemo15.java b/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial15/JavaFXDemo15.java deleted file mode 100644 index e7757ae..0000000 --- a/ericaschmitt/JavaFXTutorials/Tutorials 10-19/Tutorial15/JavaFXDemo15.java +++ /dev/null @@ -1,58 +0,0 @@ -package javafxdemo15; - -import javafx.application.Application; -import javafx.collections.ObservableList; -import javafx.geometry.Insets; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.SelectionMode; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; -import javafx.scene.control.ListView; - -public class JavaFXDemo15 extends Application { - - Stage window; - Scene scene; - Button button; - ListView listView; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - window.setTitle("ListView Demo"); - button = new Button("Submit"); - - listView = new ListView(); - listView.getItems().addAll("Iron Man", "Titanic", "Contact", "Surragates"); - listView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE); - - button.setOnAction(e -> buttonClicked()); - - VBox layout = new VBox(10); - layout.setPadding(new Insets(20, 20, 20, 20)); - layout.getChildren().addAll(listView, button); - scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - } - - private void buttonClicked(){ - String message = ""; - ObservableList movies; - - movies = listView.getSelectionModel().getSelectedItems(); - - for(String m: movies){ - message += m + "\n"; - } - - System.out.println(message); - - } - -} diff --git a/ericaschmitt/test.txt b/ericaschmitt/test.txt deleted file mode 100644 index c61e431..0000000 Binary files a/ericaschmitt/test.txt and /dev/null differ diff --git a/jjeannis07/test.rtf b/jjeannis07/test.rtf deleted file mode 100644 index dc30811..0000000 --- a/jjeannis07/test.rtf +++ /dev/null @@ -1,7 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\margl1440\margr1440\vieww10800\viewh8400\viewkind0 -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 - -\f0\fs24 \cf0 This is a test} \ No newline at end of file diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/Account.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/Account.java deleted file mode 100644 index 8f5db01..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/Account.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Created by Dynee on 6/1/16. - */ -public final class Account { - - // instance variables - private int accountId; - private final String accountHolderName; - private int accountPin; - private double balance; - - // constructor for account class - public Account(int id, String holderName, int pin, double bal) { - - this.accountId = id; - this.accountHolderName = holderName; - this.accountPin = pin; - this.balance = bal; - } - - // getter and setters - public void setId(int accountId) { - this.accountId = accountId; - } - - public void setPin(int pin) { - this.accountPin = pin; - } - - public int getId() { - return this.accountId; - } - - public String getAccountHolderName() { - return this.accountHolderName; - } - - public int getPin() { - return this.accountPin; - } - - // deposit and withdraw money - public void deposit(double amount) { - this.balance += amount; - } - - public void withdraw(double amount) { - this.balance -= amount; - } - - // check balance - public double getBalance() { - return this.balance; - } -} - diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/AlertBox.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/AlertBox.java deleted file mode 100644 index bc20609..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/AlertBox.java +++ /dev/null @@ -1,37 +0,0 @@ -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.layout.StackPane; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; -/** - * Created by Dynee on 6/21/16. - */ -public class AlertBox { - public static void display(String title, String message) { - Stage window = new Stage(); - - // makes it so you can't click out of the window until you deal with it. - window.initModality(Modality.APPLICATION_MODAL); - window.setTitle(title); - - Label label = new Label(); - label.setText(message); - - Button closeButton = new Button(); - closeButton.setText("Close the window"); - closeButton.setOnAction(e -> window.close()); - - VBox layout = new VBox(10); - layout.getChildren().addAll(label, closeButton); - layout.setAlignment(Pos.CENTER); - - Scene scene = new Scene(layout); - window.setScene(scene); - window.showAndWait(); - - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/ConfirmBox.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/ConfirmBox.java deleted file mode 100644 index a6507cc..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/ConfirmBox.java +++ /dev/null @@ -1,51 +0,0 @@ -import javafx.geometry.Pos; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/24/16. - */ -public class ConfirmBox { - - static boolean answer; - - public static boolean display(String title, String message) { - Stage window = new Stage(); - - // makes it so you can't click out of the window until you deal with it. - window.initModality(Modality.APPLICATION_MODAL); - window.setTitle(title); - - Label label = new Label(); - label.setText(message); - - - Button yesButton = new Button("Yes"); - Button noButton = new Button("No"); - - yesButton.setOnAction(e -> { - answer = true; - window.close(); - }); - noButton.setOnAction(e -> { - answer = false; - window.close(); - }); - - - VBox layout = new VBox(10); - layout.getChildren().addAll(label, yesButton, noButton); - layout.setAlignment(Pos.CENTER); - - Scene scene = new Scene(layout); - window.setScene(scene); - window.showAndWait(); - - - return answer; - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main.java deleted file mode 100644 index 55c9a54..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main.java +++ /dev/null @@ -1,57 +0,0 @@ -import javafx.application.Application; -import javafx.scene.control.Button; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/2/16. - */ -public class main extends Application implements EventHandler { - - Button button; - - // the launch method is the first method called in a javafx app, - // it sets up configuration information - // start is the second method called which sets up the look of the app. - public static void main1(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - // sets title of the Stage - // stage is your window, scene is everything inside the window - primaryStage.setTitle("JavaFX Tutorial"); - - // gives text to button - button = new Button(); - button.setText("Click Me!"); - - // this code says when you click the button look for the code to handle it, in this class - // you could create a separate class to handle events if you want. - button.setOnAction(this); - - // alligns button in the center - // layout sets up how you want everything to look - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - // need to pass the scene object to the setScene method of primaryStage - // this creates the scene inside your stage - // the show method displays the scene to the user. - Scene scene = new Scene(layout, 300, 300); - primaryStage.setScene(scene); - primaryStage.show(); - } - - @Override - public void handle(ActionEvent event) { - // this code is used to get which button some code should be executed for - if(event.getSource() == button) { - System.out.println("Hello, World!"); - } - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main10.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main10.java deleted file mode 100644 index f581de4..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main10.java +++ /dev/null @@ -1,47 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/21/16. - */ -public class main10 extends Application { - - Stage window; - Button b; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - - window = primaryStage; - window.setTitle("Alert Boxes"); - b = new Button("Click me!"); - b.setOnAction(e -> closeProgram()); - - StackPane layout = new StackPane(); - layout.getChildren().addAll(b); - - Scene scene = new Scene(layout, 200, 200); - window.setScene(scene); - window.show(); - - window.setOnCloseRequest(e -> { - e.consume(); - closeProgram(); - }); - - } - - private void closeProgram() { - boolean result = ConfirmBox.display("Title of window", "Are you sure you want to exit?"); - if(result == true) { - window.close(); - } - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main11.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main11.java deleted file mode 100644 index bdee17b..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main11.java +++ /dev/null @@ -1,49 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.BorderPane; -import javafx.scene.layout.HBox; -import javafx.scene.layout.StackPane; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/21/16. - */ -public class main11 extends Application { - - Stage window; - - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - - window = primaryStage; - window.setTitle("Alert Boxes"); - - HBox topMenu = new HBox(); - Button fileButton = new Button("File"); - Button editButton = new Button("Edit"); - Button viewButton = new Button("View"); - topMenu.getChildren().addAll(fileButton, editButton, viewButton); - - VBox leftMenu = new VBox(5); - Button a = new Button("a"); - Button b = new Button("b"); - Button c = new Button("c"); - leftMenu.getChildren().addAll(a, b, c); - - BorderPane borderPane = new BorderPane(); - borderPane.setTop(topMenu); - borderPane.setLeft(leftMenu); - - Scene scene = new Scene(borderPane, 200, 200); - window.setScene(scene); - window.show(); - - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main2.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main2.java deleted file mode 100644 index f76d038..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main2.java +++ /dev/null @@ -1,60 +0,0 @@ -import javafx.application.Application; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/2/16. - */ -public class main2 extends Application { - - - - Button button; - - // the launch method is the first method called in a javafx app, - // it sets up configuration information - // start is the second method called which sets up the look of the app. - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - // sets title of the Stage - // stage is your window, scene is everything inside the window - primaryStage.setTitle("JavaFX Tutorial"); - - // gives text to button - button = new Button(); - button.setText("Click Me!"); - - // this code says when you click the button look for the code to handle it, in this class - // you could create a separate class to handle events if you want. - // this is an anonymous inner class it is more compact, you should use it. - // all the code for handling the button can now go inside here. - button.setOnAction(new EventHandler() { - @Override - public void handle(ActionEvent event) { - System.out.println("WOOO HOO"); - } - }); - - // alligns button in the center - // layout sets up how you want everything to look - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - // need to pass the scene object to the setScene method of primaryStage - // this creates the scene inside your stage - // the show method displays the scene to the user. - Scene scene = new Scene(layout, 300, 300); - primaryStage.setScene(scene); - primaryStage.show(); - } - - } - diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main3.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main3.java deleted file mode 100644 index 0293bac..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main3.java +++ /dev/null @@ -1,51 +0,0 @@ -import javafx.application.Application; -import javafx.scene.control.Button; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/2/16. - */ -public class main3 extends Application { - - Button button; - - // the launch method is the first method called in a javafx app, - // it sets up configuration information - // start is the second method called which sets up the look of the app. - public static void main1(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - // sets title of the Stage - // stage is your window, scene is everything inside the window - primaryStage.setTitle("JavaFX Tutorial"); - - // gives text to button - button = new Button(); - button.setText("Click Me!"); - - // this code says when you click the button look for the code to handle it, in this class - // you could create a separate class to handle events if you want. - // this can also be done using a lambda expression which is way simpler. - button.setOnAction(e -> System.out.println("HELLO WORLD")); - - // alligns button in the center - // layout sets up how you want everything to look - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - // need to pass the scene object to the setScene method of primaryStage - // this creates the scene inside your stage - // the show method displays the scene to the user. - Scene scene = new Scene(layout, 300, 300); - primaryStage.setScene(scene); - primaryStage.show(); - } - -} \ No newline at end of file diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main4.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main4.java deleted file mode 100644 index 3f428bd..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main4.java +++ /dev/null @@ -1,77 +0,0 @@ -import javafx.application.Application; -import javafx.geometry.Insets; -import javafx.scene.control.Button; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.layout.StackPane; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/2/16. - */ -public class main4 extends Application{ - - Button depositButton; - Button withdrawButton; - Button checkBalanceButton; - - // create an account object for testing - Account a = new Account(1, "Lucas Padden", 8024, 100.0); - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - primaryStage.setTitle("ATM Application"); - - depositButton = new Button(); - depositButton.setText("Deposit"); - - withdrawButton = new Button(); - withdrawButton.setText("Withdraw"); - - checkBalanceButton = new Button(); - checkBalanceButton.setText("Check Balance"); - - // can use other things than layouts to add your buttons too - // there are custom made layouts like vbox and hbox - // create a VBox to add the buttons in a column - VBox vb = new VBox(); - vb.setPadding(new Insets(10)); - vb.setSpacing(10); - - vb.getChildren().addAll(depositButton, withdrawButton, checkBalanceButton); - - Scene scene = new Scene(vb, 500, 500); - primaryStage.setScene(scene); - primaryStage.show(); - - // create a new window for deposit button. - - depositButton.setOnAction(new EventHandler() { - @Override - public void handle(ActionEvent event) { - - } - }); - - withdrawButton.setOnAction(new EventHandler() { - @Override - public void handle(ActionEvent event) { - - } - }); - - checkBalanceButton.setOnAction(new EventHandler() { - @Override - public void handle(ActionEvent event) { - - } - }); - - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main5.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main5.java deleted file mode 100644 index 47d9cce..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main5.java +++ /dev/null @@ -1,16 +0,0 @@ -import javafx.application.Application; -import javafx.scene.control.Button; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; -/** - * Created by Dynee on 6/4/16. - */ -public class main5 { - - public static void main(String[] args) { - - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main6.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main6.java deleted file mode 100644 index 2c2b959..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main6.java +++ /dev/null @@ -1,41 +0,0 @@ -import javafx.application.Application; -import javafx.scene.control.Button; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; -/** - * Created by Dynee on 6/16/16. - */ -public class main6 extends Application implements EventHandler{ - - Button b; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - primaryStage.setTitle("Review!!!!"); - - b = new Button(); - b.setText("Click Me!"); - - b.setOnAction(this); - - StackPane layout = new StackPane(); - layout.getChildren().add(b); - - Scene scene = new Scene(layout, 300, 300); - primaryStage.setScene(scene); - primaryStage.show(); - } - - public void handle(ActionEvent e) { - if(e.getSource() == b) { - System.out.println("HI!!!"); - } - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main7.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main7.java deleted file mode 100644 index 73c2278..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main7.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Created by Dynee on 6/20/16. - */ - -import javafx.application.Application; -import javafx.scene.control.Button; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.control.Label; -import javafx.scene.layout.StackPane; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -public class main7 extends Application { - - Stage window; - Scene scene1, scene2; - Button firstButton; - Button secondButton; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - - Label label1 = new Label("Welcome to the first scene!"); - firstButton = new Button("Go to scene 2"); - firstButton.setOnAction(e -> window.setScene(scene2)); - - - VBox layout1 = new VBox(20); - layout1.getChildren().addAll(label1, firstButton); - scene1 = new Scene(layout1, 200, 200); - - - - Label label2 = new Label("Go to the 2nd scene pls.."); - secondButton = new Button("Go to scene 1"); - secondButton.setOnAction(e -> window.setScene(scene1)); - - StackPane layout2 = new StackPane(); - layout2.getChildren().addAll(label2, secondButton); - - scene2 = new Scene(layout2, 600, 300); - - window.setTitle("Im so tired"); - window.setScene(scene1); - window.show(); - - - - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main8.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main8.java deleted file mode 100644 index c7ce990..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main8.java +++ /dev/null @@ -1,35 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/21/16. - */ -public class main8 extends Application { - - Stage window; - Button b; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - - window = primaryStage; - window.setTitle("Alert Boxes"); - b = new Button("Click me!"); - b.setOnAction(e -> AlertBox.display("Title of Window", "Wow much alert!")); - - StackPane layout = new StackPane(); - layout.getChildren().addAll(b); - - Scene scene = new Scene(layout, 200, 200); - window.setScene(scene); - window.show(); - - } -} diff --git a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main9.java b/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main9.java deleted file mode 100644 index a3a1216..0000000 --- a/lucaspadden/MyJavaFXStudies/JavaFX Tutorials/src/main9.java +++ /dev/null @@ -1,43 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -/** - * Created by Dynee on 6/21/16. - */ -public class main9 extends Application { - - Stage window; - Button b; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - - window = primaryStage; - window.setTitle("Alert Boxes"); - b = new Button("Click me!"); - b.setOnAction(e -> { - boolean result = ConfirmBox.display("Title of window", "are you sure you want to do that?"); - if(result == true) { - System.out.println(result); - } - else if(result == false) { - System.out.println(result); - } - }); - - StackPane layout = new StackPane(); - layout.getChildren().addAll(b); - - Scene scene = new Scene(layout, 200, 200); - window.setScene(scene); - window.show(); - - } -} diff --git a/lucaspadden/test.txt b/lucaspadden/test.txt deleted file mode 100644 index e69de29..0000000 diff --git a/mcaruso/mc_FXStudies/a_FXButton/src/com/kazoo/mybtn/MyFxButton.java b/mcaruso/mc_FXStudies/a_FXButton/src/com/kazoo/mybtn/MyFxButton.java deleted file mode 100644 index c8dd56f..0000000 --- a/mcaruso/mc_FXStudies/a_FXButton/src/com/kazoo/mybtn/MyFxButton.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.kazoo.mybtn; - -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class MyFxButton extends Application{ - Button btn1; - - - public static void main(String[] args) { - launch(args); - - } - - public void start(Stage primaryStage)throws Exception{ - //set the stage - primaryStage.setTitle("My Button"); - btn1 = new Button(); - btn1.setText("Click Me"); - - //create layout - StackPane layout = new StackPane(); - //add objects to layout - layout.getChildren().add(btn1); - //add layout to the scene - Scene scene = new Scene(layout, 300, 250); - - //add the scene to the stage - primaryStage.setScene(scene); - primaryStage.show(); - } - -} diff --git a/mcaruso/mc_FXStudies/b_EventHandlerInnerClass/src/InnerLambdas.java b/mcaruso/mc_FXStudies/b_EventHandlerInnerClass/src/InnerLambdas.java deleted file mode 100644 index 34f46be..0000000 --- a/mcaruso/mc_FXStudies/b_EventHandlerInnerClass/src/InnerLambdas.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.kazoo.innerLambdas; - -import javafx.application.Application; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class InnerLambdas extends Application{ - Button btn; - - public static void main(String[] args) { - launch(args); - - } - - public void start(Stage primaryStage)throws Exception{ - primaryStage.setTitle("User Events"); - - btn = new Button(); - btn.setText("Click Me"); - //using and anonymous inner class to handle events - btn.setOnAction(new EventHandler(){ - public void handle(ActionEvent event) { - System.out.println("I'm an Inner class"); - } - }); - - - - StackPane layout = new StackPane(); - layout.getChildren().add(btn); - - Scene scene = new Scene(layout, 350, 350); - - primaryStage.setScene(scene); - primaryStage.show(); - - } - -} diff --git a/mcaruso/mc_FXStudies/c_FXLambdaExpression/src/Main.java b/mcaruso/mc_FXStudies/c_FXLambdaExpression/src/Main.java deleted file mode 100644 index 41b2359..0000000 --- a/mcaruso/mc_FXStudies/c_FXLambdaExpression/src/Main.java +++ /dev/null @@ -1,35 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class Main extends Application{ - Button btn; - public static void main(String[] args) { - launch(args); - - } - - @Override - public void start(Stage primaryStage) throws Exception { - primaryStage.setTitle("Lambda Expression"); - - btn = new Button(); - btn.setText("Click Here"); - btn.setOnAction(e -> System.out.println("From Lambda Expression")); - - StackPane layout = new StackPane(); - layout.getChildren().add(btn); - - Scene scene = new Scene(layout, 300, 200); - - primaryStage.setScene(scene); - primaryStage.show(); - - - - - } - -} diff --git a/mcaruso/mc_FXStudies/d_FXMultiScene/src/MultiScene.java b/mcaruso/mc_FXStudies/d_FXMultiScene/src/MultiScene.java deleted file mode 100644 index fe4ccc5..0000000 --- a/mcaruso/mc_FXStudies/d_FXMultiScene/src/MultiScene.java +++ /dev/null @@ -1,44 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.HBox; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -public class MultiScene extends Application{ - Stage window; - Scene scene1, scene2; - public static void main(String[] args) { - launch(args); - - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - window.setTitle("Multi Scene"); - - Label label = new Label("Welcome to Scene 1"); - Button btn1 = new Button("Click for scene 2"); - btn1.setOnAction(e -> window.setScene(scene2)); - //Layout 1 - VBox layout1 = new VBox(20); - layout1.getChildren().addAll(label, btn1); - scene1 = new Scene(layout1, 300, 300); - // Scene 2 - Label label2 = new Label("Welcome to scene 2"); - Button btn2 = new Button("Go back to scene 1"); - btn2.setOnAction(e -> window.setScene(scene1)); - HBox layout2 = new HBox(20); - layout2.getChildren().addAll(label2, btn2); - - scene2 = new Scene(layout2, 500, 500); - - //set scene 1 as default scene - window.setScene(scene1); - window.show(); - - } - -} diff --git a/mcaruso/mc_FXStudies/e_FXMultiWindow/src/AlertBox.java b/mcaruso/mc_FXStudies/e_FXMultiWindow/src/AlertBox.java deleted file mode 100644 index 06f39b2..0000000 --- a/mcaruso/mc_FXStudies/e_FXMultiWindow/src/AlertBox.java +++ /dev/null @@ -1,32 +0,0 @@ -import javafx.geometry.Pos; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; - -public class AlertBox { - - public static void display(String title, String msg){ - Stage window = new Stage(); - window.initModality(Modality.APPLICATION_MODAL); - window.setTitle(title); - window.setMinWidth(250); - Label label = new Label(); - label.setText(msg); - Button closeButton = new Button("Close Window 2"); - closeButton.setOnAction( e -> window.close()); - - VBox layout = new VBox(20); - layout.getChildren().add(label); - layout.getChildren().add(closeButton); - layout.setAlignment(Pos.CENTER); - - Scene scene = new Scene(layout, 200, 200); - window.setScene(scene); - window.showAndWait(); - - } - -} diff --git a/mcaruso/mc_FXStudies/e_FXMultiWindow/src/Main.java b/mcaruso/mc_FXStudies/e_FXMultiWindow/src/Main.java deleted file mode 100644 index 6029b29..0000000 --- a/mcaruso/mc_FXStudies/e_FXMultiWindow/src/Main.java +++ /dev/null @@ -1,36 +0,0 @@ - - -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class Main extends Application{ - Stage window; - Button btn; - - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - window.setTitle("Window 1"); - - btn = new Button(); - btn.setText("Click Here"); - btn.setOnAction( e -> AlertBox.display("Window 2", "Hello from Window 2")); - - - StackPane layout = new StackPane(); - layout.getChildren().add(btn); - - Scene scene = new Scene(layout, 400, 300); - window.setScene(scene); - window.show(); - - } - -} diff --git a/mcaruso/test.txt b/mcaruso/test.txt deleted file mode 100644 index 366a528..0000000 --- a/mcaruso/test.txt +++ /dev/null @@ -1 +0,0 @@ -Testing javafxstudies \ No newline at end of file diff --git a/mulcahyjohn/Test.txt b/mulcahyjohn/Test.txt deleted file mode 100644 index 75594b8..0000000 --- a/mulcahyjohn/Test.txt +++ /dev/null @@ -1 +0,0 @@ -Te$+ \ No newline at end of file diff --git a/muratagenc/MyJavaFXStudies/build.xml b/muratagenc/MyJavaFXStudies/build.xml deleted file mode 100644 index c08d737..0000000 --- a/muratagenc/MyJavaFXStudies/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project MyJavaFXStudies. - - - diff --git a/muratagenc/MyJavaFXStudies/manifest.mf b/muratagenc/MyJavaFXStudies/manifest.mf deleted file mode 100644 index 328e8e5..0000000 --- a/muratagenc/MyJavaFXStudies/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/muratagenc/MyJavaFXStudies/nbproject/build-impl.xml b/muratagenc/MyJavaFXStudies/nbproject/build-impl.xml deleted file mode 100644 index 92a3e27..0000000 --- a/muratagenc/MyJavaFXStudies/nbproject/build-impl.xml +++ /dev/null @@ -1,1419 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/muratagenc/MyJavaFXStudies/nbproject/genfiles.properties b/muratagenc/MyJavaFXStudies/nbproject/genfiles.properties deleted file mode 100644 index c462e6b..0000000 --- a/muratagenc/MyJavaFXStudies/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=6c656d03 -build.xml.script.CRC32=c606483f -build.xml.stylesheet.CRC32=8064a381@1.79.1.48 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=6c656d03 -nbproject/build-impl.xml.script.CRC32=91af0e10 -nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/muratagenc/MyJavaFXStudies/nbproject/project.properties b/muratagenc/MyJavaFXStudies/nbproject/project.properties deleted file mode 100644 index 855b940..0000000 --- a/muratagenc/MyJavaFXStudies/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -annotation.processing.enabled=true -annotation.processing.enabled.in.editor=false -annotation.processing.processor.options= -annotation.processing.processors.list= -annotation.processing.run.all.processors=true -annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output -build.classes.dir=${build.dir}/classes -build.classes.excludes=**/*.java,**/*.form -# This directory is removed when the project is cleaned: -build.dir=build -build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -# Uncomment to specify the preferred debugger connection transport: -#debug.transport=dt_socket -debug.classpath=\ - ${run.classpath} -debug.test.classpath=\ - ${run.test.classpath} -# Files in build.classes.dir which should be excluded from distribution jar -dist.archive.excludes= -# This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/MyJavaFXStudies.jar -dist.javadoc.dir=${dist.dir}/javadoc -excludes= -includes=** -jar.compress=false -javac.classpath= -# Space-separated list of extra javac options -javac.compilerargs= -javac.deprecation=false -javac.external.vm=true -javac.processorpath=\ - ${javac.classpath} -javac.source=1.8 -javac.target=1.8 -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -javac.test.processorpath=\ - ${javac.test.classpath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding=${source.encoding} -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -main.class=a_stage_button_event.FirstApp -manifest.file=manifest.mf -meta.inf.dir=${src.dir}/META-INF -mkdist.disabled=false -platform.active=default_platform -run.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project. -# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. -# To set system properties for unit tests define test-sys-prop.name=value: -run.jvmargs= -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -source.encoding=UTF-8 -src.dir=src -test.src.dir=test diff --git a/muratagenc/MyJavaFXStudies/nbproject/project.xml b/muratagenc/MyJavaFXStudies/nbproject/project.xml deleted file mode 100644 index 9a1e156..0000000 --- a/muratagenc/MyJavaFXStudies/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - MyJavaFXStudies - - - - - - - - - diff --git a/muratagenc/MyJavaFXStudies/src/a_stage_button_event/FirstApp.java b/muratagenc/MyJavaFXStudies/src/a_stage_button_event/FirstApp.java deleted file mode 100644 index 7e21dda..0000000 --- a/muratagenc/MyJavaFXStudies/src/a_stage_button_event/FirstApp.java +++ /dev/null @@ -1,45 +0,0 @@ -package a_stage_button_event; - -import javafx.application.*; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.*; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.*; - -public class FirstApp extends Application implements EventHandler { - - Button button; - - public static void main(String[] args) { - - launch(args); - - } - - @Override - public void start (Stage primaryStage) throws Exception{ - - primaryStage.setTitle("Hello World"); - - button = new Button(); - button.setText("Click me"); - button.setOnAction(this); - - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - Scene scene = new Scene(layout, 300, 350); - primaryStage.setScene(scene); - primaryStage.show(); - - } - - @Override - public void handle(ActionEvent event){ - if(event.getSource() == button){ - System.out.println("Hello World"); - } - } -} diff --git a/muratagenc/MyJavaFXStudies/src/b_innerclass/InnerClass.java b/muratagenc/MyJavaFXStudies/src/b_innerclass/InnerClass.java deleted file mode 100644 index 478db0f..0000000 --- a/muratagenc/MyJavaFXStudies/src/b_innerclass/InnerClass.java +++ /dev/null @@ -1,43 +0,0 @@ -package b_innerclass; - -import javafx.application.Application; -import javafx.event.ActionEvent; -import javafx.event.EventHandler; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class InnerClass extends Application { - - Button button; - - public static void main(String []args){ - launch(args); - } - - public void start(Stage primaryStage){ - primaryStage.setTitle("Inner Class and Lambdas"); - button = new Button(); - button.setText("Click Me"); - - //you don't have to check multiple resources - //with anonymous classes, since they are already - //implemented for a specific object - //downside: needs to be implemented for each - //object.. - button.setOnAction(new EventHandler(){ - - @Override - public void handle(ActionEvent event){ - System.out.println("I am anonymous class"); - } - }); - - StackPane layout = new StackPane(); - layout.getChildren().add(button); - Scene scene = new Scene(layout, 300, 250); - primaryStage.setScene(scene); - primaryStage.show(); - } -} diff --git a/muratagenc/MyJavaFXStudies/src/c_lambdas_intro/LambdasIntro.java b/muratagenc/MyJavaFXStudies/src/c_lambdas_intro/LambdasIntro.java deleted file mode 100644 index 3532c97..0000000 --- a/muratagenc/MyJavaFXStudies/src/c_lambdas_intro/LambdasIntro.java +++ /dev/null @@ -1,32 +0,0 @@ -package c_lambdas_intro; - -import javafx.application.Application; -import static javafx.application.Application.launch; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class LambdasIntro extends Application { - - Button button; - - public static void main(String []args){ - launch(args); - } - - public void start(Stage primaryStage){ - primaryStage.setTitle("Inner Class and Lambdas"); - button = new Button(); - button.setText("Click Me"); - - //Lambdas are available only with Java 8 and above.. - button.setOnAction(e -> System.out.println("First Lambda Expression")); - - StackPane layout = new StackPane(); - layout.getChildren().add(button); - Scene scene = new Scene(layout, 300, 250); - primaryStage.setScene(scene); - primaryStage.show(); - } -} diff --git a/muratagenc/MyJavaFXStudies/src/d_setup_multiple_scenes/Main.java b/muratagenc/MyJavaFXStudies/src/d_setup_multiple_scenes/Main.java deleted file mode 100644 index 171f13c..0000000 --- a/muratagenc/MyJavaFXStudies/src/d_setup_multiple_scenes/Main.java +++ /dev/null @@ -1,78 +0,0 @@ -/* -creating multiple scenes -it just changes the content of the current view -does not switch between inner windows -*/ - -package d_setup_multiple_scenes; - - -import javafx.application.*; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.StackPane; -import javafx.scene.layout.VBox; -import javafx.stage.Stage; - -//always extend Application for JavaFX -public class Main extends Application { - - //data members - Stage window; - Scene scene1, scene2; - - //constructors - - //methods - - public static void main(String[] args) { - launch(args); //launch the GUI - } - - //launch calls start(), so implement that - @Override - public void start(Stage primaryStage) throws Exception{ - window = primaryStage; - - Label label1 = new Label("Welcome to the first scene!"); - Button button1 = new Button("Go to scene 2"); - - //add action to the button, which will switch the - //view to scene2. default is scene 1. - //! with lambdas, you can run methods without using inner classes - button1.setOnAction(e -> window.setScene(scene2)); - - //layout 1 for scene 1: children are laid out in vertical - //column. on top of eachother. 20 pixels - VBox layout1 = new VBox(20); - //add stuff to the layout - layout1.getChildren().addAll(label1, button1); - - //and add layout to the scene - scene1 = new Scene(layout1, 200, 200); - - /* - we have a stage, and a scene which uses a certain layout. - */ - - //now, we will create the second scene - //button and label for scene2 - Label label2 = new Label("Welcome to the SECOND scene!"); - Button button2 = new Button("Go back to scene 1"); - button2.setOnAction(e -> window.setScene(scene1)); - - //this time we will use a diffrent layout - StackPane layout2 = new StackPane(); - layout2.getChildren().addAll(label2, button2); - //put everything to the scene2 - scene2 = new Scene(layout2, 600, 300); - - //we need to tell the window which scene should be - //visible by default - window.setScene(scene1); - window.setTitle("title here"); - window.show(); - - } -} diff --git a/muratagenc/MyJavaFXStudies/src/e_create_multiple_windows/AlertBox.java b/muratagenc/MyJavaFXStudies/src/e_create_multiple_windows/AlertBox.java deleted file mode 100644 index b40975f..0000000 --- a/muratagenc/MyJavaFXStudies/src/e_create_multiple_windows/AlertBox.java +++ /dev/null @@ -1,54 +0,0 @@ -package e_create_multiple_windows; - -import javafx.geometry.Pos; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; - - -//it's a simple Alert Box, has a title, and a message -//but, not just an alert box, also this is a template -//you can use to create complex dialog boxes - -public class AlertBox { - - //made it static so we wont have to create - //an AlertBox object - public static void display(String title, String message){ - //new window, so needs a new stage - Stage window = new Stage(); - - //the alert box should be on top of the main window in the app - window.initModality(Modality.APPLICATION_MODAL); - - window.setTitle(title); - window.setMinWidth(250); - - //some stuff in the alert box - Label label = new Label(); - label.setText(message); - Button closeButton = new Button("close the window"); - - //add action to the button - closeButton.setOnAction(e -> window.close()); - - //layout for the window - VBox layout = new VBox(10); - layout.getChildren().addAll(label, closeButton); - layout.setAlignment(Pos.CENTER); - - //finally the scene - Scene scene = new Scene(layout); - window.setScene(scene); - - //show it now, but wait it to be closed - //so it will block everything else, focus stays on this - //alert box - window.showAndWait(); - - - } -} diff --git a/muratagenc/MyJavaFXStudies/src/e_create_multiple_windows/Main.java b/muratagenc/MyJavaFXStudies/src/e_create_multiple_windows/Main.java deleted file mode 100644 index 63de291..0000000 --- a/muratagenc/MyJavaFXStudies/src/e_create_multiple_windows/Main.java +++ /dev/null @@ -1,41 +0,0 @@ -package e_create_multiple_windows; - -import javafx.application.Application; -import static javafx.application.Application.launch; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class Main extends Application{ - - //data members - Stage window; - Button button; - - //constructors - - //methods - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage){ - - window = primaryStage; - window.setTitle("this is a title"); - - button = new Button("click me"); - button.setOnAction(e -> AlertBox.display("Alert Box", "alerting now..")); - //layout - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - //scene - Scene scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - - } -} diff --git a/muratagenc/MyJavaFXStudies/src/f_communicate_btw_windows/ConfirmBox.java b/muratagenc/MyJavaFXStudies/src/f_communicate_btw_windows/ConfirmBox.java deleted file mode 100644 index 2ec879f..0000000 --- a/muratagenc/MyJavaFXStudies/src/f_communicate_btw_windows/ConfirmBox.java +++ /dev/null @@ -1,68 +0,0 @@ -package f_communicate_btw_windows; - -import javafx.geometry.Pos; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.control.Label; -import javafx.scene.layout.VBox; -import javafx.stage.Modality; -import javafx.stage.Stage; - - -//it's a simple Alert Box, has a title, and a message -//but, not just an alert box, also this is a template -//you can use to create complex dialog boxes - -public class ConfirmBox { - - //data members - private static boolean answer; - - //constructors - - - //methods - public static boolean display(String title, String message){ - - //new window, so needs a new stage - Stage window = new Stage(); - - window.initModality(Modality.APPLICATION_MODAL); - window.setTitle(title); - window.setMinWidth(250); - - - Label label = new Label(); - label.setText(message); - - Button yesButton = new Button("Yes"); - Button noButton = new Button("No"); - - //if any of the buttons clicked, - //change the value of answer - yesButton.setOnAction(e -> { - //multiple statements - answer = true; - window.close(); - }); - - noButton.setOnAction(e -> { - //multiple statements - answer = false; - window.close(); - }); - - //layout for the window - VBox layout = new VBox(10); - layout.getChildren().addAll(label, yesButton, noButton); - layout.setAlignment(Pos.CENTER); - - //finally the scene - Scene scene = new Scene(layout); - window.setScene(scene); - window.showAndWait(); - - return answer; - - } -} diff --git a/muratagenc/MyJavaFXStudies/src/f_communicate_btw_windows/Main.java b/muratagenc/MyJavaFXStudies/src/f_communicate_btw_windows/Main.java deleted file mode 100644 index 7817418..0000000 --- a/muratagenc/MyJavaFXStudies/src/f_communicate_btw_windows/Main.java +++ /dev/null @@ -1,44 +0,0 @@ -package f_communicate_btw_windows; - -import javafx.application.Application; -import static javafx.application.Application.launch; -import javafx.scene.Scene; -import javafx.scene.control.Button; -import javafx.scene.layout.StackPane; -import javafx.stage.Stage; - -public class Main extends Application{ - - //data members - Stage window; - Button button; - - //constructors - - //methods - public static void main(String[] args) { - launch(args); - } - - @Override - public void start(Stage primaryStage){ - - window = primaryStage; - window.setTitle("this is a title"); - - button = new Button("click me"); - button.setOnAction(e -> { - boolean result = ConfirmBox.display("title", "Send pictures?"); - System.out.println("result: " + result); - }); - //layout - StackPane layout = new StackPane(); - layout.getChildren().add(button); - - //scene - Scene scene = new Scene(layout, 300, 250); - window.setScene(scene); - window.show(); - - } -} diff --git a/muratagenc/remoterepotest.txt b/muratagenc/remoterepotest.txt deleted file mode 100644 index 8b13789..0000000 --- a/muratagenc/remoterepotest.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/muratagenc/test.txt b/muratagenc/test.txt deleted file mode 100644 index e69de29..0000000 diff --git a/raamisharif/myJavaFXStudies/AlertBox.java b/raamisharif/myJavaFXStudies/AlertBox.java deleted file mode 100644 index 4263b51..0000000 --- a/raamisharif/myJavaFXStudies/AlertBox.java +++ /dev/null @@ -1,26 +0,0 @@ -import javafx.scene.Scene; -import javafx.scene.control.Label; -import javafx.scene.layout.StackPane; -import javafx.stage.Modality; -import javafx.stage.Stage; - -public class AlertBox { - - public static void display(String title, String message){ - - //Set up the window - Stage window = new Stage(); - window.setTitle(title); - window.initModality(Modality.APPLICATION_MODAL); - - Label lbl = new Label(message); - StackPane layout = new StackPane(); - layout.getChildren().add(lbl); - - Scene s1 = new Scene(layout); - window.setScene(s1); - window.showAndWait(); - - System.out.println("Ended"); - } -} diff --git a/raamisharif/myJavaFXStudies/BindingProperties.java b/raamisharif/myJavaFXStudies/BindingProperties.java deleted file mode 100644 index 08b3b79..0000000 --- a/raamisharif/myJavaFXStudies/BindingProperties.java +++ /dev/null @@ -1,39 +0,0 @@ -import javafx.application.Application; -import javafx.scene.Scene; -import javafx.scene.control.Label; -import javafx.scene.control.TextField; -import javafx.scene.layout.HBox; -import javafx.stage.Stage; - -public class BindingProperties extends Application { - - - Stage window; - @Override - public void start(Stage primaryStage) throws Exception { - window = primaryStage; - - window.setTitle("Binding Properties"); - - - TextField name = new TextField(); - - Label lbl = new Label(); - - - //Bind the text Property of the label such that it automatically updates - lbl.textProperty().bind(name.textProperty()); - HBox layout = new HBox(5); - - - layout.getChildren().addAll(name,lbl); - window.setScene(new Scene(layout)); - - window.show(); - } - - public static void main(String[] args) { - launch(args); - } - -} diff --git a/raamisharif/myJavaFXStudies/ChatRoomProj/Client/MyScene.fxml b/raamisharif/myJavaFXStudies/ChatRoomProj/Client/MyScene.fxml deleted file mode 100644 index df6d628..0000000 --- a/raamisharif/myJavaFXStudies/ChatRoomProj/Client/MyScene.fxml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - -