Commit 02910bc 1 parent e639fef commit 02910bc Copy full SHA for 02910bc
File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * To change this template, choose Tools | Templates
3
+ * and open the template in the editor.
4
+ */
5
+ package project ;
6
+ import javax .swing .*;
7
+ /**
8
+ *
9
+ * @author prashant
10
+ */
11
+ public class MakeLogin {
12
+ private String id ;
13
+ private String pass ;
14
+ public MakeLogin (){
15
+
16
+ }
17
+ public void setID (String id ){
18
+ this .id =id ;
19
+ }
20
+ public void setPass (String pass ){
21
+ this .pass =pass ;
22
+ }
23
+ public String getID (){
24
+ return this .id ;
25
+ }
26
+ public String getPass (){
27
+ return this .pass ;
28
+ }
29
+ public String authenticate (){
30
+ if (this .id .equals (null )||this .pass .equals (null )||this .id .equalsIgnoreCase ("" )||this .pass .equalsIgnoreCase ("" )){
31
+ JOptionPane .showMessageDialog (null , "Please fill the id and password" );
32
+ }
33
+ return null ;
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments