Skip to content

Commit f11dc22

Browse files
committed
added credit for javafx
1 parent bf746b6 commit f11dc22

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

src/main/java/DialogBox.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
import javafx.scene.layout.HBox;
1818
import javafx.scene.paint.Color;
1919

20+
//@@author huixianc-reused
21+
// reused from https://github.com/huixianc/duke/blob/master/tutorials/ JavaFX tutorials
22+
2023
/**
2124
* An example of a custom control using FXML.
2225
* This control represents a dialog box consisting of an ImageView to represent the speaker's face and a label
@@ -67,4 +70,6 @@ public static DialogBox getDukeDialog(String text, Image img) {
6770
db.flip();
6871
return db;
6972
}
70-
}
73+
}
74+
75+
//@@author

src/main/java/Launcher.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import javafx.application.Application;
22

3+
//@@author huixianc-reused
4+
// reused from https://github.com/huixianc/duke/blob/master/tutorials/ JavaFX tutorials
5+
36
/**
47
* A launcher class to workaround classpath issues.
58
*/
69
public class Launcher {
710
public static void main(String[] args) {
811
Application.launch(Main.class, args);
912
}
10-
}
13+
}
14+
15+
//@@author

src/main/java/Main.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import javafx.scene.layout.AnchorPane;
99
import javafx.stage.Stage;
1010

11+
//@@author huixianc-reused
12+
// reused from https://github.com/huixianc/duke/blob/master/tutorials/ JavaFX tutorials
13+
1114
/**
1215
* A GUI for Duke using FXML.
1316
*/
@@ -34,4 +37,6 @@ public void start(Stage stage) {
3437
e.printStackTrace();
3538
}
3639
}
37-
}
40+
}
41+
42+
//@@author

src/main/java/MainWindow.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
import javafx.scene.layout.AnchorPane;
88
import javafx.scene.layout.VBox;
99

10+
//@@author huixianc-reused
11+
// reused from https://github.com/huixianc/duke/blob/master/tutorials/ JavaFX tutorials
12+
1013
/**
1114
* Controller for MainWindow. Provides the layout for the other controls.
1215
*/
@@ -64,4 +67,6 @@ private void handleUserInput() {
6467
}
6568

6669
}
67-
}
70+
}
71+
72+
//@@author

0 commit comments

Comments
 (0)