Sunday 19 October 2014

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package shop;

import java.sql.Connection;
import java.sql.DriverManager;

import java.sql.SQLException;
import java.sql.Statement;
import java.sql.*;
import javax.swing.JOptionPane;

/**
 *
 * @author RamjinM
 */
public class NewJFrame extends javax.swing.JFrame {
   
    /**
     * Creates new form NewJFrame
     */
    public NewJFrame() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                        
    private void initComponents() {

        jButton1 = new javax.swing.JButton();
        txtName = new javax.swing.JTextField();
        txtAge = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        txtSchool = new javax.swing.JTextField();
        txtGender = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jButton1.setText("Save");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jLabel1.setText(" Name");

        jLabel2.setText("Age");

        jLabel3.setText("School");

        jLabel4.setText("Gender");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addGap(37, 37, 37)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtGender)
                    .addComponent(txtSchool)
                    .addComponent(jButton1)
                    .addComponent(txtName, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                    .addComponent(txtAge))
                .addContainerGap(180, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(68, 68, 68)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                        .addGap(30, 30, 30)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtAge, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtSchool, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel4))
                .addGap(23, 23, 23)
                .addComponent(jButton1)
                .addContainerGap(52, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>                      
private static Connection conn;

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
       
       String StrName=txtName.getText();
       String StrAge=txtAge.getText();
       String Strgender=txtGender.getText();
       String Strschool=txtSchool.getText();
        try
{
                   
Class.forName("com.mysql.jdbc.Driver");
             conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/test1","root","ds1414a72c8");
             Statement stmt = conn.createStatement();
             stmt.executeUpdate("INSERT INTO person (NAME,AGE,SCHOOL,GENDER)VALUES ('"+StrName+"','"+StrAge+"','"+Strschool+"','"+Strgender+"')");
           
            JOptionPane.showMessageDialog(null,"Value inserted sucessfully");

}
catch(ClassNotFoundException | SQLException e)
{
System.out.println(e);

}
     
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
    }                                      

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(() -> {
            new NewJFrame().setVisible(true);
        });
    }

    // Variables declaration - do not modify                    
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JTextField txtAge;
    private javax.swing.JTextField txtGender;
    private javax.swing.JTextField txtName;
    private javax.swing.JTextField txtSchool;
    // End of variables declaration                  
}

Thursday 22 November 2012

Human Brain Analysis - Man vs. Woman

1. MULTI-TASKING
Women - Multiple process
Womens brains designed to concentrate multiple task at a time.
Women can Watch a TV and Talk over phone and cook.
Men - Single Process
Mens brains designed to concentrate only one work at a time. Men can not watch TV and talk over the phone at the same time. they stop the TV while Talking. They can either watch TV or talk over the phone or cook.

2. LANGUAGE
Women can easily learn many languages. But can not find solutions to problems. Men can not easily learn languages, they can easily solve problems. That's why in average a 3 years old girl has three times higher vocabulary than a 3 years old boy.

3. ANALYTICAL SKILLS
Mens brains has a lot of space for handling the analytical process. They can analyze and find the solution for a process and design a map of a building easily. But If a complex map is viewed by women, they can not understand it. Women can not understand the details of a map easily, For them it is just a dump of lines on a paper.

4. CAR DRIVING.
While driving a car, mans analytical spaces are used in his brain. He can drive a car fastly. If he sees an object at long distance, immediately his brain classifies the object (bus or van or car) direction and speed of the object and he drives accordingly. Where woman take a long time to recognize the object direction/ speed. Mans single process mind stops the audio in the car (if any), then concentrates only on driving.

5. LYING
When men lie to women face to face, they get caught easily. Womans super natural brain observes facial expression 70%, body language 20% and words coming from the mouth 10%. Mens brain does not have this. Women easily lie to men face to face.
So guys, do not lie face to face.

6. PROBLEMS SOLVING
If a man have a lot of problems, his brain clearly classifies the problems and puts them in individual rooms in the brain and then finds the solution one by one. You can see many guys looking at the sky for a long time. If a woman has a lot of problems, her brain can not classify the problems. she wants some one to hear that. After telling everything to a person she goes happily to bed. She does not worry about the problems being solved or not.

7. WHAT THEY WANT
Men want status, success, solutions, big process, etc... But Women want relationship, friends, family, etc...

8. UNHAPPINESS
If women are unhappy with their relations, they can not concentrate on their work. If men are unhappy with their work, they can not concentrate on the relations.

9. SPEECH
Women use indirect language in speech. But Men use direct language.


10. HANDLING EMOTION
Women talk a lot without thinking. Men act a lot without thinking.

Thursday 5 July 2012

How to Play Assassin Creed 2 offline.

How to play Assassin Creed 2 offline




1.Download the Assassin Creed 2 iso from any Torentz .


2.SKIDROW CRACK V 1.0
http://gf.wiretarget.com/assassins_creed_2.htm

3.ASSASSINS CREED UPDATE V1.01
http://gamedaily.newaol.com/pub/assassins_creed_2_1.01_us.exe

4.DOWNLOAD THE OFFLINE SERVER
http://gf.wiretarget.com/assassins_creed_2.htm
Category:
Gaming
Tags:
assassin creed crack drm 100%

Ram Vision

Hai guys mail me If u need ...... ramjinboss77@gmail.com