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 da89121

Browse files
Added Client Appinitializer..
1 parent 0e61f39 commit da89121

File tree

20 files changed

+307
-0
lines changed

20 files changed

+307
-0
lines changed

‎Client_Side/src/Client01.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
import java.io.IOException;
8+
9+
public class Client01 extends Application {
10+
11+
public static void main(String[] args) {
12+
launch(args);
13+
}
14+
15+
@Override
16+
public void start(Stage primaryStage) throws IOException {
17+
Parent root = FXMLLoader.load(getClass().getResource("View/Login_Signup.fxml"));
18+
primaryStage.setTitle("Group-Messenger!");
19+
primaryStage.setScene(new Scene(root, 330, 560));
20+
primaryStage.setResizable(false);
21+
primaryStage.show();
22+
}
23+
}
1.23 KB
Binary file not shown.
Binary file not shown.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
.btnBack:hover {
2+
-fx-opacity: 1;
3+
}
4+
5+
.btnLogin {
6+
-fx-background-color: #4f5b62;
7+
}
8+
9+
.btnLogin:hover {
10+
-fx-background-color: #62727b !important;
11+
-fx-text-fill: #4db6ac;
12+
}
13+
14+
.allButton {
15+
-fx-background-color: #718792;
16+
-fx-background-radius: 90;
17+
}
18+
19+
.allButton:hover {
20+
-fx-background-color: #819ca9;
21+
-fx-text-fill: #000000;
22+
}
23+
24+
.txtFont {
25+
-fx-text-fill: #f4f4f4;
26+
}
27+
28+
.txtFont:focused {
29+
-fx-border-color: transparent transparent #558b2f transparent;
30+
-fx-text-fill: #f4f4f4;
31+
}
32+
33+
.scroll-pane {
34+
-fx-background-color: transparent;
35+
-fx-border-color: derive(gray, 100%);
36+
-fx-padding: 0px;
37+
}
38+
39+
.scroll-pane .scroll-bar:vertical {
40+
-fx-background-color: transparent;
41+
-fx-background-radius: 0;
42+
}
43+
44+
.scroll-pane .scroll-bar:vertical .track {
45+
-fx-background-color: transparent;
46+
-fx-border-color: transparent;
47+
-fx-background-radius: 0em;
48+
-fx-border-radius: 2em;
49+
}
50+
51+
.scroll-pane .scroll-bar:horizontal .decrement-button {
52+
-fx-background-color: transparent;
53+
-fx-background-radius: 0em;
54+
-fx-padding: 0 0 10 0;
55+
}
56+
57+
.scroll-pane .scroll-bar:vertical .decrement-button {
58+
-fx-background-color: transparent;
59+
-fx-background-radius: 0em;
60+
-fx-padding: 0 10 0 0;
61+
}
62+
63+
.scroll-pane .scroll-bar .increment-arrow,
64+
.scroll-pane .scroll-bar .decrement-arrow {
65+
-fx-padding: -2;
66+
}
67+
68+
.scroll-pane .scroll-bar:vertical .thumb {
69+
-fx-background-color: derive(black, 90%);
70+
-fx-background-insets: 2, 0, 0;
71+
-fx-background-radius: 2em;
72+
}
73+
74+
.text-area {
75+
-fx-font-family: Arial, sans-serif;
76+
-fx-highlight-fill: #ffff;
77+
-fx-highlight-text-fill: #fff;
78+
-fx-text-fill: #ffff;
79+
-fx-border-color: #000;
80+
-fx-background-insets: 0;
81+
-fx-background-color: transparent, white, transparent, white;
82+
}
83+
84+
.text-area .content{
85+
-fx-background-color: transparent, #263238;
86+
}
87+
88+
.textField {
89+
-fx-text-fill: #eeeeee;
90+
-fx-font-family: Arial !important;
91+
}
92+
93+
.msgBox {
94+
-fx-background-color: #455a64;
95+
-fx-background-radius: 70;
96+
-fx-font-size: 15px;
97+
-fx-text-fill: #eeeeee;
98+
-fx-font-family: Arial !important;
99+
}
100+
101+
102+
103+
/*
104+
Button Font color: #004c40
105+
Button Background Color: #718792
106+
All Button Hover Color: #819ca9
107+
Body Color: #263238
108+
Text field color: #455a64
109+
Header color: #102027
110+
111+
*/
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<?import javafx.scene.control.Button?>
4+
<?import javafx.scene.control.Label?>
5+
<?import javafx.scene.control.PasswordField?>
6+
<?import javafx.scene.control.RadioButton?>
7+
<?import javafx.scene.control.TextField?>
8+
<?import javafx.scene.control.ToggleGroup?>
9+
<?import javafx.scene.image.Image?>
10+
<?import javafx.scene.image.ImageView?>
11+
<?import javafx.scene.layout.AnchorPane?>
12+
<?import javafx.scene.layout.Pane?>
13+
<?import javafx.scene.layout.StackPane?>
14+
<?import javafx.scene.text.Font?>
15+
16+
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="560.0" prefWidth="330.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller.Login_Signup">
17+
<children>
18+
<StackPane prefHeight="560.0" prefWidth="330.0" style="-fx-background-color: red;">
19+
<children>
20+
<Pane fx:id="pnSignUp" prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #263238#263238;" stylesheets="@Css/style.css">
21+
<children>
22+
<ImageView fx:id="btnBack" fitHeight="38.0" fitWidth="44.0" layoutX="9.0" layoutY="12.0" onMousePressed="#handleMouseEvent" opacity="0.48" pickOnBounds="true" preserveRatio="true" styleClass="btnBack">
23+
<image>
24+
<Image url="@icons/go_back.png" />
25+
</image>
26+
</ImageView>
27+
<PasswordField fx:id="regPass" layoutX="49.0" layoutY="178.0" prefHeight="35.0" prefWidth="233.0" promptText="Password" style="-fx-background-color: #455a64;" styleClass="txtFont" stylesheets="@Css/style.css">
28+
<font>
29+
<Font name="Arial" size="17.0" />
30+
</font>
31+
</PasswordField>
32+
<TextField fx:id="regFirstName" layoutX="49.0" layoutY="83.0" prefHeight="35.0" prefWidth="233.0" promptText="Full Name" style="-fx-background-color: #455a64;" styleClass="txtFont" stylesheets="@Css/style.css">
33+
<font>
34+
<Font name="Arial" size="17.0" />
35+
</font>
36+
</TextField>
37+
<TextField fx:id="regEmail" layoutX="49.0" layoutY="226.0" prefHeight="34.0" prefWidth="233.0" promptText="Email" style="-fx-background-color: #455a64;" styleClass="txtFont" stylesheets="@Css/style.css">
38+
<font>
39+
<Font name="Arial" size="17.0" />
40+
</font>
41+
</TextField>
42+
<Label layoutX="118.0" layoutY="33.0" text="Sign Up" textFill="#c9c7c7">
43+
<font>
44+
<Font size="28.0" />
45+
</font>
46+
</Label>
47+
<Button layoutX="59.0" layoutY="377.0" mnemonicParsing="false" onAction="#registration" prefHeight="35.0" prefWidth="208.0" style="-fx-background-radius: 90; -fx-background-color: #718792;" styleClass="btnLogin" stylesheets="@Css/style.css" text="Create Account" textFill="#004c40">
48+
<font>
49+
<Font name="Beirut Regular" size="18.0" />
50+
</font>
51+
</Button>
52+
<Label layoutX="68.0" layoutY="489.0" text="Already Have an Account?" textFill="#dad7d7">
53+
<font>
54+
<Font size="19.0" />
55+
</font>
56+
</Label>
57+
<Button fx:id="getStarted" layoutX="108.0" layoutY="517.0" mnemonicParsing="false" onAction="#handleButtonAction" prefHeight="27.0" prefWidth="126.0" style="-fx-background-color: #718792; -fx-background-radius: 90;" styleClass="btnLogin" stylesheets="@Css/style.css" text="Log In Here" textFill="#004c40">
58+
<font>
59+
<Font size="14.0" />
60+
</font>
61+
</Button>
62+
<Label fx:id="controlRegLabel" layoutX="44.0" layoutY="349.0" opacity="0.0" text="Please, Enter all the necessary Info" textFill="#f44336">
63+
<font>
64+
<Font name="Arial" size="16.0" />
65+
</font>
66+
</Label>
67+
<Label fx:id="success" layoutX="75.0" layoutY="426.0" opacity="0.0" text="Registration Successful" textFill="#6abf69">
68+
<font>
69+
<Font size="18.0" />
70+
</font>
71+
</Label>
72+
<Label fx:id="goBack" layoutX="77.0" layoutY="452.0" opacity="0.0" text="Please, go back and login!" textFill="#6abf69">
73+
<font>
74+
<Font size="16.0" />
75+
</font>
76+
</Label>
77+
<TextField fx:id="regName" layoutX="49.0" layoutY="129.0" prefHeight="35.0" prefWidth="233.0" promptText="Username" style="-fx-background-color: #455a64;" styleClass="txtFont" stylesheets="@Css/style.css">
78+
<font>
79+
<Font name="Arial" size="17.0" />
80+
</font>
81+
</TextField>
82+
<RadioButton fx:id="male" layoutX="128.0" layoutY="320.0" mnemonicParsing="false" selected="true" text="Male" textFill="#ebe8e8">
83+
<font>
84+
<Font name="Arial" size="15.0" />
85+
</font>
86+
<toggleGroup>
87+
<ToggleGroup fx:id="Gender" />
88+
</toggleGroup>
89+
</RadioButton>
90+
<RadioButton fx:id="female" layoutX="204.0" layoutY="320.0" mnemonicParsing="false" text="Female" textFill="#ebe8e8" toggleGroup="$Gender">
91+
<font>
92+
<Font name="Arial" size="15.0" />
93+
</font>
94+
</RadioButton>
95+
<Label layoutX="53.0" layoutY="319.0" text="Gender:" textFill="#ebeaea">
96+
<font>
97+
<Font size="17.0" />
98+
</font>
99+
</Label>
100+
<Label fx:id="nameExists" layoutX="73.0" layoutY="349.0" opacity="0.0" text="Username already exists!" textFill="#f44336">
101+
<font>
102+
<Font name="Arial" size="16.0" />
103+
</font>
104+
</Label>
105+
<Label fx:id="checkEmail" layoutX="67.0" layoutY="349.0" opacity="0.0" text="E-mail is already registered!" textFill="#f44336">
106+
<font>
107+
<Font name="Arial" size="16.0" />
108+
</font>
109+
</Label>
110+
<TextField fx:id="regPhoneNo" layoutX="49.0" layoutY="272.0" prefHeight="35.0" prefWidth="233.0" promptText="Phone Number" style="-fx-background-color: #455a64;" styleClass="txtFont" stylesheets="@Css/style.css">
111+
<font>
112+
<Font name="Arial" size="17.0" />
113+
</font>
114+
</TextField>
115+
</children>
116+
</Pane>
117+
<Pane fx:id="pnSignIn" prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #263238;">
118+
<children>
119+
<TextField fx:id="userName" layoutX="69.0" layoutY="218.0" prefHeight="34.0" prefWidth="208.0" promptText="Username" style="-fx-background-color: #455a64; -fx-focus-traversable: green;" styleClass="txtFont" stylesheets="@Css/style.css">
120+
<font>
121+
<Font name="Arial" size="17.0" />
122+
</font>
123+
</TextField>
124+
<PasswordField fx:id="passWord" layoutX="68.0" layoutY="268.0" prefHeight="35.0" prefWidth="208.0" promptText="Password" style="-fx-background-color: #455a64;" styleClass="txtFont" stylesheets="@Css/style.css">
125+
<font>
126+
<Font name="Arial" size="17.0" />
127+
</font>
128+
</PasswordField>
129+
<Button layoutX="69.0" layoutY="341.0" mnemonicParsing="false" onAction="#login" prefHeight="38.0" prefWidth="208.0" style="-fx-background-radius: 90; -fx-background-color: #718792;" styleClass="btnLogin" stylesheets="@Css/style.css" text="Log In" textFill="#004c40">
130+
<font>
131+
<Font name="Beirut Regular" size="18.0" />
132+
</font>
133+
</Button>
134+
<Label layoutX="78.0" layoutY="455.0" text="Don't Have an Account?" textFill="#d7d7d7">
135+
<font>
136+
<Font size="19.0" />
137+
</font>
138+
</Label>
139+
<Button fx:id="btnSignUp" layoutX="113.0" layoutY="490.0" mnemonicParsing="false" onAction="#handleButtonAction" prefHeight="28.0" prefWidth="112.0" style="-fx-background-color: #718792; -fx-background-radius: 90;" styleClass="btnLogin" stylesheets="@Css/style.css" text="Sign Up Here" textFill="#004c40">
140+
<font>
141+
<Font size="14.0" />
142+
</font>
143+
</Button>
144+
<ImageView fitHeight="98.0" fitWidth="112.0" layoutX="106.0" layoutY="38.0" pickOnBounds="true" preserveRatio="true">
145+
<image>
146+
<Image url="@icons/icons8-chat.png" />
147+
</image>
148+
</ImageView>
149+
<ImageView fitHeight="38.0" fitWidth="38.0" layoutX="22.0" layoutY="216.0" pickOnBounds="true" preserveRatio="true">
150+
<image>
151+
<Image url="@icons/user.png" />
152+
</image>
153+
</ImageView>
154+
<ImageView fitHeight="35.0" fitWidth="38.0" layoutX="24.0" layoutY="267.0" pickOnBounds="true" preserveRatio="true">
155+
<image>
156+
<Image url="@icons/secure.png" />
157+
</image></ImageView>
158+
<Label layoutX="127.0" layoutY="152.0" text="Log In" textFill="#d7d7d7">
159+
<font>
160+
<Font size="28.0" />
161+
</font>
162+
</Label>
163+
<Label fx:id="loginNotifier" layoutX="70.0" layoutY="314.0" opacity="0.0" text="Username or password is incorrect" textFill="#ff5353">
164+
<font>
165+
<Font name="Arial" size="13.0" />
166+
</font>
167+
</Label>
168+
</children>
169+
</Pane>
170+
</children>
171+
</StackPane>
172+
</children>
173+
</AnchorPane>
661 Bytes
Loading[フレーム]
945 Bytes
Loading[フレーム]
1.33 KB
Loading[フレーム]
938 Bytes
Loading[フレーム]
1.78 KB
Loading[フレーム]

0 commit comments

Comments
(0)

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