Create Account
Create Account
createAccount;
import java.awt.Cursor;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
/**
*
* @author Ayush Bhardwaj
*/
public class CreateAccount extends javax.swing.JFrame {
/**
* Creates new form MainFrame
*/
public CreateAccount() {
initComponents();
// setExtendedState(JFrame.MAXIMIZED_BOTH);
}
/**
* 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">//GEN-
BEGIN:initComponents
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setUndecorated(true);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
getContentPane().add(jPanel1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 470, 550));
BufferedImage img=null;
try {
img = ImageIO.read(new File("C:\\Users\\Ayush Bhardwaj\\Desktop\\GUI\\
i-TASfilled.png"));
} catch (IOException e) {
e.printStackTrace();
}
Image image = img.getScaledInstance(240, 180, Image.SCALE_SMOOTH);
BufferedImage buffered = new BufferedImage(240, 180,
BufferedImage.TYPE_INT_RGB);
buffered.getGraphics().drawImage(image, 0, 0 , null);
ImageIcon imageIcon = new ImageIcon(buffered);
jLabel5.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/com/mycompany/smartGUI/icon/
giphy.gif"))); // NOI18N
jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60,
190, 240, 230));
getContentPane().add(jPanel2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(470, 0, 350, 550));
pack();
setLocationRelativeTo(null);
}// </editor-fold>//GEN-END:initComponents
/**
* @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(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>