Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f18339

Browse files
Added some classes client02 & client03 with Client Side.
1 parent b3617a3 commit 3f18339

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

‎Client_Side/src/Client02.java‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import javafx.application.Application;
2+
import javafx.fxml.FXMLLoader;
3+
import javafx.scene.Parent;
4+
import javafx.scene.Scene;
5+
import javafx.stage.Stage;
6+
7+
/**
8+
* @author : Ishara Maduarnga
9+
* Project Name: Chat_Application
10+
* Date : 7/30/2022
11+
* Time : 12:03 AM
12+
* Year : 2022
13+
*/
14+
15+
public class Client02 extends Application {
16+
@Override
17+
public void start(Stage primaryStage) throws Exception {
18+
Parent root = FXMLLoader.load(getClass().getResource("View/sample.fxml"));
19+
primaryStage.setTitle("Messenger!");
20+
primaryStage.setScene(new Scene(root, 330, 560));
21+
primaryStage.setResizable(false);
22+
primaryStage.show();
23+
}
24+
25+
public static void main(String[] args) {
26+
launch(args);
27+
}
28+
}

‎Client_Side/src/Client03.java‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import javafx.application.Application;
2+
import javafx.fxml.FXMLLoader;
3+
import javafx.scene.Parent;
4+
import javafx.scene.Scene;
5+
import javafx.stage.Stage;
6+
7+
/**
8+
* @author : Ishara Maduarnga
9+
* Project Name: Chat_Application
10+
* Date : 7/30/2022
11+
* Time : 12:11 AM
12+
* Year : 2022
13+
*/
14+
15+
public class Client03 extends Application {
16+
@Override
17+
public void start(Stage primaryStage) throws Exception {
18+
Parent root = FXMLLoader.load(getClass().getResource("View/sample.fxml"));
19+
primaryStage.setTitle("Messenger!");
20+
primaryStage.setScene(new Scene(root, 330, 560));
21+
primaryStage.setResizable(false);
22+
primaryStage.show();
23+
}
24+
25+
public static void main(String[] args) {
26+
launch(args);
27+
}
28+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /