i am developing stock management system in java but i am new in java
<p>I am developing stock management system in java and I am new in java.I started coding but stucked.i would like to make a login form and there will be username JTextfield and password JPasswordfield, login button, cancel and register button.login button for login if user name and password is correct,if not will not authenticated. cancel button to cancel login and erase user name and password in the textbox. and register button for registering new user.</p>

<p>I need to code connect Database also and I am using MS SQL 2005. can anyone please help me?</p>
