package UserForm;
import com.cloudgarden.layout.AnchorConstraint;
import com.cloudgarden.layout.AnchorLayout;
import java.awt.event.MouseAdapter;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JToggleButton;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
public class UserForm extends javax.swing.JFrame {
private JTextField username;
private JLabel UserType;
private JPasswordField pass;
private JComboBox jComboBox1;
private JButton Register;
private JLabel welocmeNote;
private JLabel password;
private JButton Enter;
private JLabel jLabel1;
/**
* Auto-generated main method to display this JFrame
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
UserForm inst = new UserForm();
inst.setLocationRelativeTo(null);
inst.setVisible(true);
}
});
}
public UserForm() {
super();
initGUI();
}
private void initGUI() {
try {
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
getContentPane().setLayout(null);
this.setTitle("\u0635\u0641\u062d\u0647 \u0648\u0631\u0648\u062f");
{
username = new JTextField();
getContentPane().add(username, new AnchorConstraint(188, 370, 248, 185, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
username.setBounds(181, 87, 126, 22);
}
{
jLabel1 = new JLabel();
getContentPane().add(jLabel1, new AnchorConstraint(196, 540, 240, 401, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
jLabel1.setText("\u0634\u0646\u0627\u0633\u0647 \u06a9\u0627\u0631\u0628\u0631\u06cc");
jLabel1.setFont(new java.awt.Font("Tahoma",1,12));
jLabel1.setBounds(380, 90, 117, 17);
}
{
Enter = new JButton();
getContentPane().add(Enter, new AnchorConstraint(572, 466, 633, 315, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
Enter.setText("\u0648\u0631\u0648\u062f");
Enter.setFont(new java.awt.Font("Tahoma",1,12));
Enter.setBounds(239, 248, 93, 22);
}
{
password = new JLabel();
getContentPane().add(password, new AnchorConstraint(366, 540, 410, 403, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));
password.setText("\u0631\u0645\u0632 \u0639\u0628\u0648\u0631");
password.setFont(new java.awt.Font("Tahoma",1,12));
password.setBounds(417, 135, 80, 16);
}
{
welocmeNote = new JLabel();
getContentPane().add(welocmeNote);
welocmeNote.setText("\u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u062e\u0648\u0634 \u0622\u0645\u062f\u06cc\u062f");
welocmeNote.setBounds(150, 27, 290, 16);
welocmeNote.setFont(new java.awt.Font("Tahoma",1,14));
}
{
Register = new JButton();
getContentPane().add(Register);
Register.setText("\u0627\u0646\u0635\u0631\u0627\u0641");
Register.setBounds(107, 248, 93, 22);
Register.setFont(new java.awt.Font("Tahoma",1,12));
Register.addMouseListener(new MouseAdapter() {
});
}
{
UserType = new JLabel();
getContentPane().add(UserType);
UserType.setText("\u0646\u0648\u0639 \u06a9\u0627\u0631\u0628\u0631");
UserType.setBounds(417, 186, 80, 19);
UserType.setFont(new java.awt.Font("Tahoma",1,12));
}
{
ComboBoxModel jComboBox1Model =
new DefaultComboBoxModel(
new String[] { "\u0639\u0627\u062f\u06cc", "\u0645\u062f\u06cc\u0631","\u0637\u0631\u0627\u062d"});
jComboBox1 = new JComboBox();
getContentPane().add(jComboBox1);
jComboBox1.setModel(jComboBox1Model);
jComboBox1.setBounds(181, 183, 127, 22);
jComboBox1.setFont(new java.awt.Font("Tahoma",1,12));
}
{
pass = new JPasswordField();
getContentPane().add(pass);
pass.setBounds(181, 132, 127, 22);
}
pack();
this.setSize(600, 400);
} catch (Exception e) {
e.printStackTrace();
}
}