Showing posts with label login. Show all posts
Showing posts with label login. Show all posts

Saturday, October 15, 2016

Source code program membuat Login java

Source code program membuat Login java


Source code program membuat Login sistem dengan Netbeans #java desktop

Melanjutkan tutorial yang udah saya janjikan kemarin yah, sekarang membuat Login system agar tombol/button yang tidak bisa di akses/klik bisa aktif dan bisa diakses/klik.
Bismillah..
1. Design tampilan form utama seperti pada gambar di bawah :


#Sub menu Login akan berubah otomatis menjadi Logout ketika Login sudah berhasil.
#semua tombol/button tidak aktif (enable=false).


2. Buat sebuah database (saya menggunakan MySQL), berikut contoh struktur database untuk table admin nya :




3. Jangan lupa Add Library MySQL JDBC Drivernya, caranya tinggal klik kanan pada Libraries > Pilih Add Library sehinggan muncul tampilan berikut :


Jika MySQL JDBC Driver nya belum ada, klik tombol Import dan cari file MySQL JDBC Driver nya kemudian pilih filenya lalu tekan Ok.
Setelah berhasil ter import, pilih lagi file MySQL JDBC Driver nya kemudian klik tombol Add Library.


4. Untuk pengcodingan Login system pada Button Login klik Kanan > Events > Action > actionPerformed lalu ketikkan coding berikut :
try {
Connection koneksi=DriverManager.getConnection("jdbc:mysql://localhost:3306/medica","root","");
Statement stat= koneksi.createStatement();
ResultSet rs=stat.executeQuery("select count(id_admin) from admin where id_admin="+jPasswordUser.getText()+" and password="+jPasswordPass.getText()+"" );
if(rs.next()){
int id_admin=rs.getInt(1);
if(id_admin>0){
TbObat.setEnabled(true);
TbTindakan.setEnabled(true);
TbDokter.setEnabled(true);
TbPasien.setEnabled(true);
TbPetugas.setEnabled(true);
Login.setText("Logout"); //merubah sub menu Login menjadi Logout
PanelLogin.setVisible(false);
jPasswordPass.setText("");
jPasswordUser.setText("");
}else {
TbObat.setEnabled(false);
TbTindakan.setEnabled(false);
TbDokter.setEnabled(false);
TbPasien.setEnabled(false);
TbPetugas.setEnabled(false);
Login.setText("Login");
JOptionPane.showMessageDialog(null,"Maaf, Username atau Password SALAH,Silahkan ulangi Login...!");
jPasswordUser.setFocusable(true);
jPasswordPass.setText("");
jPasswordUser.setText("");
}
}
} catch (SQLException ex) {
System.out.println(ex);
}


#Keterangan : nama database, table, field, button, textfield, form Login sesuaikan dengan punya Anda masing-masing.


5. Kemudian pada Button Batal juga klik Kanan > Events > Action > actionPerformed lalu ketikkan coding berikut :
jPasswordPass.setText("");
jPasswordUser.setText("");
PanelLogin.setVisible(false);


6. Finish deh.. Coba programnya di Run dan liat hasilnya!
- Tampilan awal ketika sub menu Login di klik, semua tombol/button belum aktif karena belum Login.






- Tampilan ketika klik Button Login dan Login berhasil, sub menu Login berubah menjadi Logout otomatis dan semua tombol/button aktif.




- Tampilan ketika Username dan Password yang dimasukkan salah, textfield akan kembali kosong. Ketika tombol Batal di klik form Login akan hilang.


Alhamdulillah sukses

Go to link download

Read more »

Friday, September 23, 2016

How to reset Facebook login password

How to reset Facebook login password


Before moving to the deep part of this article, I can tell you frankly that this is very simple tips and tricks which will help you in various ways. I presume that you do not know how to reset Facebook login password. But my first word is for you don't use this tips only for Facebook. Because, by simple modification, you can be able to use this for other website where you have been registered user at previous time, but you have forgotten you password.

Are you ready ?

We are moving now to the mission of recovering our Facebook password! For the completing this mission successfully, you will be provided what you need. So, don't worry! keep moving.
Read more »

Go to link download

Read more »

Tuesday, September 6, 2016

Add Login Box Login Form code For Blogger Blog

Add Login Box Login Form code For Blogger Blog



Add blogger login form widget for blogger. The login box in the blogger home page is really cool and many of us prefer going to the homepage itself to login and access our blogs. But what if you like to access your blogger dashboard from your blog itself? Well, it’s possible to add a widget with some codes or scripts to your blogger blog side bar and access your dashboard from that login box. And I am sure you love widgets on your blog. After all they are the bells and whistles on your blog and add some more sense to design and interactivity.












In this post we will learn how to add the Login box in your blogger/blogspot blog. Blogger Users here we go with the steps.
I hope you know how to add widgets to your blog.

1. Log in to your dashboard–> layout


Blogger Edit Html

2. Click on “Add a Gadget” where you need to place the login box or form.

Blogger Add a Gadget

3. A Pop-up window will open and select the Click on “Add a Gadget” and select “HTML/Java Script”.

Blogger Add Html Javascript

4. Copy the code below and Paste Inside the box.

<form action="https://www.google.com/accounts/ServiceLoginBoxAuth" method="post" onsubmit="onlogin()"><input value="http://www.blogger.com/loginz?d=%2Fhome&p=http%3A%2F%2Fwww.blogger.com%2F" name="continue" type="hidden"/><input value="blogger" name="service" type="hidden"/><input value="8" name="nui" type="hidden"/><input value="8" name="naui" type="hidden"/><input value="2" name="fpui" type="hidden"/><input value="3" name="uilel" type="hidden"/><input value="true" name="skipvpage" type="hidden"/><input value="false" name="rm" type="hidden"/><input value="true" name="alwf" type="hidden"/><input value="http://www.blogger.com/login.g" name="roeu" type="hidden"/><input value="0" name="alinsu" type="hidden"/><input value="WbQ8QiJfUvA" name="GA3T" type="hidden"/><div><label for="Email"> Username: <br/><input id="Email" tabindex="1" value="" name="Email" size="20" type="text"/></label></div><div><label for="Passwd"> Password: (<a href="https://www.blogger.com/forgot.g" target="_top" title="Forgot your password?">?</a>) <br/></label><input id="Passwd" tabindex="2" autocomplete="off" name="Passwd" size="20" type="password"/></div><br/><input id="signin-btn-ns" tabindex="0" value="Sign in" class="ubtn ubtn-block" name="submit" type="submit"/></form>



5. Save the Html/Javascript and go on to your page to see how it looks.
6. If you have some idea on html, play with the variables used above to make the login box/ login form suitable for your blog.
If you have done everything correct, you should have the followng box in your blog as below.

Go to link download

Read more »

Saturday, August 20, 2016

Facebook Messenger Chit Chat for Facebook Direct Login to Facebook Chatting

Facebook Messenger Chit Chat for Facebook Direct Login to Facebook Chatting


ChitChat was an open source instant messaging client for Mac OS X supporting the Yahoo! Messenger protocol. It enabled users to chat with each other over the global Yahoo! chat system. The last version, ChitChat 1.2, had a more refined user interface, speed improvements, Address Book support, IM reformatting, an improved events system, and numerous bug fixes. ChitChat was programmed in the REALBasic programming environment.
You can also login with your facebook username and password and can chat with your facebook friends.








Go to link download

Read more »

Sunday, August 7, 2016

Change Facebook Login Page Background in Google Chrome

Change Facebook Login Page Background in Google Chrome


Facebook.com is almost all internet user s favorite place . Bored with having exactly the same dull and boaring Facebook log in page all the time you actually sign in?Effectively after that it’s enough time to Rekindle your own Facebook.com with your personal customized and favorite sign in page design...This method only for google Chrome not working on other browsers like Mozila Forfox.



Let s See How To..??
Just Follow Me......
Open up your Google Chrome & click on " Settings " tab (Top Rigth )
Click on " Tools " 
Then click on " Extentions "
Now . Click on " Browse the Gallery "
Next step is search "  FB Refresh " search Box & hit enter key
Now simply click on " Add To Chrome "
Confirme 

Restart Google Chrome and open Facebook & see the result
You can easily Change Background image...
First upload your favorite image on any free image hosting for example Flicker & copy Image Url
and Click on " Setting " icone



Past your image url & select " Horizontally " or " Vertically " and " Save "


Mission complete...

Go to link download

Read more »