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 07b305b

Browse files
Updated ReadMe file..
1 parent b015629 commit 07b305b

File tree

7 files changed

+43
-35
lines changed

7 files changed

+43
-35
lines changed

‎Client_Side/src/Controller/Client_Room.java

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import javafx.fxml.Initializable;
1717
import javafx.geometry.Pos;
1818
import javafx.scene.Node;
19-
import javafx.scene.Parent;
2019
import javafx.scene.Scene;
2120
import javafx.scene.control.Button;
2221
import javafx.scene.control.Label;
@@ -151,8 +150,8 @@ public void run() {
151150

152151
ImageView imageView = new ImageView(image);
153152

154-
imageView.setFitHeight(50);
155-
imageView.setFitWidth(50);
153+
imageView.setFitHeight(100);
154+
imageView.setFitWidth(100);
156155

157156

158157
HBox hBox = new HBox(10);
@@ -233,32 +232,7 @@ public void run() {
233232
e.printStackTrace();
234233
}
235234
}
236-
/* public void run() {
237-
try {
238-
while (true) {
239-
String msg = reader.readLine();
240-
String[] tokens = msg.split(" ");
241-
String cmd = tokens[0];
242-
System.out.println(cmd);
243-
StringBuilder fulmsg = new StringBuilder();
244-
for (int i = 1; i < tokens.length; i++) {
245-
fulmsg.append(tokens[i]);
246-
}
247-
System.out.println(fulmsg);
248-
if (cmd.equalsIgnoreCase(Login_Signup.username + ":")) {
249-
continue;
250-
} else if (fulmsg.toString().equalsIgnoreCase("bye")) {
251-
break;
252-
}
253-
msgRoom.appendText(msg + "\n");
254-
}
255-
reader.close();
256-
writer.close();
257-
socket.close();
258-
} catch (Exception e) {
259-
e.printStackTrace();
260-
}
261-
}*/
235+
262236

263237
public void handleProfileBtn(ActionEvent event) {
264238
if (event.getSource().equals(profileBtn) && !toggleProfile) {
@@ -353,13 +327,12 @@ public void cameraIconMouseClicked(MouseEvent mouseEvent) {
353327
}
354328

355329
public void addNewStage(MouseEvent mouseEvent) throws IOException {
356-
357-
358-
/* Stage stage = new Stage();
359-
stage.setScene(new Scene(FXMLLoader.load(getClass().getResource("../View/Login_Signup.fxml"))));
360-
stage.setTitle("Messenger!");
330+
Stage stage = new Stage();
331+
stage.setScene(new Scene(FXMLLoader.load(getClass().getResource("../view/Login_Signup.fxml"))));
332+
stage.setTitle("Messenger"); stage.centerOnScreen();
361333
stage.setResizable(false);
362-
stage.show();*/
334+
stage.show();
335+
363336

364337
}
365338
}

‎README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
# Multi_Client_Chat_Application-Socket_Programming-in-Java
2+
3+
## Description
24
I just got started with socket programming so in order to improve my understandings of it I wanna build a multi-client chat application.
5+
6+
## Main Functions of Application
7+
* Login Interface
8+
* Create Account & signup Interface
9+
* Manage Client Profile
10+
* Chat room Interfaces
11+
12+
13+
#### Also,This Application Optimized to Provide for Mobile Devices.
14+
15+
## :link: Basic Background of Application
16+
17+
### 🌱 Login Interface
18+
<img src="assets/login.PNG">
19+
20+
### 🌱 Create Account & signup Interface
21+
<img src="assets/signup.PNG">
22+
23+
### 🌱 Manage Client Profile
24+
<img src="assets/profile.PNG">
25+
26+
### 🌱 Chat room Interfaces
27+
<img src="assets/chats.PNG">
28+
29+
30+
## Technology/Framework used
31+
* Socket Programming
32+
* Java
33+
* CSS
34+
* JavaFx
35+
36+
## License
37+
**Copyright @ 2022 All Right Reserved By Ishara Maduranga**

‎assets/chats.PNG

97.4 KB
Loading[フレーム]

‎assets/login.PNG

18 KB
Loading[フレーム]

‎assets/profile.PNG

116 KB
Loading[フレーム]

‎assets/signup.PNG

13.6 KB
Loading[フレーム]
Binary file not shown.

0 commit comments

Comments
(0)

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