Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.67 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package javaapplication1;
  7.  
  8. import java.sql.Connection;
  9. import java.sql.DriverManager;
  10. import java.sql.SQLException;
  11. import java.sql.Statement;
  12. import javax.swing.JOptionPane;
  13. import javax.swing.JPanel;
  14. import javax.swing.JFrame;
  15. import java.sql.DriverManager;
  16. import java.sql.ResultSet;
  17. import javax.swing.JOptionPane;
  18.  
  19. /**
  20. *
  21. * @author husse
  22. */
  23. public class RegistratieScherm extends javax.swing.JFrame {
  24. private static final String USERNAME= "root";
  25. private static final String PASSWORD= "";
  26. private static final String CONN_STRING= "jdbc:mysql://localhost:3306/diaconnect";
  27. /**
  28. * Creates new form RegistratieScherm
  29. */
  30. public RegistratieScherm() {
  31. initComponents();
  32. this.setLocationRelativeTo(null); //scherm komt in het midden bij run
  33. }
  34.  
  35. /**
  36. * This method is called from within the constructor to initialize the form.
  37. * WARNING: Do NOT modify this code. The content of this method is always
  38. * regenerated by the Form Editor.
  39. */
  40. @SuppressWarnings("unchecked")
  41. // <editor-fold defaultstate="collapsed" desc="Generated Code">
  42. private void initComponents() {
  43.  
  44. filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));
  45. jTextField3 = new javax.swing.JTextField();
  46. jTextField5 = new javax.swing.JTextField();
  47. jTextField8 = new javax.swing.JTextField();
  48. jPanel2 = new javax.swing.JPanel();
  49. jLabel1 = new javax.swing.JLabel();
  50. jTextField1 = new javax.swing.JTextField();
  51. jLabel2 = new javax.swing.JLabel();
  52. jLabel3 = new javax.swing.JLabel();
  53. jButton1 = new javax.swing.JButton();
  54. jLabel4 = new javax.swing.JLabel();
  55. jLabel6 = new javax.swing.JLabel();
  56. jPasswordField3 = new javax.swing.JPasswordField();
  57. jPasswordField4 = new javax.swing.JPasswordField();
  58. jLabel7 = new javax.swing.JLabel();
  59. jLabel8 = new javax.swing.JLabel();
  60. jLabel9 = new javax.swing.JLabel();
  61. jLabel10 = new javax.swing.JLabel();
  62. jLabel11 = new javax.swing.JLabel();
  63. jTextField2 = new javax.swing.JTextField();
  64. jTextField4 = new javax.swing.JTextField();
  65. jTextField6 = new javax.swing.JTextField();
  66. jTextField7 = new javax.swing.JTextField();
  67. jTextField9 = new javax.swing.JTextField();
  68.  
  69. jTextField3.setBackground(new java.awt.Color(164, 176, 190));
  70. jTextField3.addActionListener(new java.awt.event.ActionListener() {
  71. public void actionPerformed(java.awt.event.ActionEvent evt) {
  72. jTextField3ActionPerformed(evt);
  73. }
  74. });
  75.  
  76. jTextField5.setBackground(new java.awt.Color(164, 176, 190));
  77. jTextField5.addActionListener(new java.awt.event.ActionListener() {
  78. public void actionPerformed(java.awt.event.ActionEvent evt) {
  79. jTextField5ActionPerformed(evt);
  80. }
  81. });
  82.  
  83. jTextField8.setBackground(new java.awt.Color(164, 176, 190));
  84. jTextField8.addActionListener(new java.awt.event.ActionListener() {
  85. public void actionPerformed(java.awt.event.ActionEvent evt) {
  86. jTextField8ActionPerformed(evt);
  87. }
  88. });
  89.  
  90. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  91.  
  92. jPanel2.setBackground(new java.awt.Color(87, 96, 111));
  93. jPanel2.setPreferredSize(new java.awt.Dimension(578, 527));
  94.  
  95. jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication1/images/diatech logo_1.png"))); // NOI18N
  96. jLabel1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
  97. jLabel1.setMaximumSize(new java.awt.Dimension(67, 31));
  98. jLabel1.setName(""); // NOI18N
  99. jLabel1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
  100.  
  101. jTextField1.setBackground(new java.awt.Color(164, 176, 190));
  102. jTextField1.addActionListener(new java.awt.event.ActionListener() {
  103. public void actionPerformed(java.awt.event.ActionEvent evt) {
  104. jTextField1ActionPerformed(evt);
  105. }
  106. });
  107.  
  108. jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  109. jLabel2.setForeground(new java.awt.Color(255, 255, 255));
  110. jLabel2.setText("Gebruikersnaam:");
  111.  
  112. jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  113. jLabel3.setForeground(new java.awt.Color(255, 255, 255));
  114. jLabel3.setText("Volle naam:");
  115.  
  116. jButton1.setBackground(new java.awt.Color(186, 220, 88));
  117. jButton1.setText("Log in");
  118. jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
  119. public void mouseClicked(java.awt.event.MouseEvent evt) {
  120. jButton1MouseClicked(evt);
  121. }
  122. });
  123. jButton1.addActionListener(new java.awt.event.ActionListener() {
  124. public void actionPerformed(java.awt.event.ActionEvent evt) {
  125. jButton1ActionPerformed(evt);
  126. }
  127. });
  128.  
  129. jLabel4.setForeground(new java.awt.Color(255, 255, 255));
  130. jLabel4.setText("Already have an account? Log in!");
  131. jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {
  132. public void mouseClicked(java.awt.event.MouseEvent evt) {
  133. jLabel4MouseClicked(evt);
  134. }
  135. });
  136.  
  137. jLabel6.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  138. jLabel6.setForeground(new java.awt.Color(255, 255, 255));
  139. jLabel6.setText("Wachtwoord:");
  140.  
  141. jPasswordField3.setBackground(new java.awt.Color(164, 176, 190));
  142.  
  143. jPasswordField4.setBackground(new java.awt.Color(164, 176, 190));
  144.  
  145. jLabel7.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  146. jLabel7.setForeground(new java.awt.Color(255, 255, 255));
  147. jLabel7.setText("Her-Wachtwoord:");
  148.  
  149. jLabel8.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  150. jLabel8.setForeground(new java.awt.Color(255, 255, 255));
  151. jLabel8.setText("Emailadres:");
  152.  
  153. jLabel9.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  154. jLabel9.setForeground(new java.awt.Color(255, 255, 255));
  155. jLabel9.setText("Telefoonnummer:");
  156.  
  157. jLabel10.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  158. jLabel10.setForeground(new java.awt.Color(255, 255, 255));
  159. jLabel10.setText("Geboortedatum:");
  160.  
  161. jLabel11.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  162. jLabel11.setForeground(new java.awt.Color(255, 255, 255));
  163. jLabel11.setText("BSN-nummer:");
  164.  
  165. jTextField2.setBackground(new java.awt.Color(164, 176, 190));
  166. jTextField2.addActionListener(new java.awt.event.ActionListener() {
  167. public void actionPerformed(java.awt.event.ActionEvent evt) {
  168. jTextField2ActionPerformed(evt);
  169. }
  170. });
  171.  
  172. jTextField4.setBackground(new java.awt.Color(164, 176, 190));
  173. jTextField4.addActionListener(new java.awt.event.ActionListener() {
  174. public void actionPerformed(java.awt.event.ActionEvent evt) {
  175. jTextField4ActionPerformed(evt);
  176. }
  177. });
  178.  
  179. jTextField6.setBackground(new java.awt.Color(164, 176, 190));
  180. jTextField6.addActionListener(new java.awt.event.ActionListener() {
  181. public void actionPerformed(java.awt.event.ActionEvent evt) {
  182. jTextField6ActionPerformed(evt);
  183. }
  184. });
  185.  
  186. jTextField7.setBackground(new java.awt.Color(164, 176, 190));
  187. jTextField7.addActionListener(new java.awt.event.ActionListener() {
  188. public void actionPerformed(java.awt.event.ActionEvent evt) {
  189. jTextField7ActionPerformed(evt);
  190. }
  191. });
  192.  
  193. jTextField9.setBackground(new java.awt.Color(164, 176, 190));
  194. jTextField9.addActionListener(new java.awt.event.ActionListener() {
  195. public void actionPerformed(java.awt.event.ActionEvent evt) {
  196. jTextField9ActionPerformed(evt);
  197. }
  198. });
  199.  
  200. javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
  201. jPanel2.setLayout(jPanel2Layout);
  202. jPanel2Layout.setHorizontalGroup(
  203. jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  204. .addGroup(jPanel2Layout.createSequentialGroup()
  205. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  206. .addGroup(jPanel2Layout.createSequentialGroup()
  207. .addGap(134, 134, 134)
  208. .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  209. .addGroup(jPanel2Layout.createSequentialGroup()
  210. .addGap(106, 106, 106)
  211. .addComponent(jLabel4)))
  212. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  213. .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
  214. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  215. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  216. .addGroup(jPanel2Layout.createSequentialGroup()
  217. .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
  218. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  219. .addComponent(jPasswordField4, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))
  220. .addGroup(jPanel2Layout.createSequentialGroup()
  221. .addComponent(jLabel6)
  222. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  223. .addComponent(jPasswordField3, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))
  224. .addGroup(jPanel2Layout.createSequentialGroup()
  225. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  226. .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
  227. .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))
  228. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  229. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  230. .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
  231. .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)))
  232. .addGroup(jPanel2Layout.createSequentialGroup()
  233. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  234. .addComponent(jLabel10)
  235. .addComponent(jLabel8)
  236. .addComponent(jLabel9))
  237. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  238. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  239. .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
  240. .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
  241. .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)))
  242. .addGroup(jPanel2Layout.createSequentialGroup()
  243. .addComponent(jLabel11)
  244. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  245. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  246. .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
  247. .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))))
  248. .addGap(254, 254, 254))
  249. );
  250. jPanel2Layout.setVerticalGroup(
  251. jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  252. .addGroup(jPanel2Layout.createSequentialGroup()
  253. .addGap(15, 15, 15)
  254. .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  255. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  256. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  257. .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  258. .addComponent(jLabel2))
  259. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  260. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  261. .addComponent(jLabel3)
  262. .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  263. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  264. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  265. .addComponent(jLabel6)
  266. .addComponent(jPasswordField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  267. .addGap(15, 15, 15)
  268. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  269. .addComponent(jPasswordField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  270. .addGroup(jPanel2Layout.createSequentialGroup()
  271. .addGap(2, 2, 2)
  272. .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
  273. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  274. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  275. .addComponent(jLabel8)
  276. .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  277. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  278. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  279. .addComponent(jLabel9)
  280. .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  281. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  282. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  283. .addComponent(jLabel10)
  284. .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  285. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  286. .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  287. .addComponent(jLabel11)
  288. .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  289. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
  290. .addComponent(jButton1)
  291. .addGap(30, 30, 30)
  292. .addComponent(jLabel4))
  293. );
  294.  
  295. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  296. getContentPane().setLayout(layout);
  297. layout.setHorizontalGroup(
  298. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  299. .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 400, Short.MAX_VALUE)
  300. );
  301. layout.setVerticalGroup(
  302. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  303. .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE)
  304. );
  305.  
  306. pack();
  307. }// </editor-fold>
  308.  
  309. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
  310. // TODO add your handling code here:
  311. Connection conn = null;
  312.  
  313. String a = jTextField1.getText(); //voornaam
  314. String b = jTextField2.getText(); //achternaam
  315. String c = jPasswordField3.getText(); //wachtwoord
  316. String d = jPasswordField4.getText(); //her-wachtwoord
  317. String e = jTextField6.getText(); //emailadres
  318. String f = jTextField7.getText(); //telefoonnummer
  319. String g = jTextField4.getText(); //geboortedatum
  320. String h = jTextField9.getText(); //BSN-nummer
  321.  
  322.  
  323.  
  324.  
  325. try {
  326. conn = DriverManager.getConnection(CONN_STRING,USERNAME,PASSWORD);
  327. System.out.println("registered");
  328. //Dialog.setVisible(true);
  329. Statement stmt = (Statement) conn.createStatement();
  330. String insert = "INSERT INTO `registraties` (`Gebruikersnaam`, `Volle naam`, `Password`, `RePassword`, `Emailadres`, `Telefoonnummer`, `Geboortedatum`, `BSN`) VALUES ('"+a+"', '"+b+"', '"+c+"', '"+d+"', '"+e+"', '"+f+"', '"+g+"', '"+h+"')";
  331. stmt.executeUpdate(insert);
  332.  
  333. if (a.isEmpty() || b.isEmpty() || c.isEmpty() || d.isEmpty() || e.isEmpty() || f.isEmpty() || g.isEmpty() || h.isEmpty())
  334. {
  335. JOptionPane.showMessageDialog(this,"Complete All The Fields");
  336. }
  337.  
  338. else {
  339. JOptionPane.showMessageDialog(this,"Registered Succesfully");
  340. this.dispose();
  341. new Loginscherm().setVisible(true);
  342. }
  343.  
  344.  
  345. }
  346. catch (SQLException ee) {
  347. System.err.println(ee);
  348.  
  349. }
  350. }
  351.  
  352. private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
  353. // TODO add your handling code here:
  354. String deNaam = "";
  355. if(deNaam.equals("")) {
  356. System.out.println("hi");
  357. }
  358. }
  359.  
  360. private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {
  361. // TODO add your handling code here:
  362. }
  363.  
  364. private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {
  365. // TODO add your handling code here:
  366. }
  367.  
  368. private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {
  369. // TODO add your handling code here:
  370. }
  371.  
  372. private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {
  373. // TODO add your handling code here:
  374. }
  375.  
  376. private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {
  377. // TODO add your handling code here:
  378. }
  379.  
  380. private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {
  381. // TODO add your handling code here:
  382. }
  383.  
  384. private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {
  385. // TODO add your handling code here:
  386. }
  387.  
  388. private void jTextField9ActionPerformed(java.awt.event.ActionEvent evt) {
  389. // TODO add your handling code here:
  390. }
  391.  
  392. private void jLabel4MouseClicked(java.awt.event.MouseEvent evt) {
  393. // TODO add your handling code here:
  394. this.dispose();
  395. new Loginscherm().setVisible(true);
  396. }
  397.  
  398. private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
  399. // TODO add your handling code here:
  400.  
  401. }
  402.  
  403. /**
  404. * @param args the command line arguments
  405. */
  406. public static void main(String args[]) {
  407. /* Set the Nimbus look and feel */
  408. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  409. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  410. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  411. */
  412. try {
  413. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  414. if ("Nimbus".equals(info.getName())) {
  415. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  416. break;
  417. }
  418. }
  419. } catch (ClassNotFoundException ex) {
  420. java.util.logging.Logger.getLogger(RegistratieScherm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  421. } catch (InstantiationException ex) {
  422. java.util.logging.Logger.getLogger(RegistratieScherm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  423. } catch (IllegalAccessException ex) {
  424. java.util.logging.Logger.getLogger(RegistratieScherm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  425. } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  426. java.util.logging.Logger.getLogger(RegistratieScherm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  427. }
  428. //</editor-fold>
  429.  
  430. /* Create and display the form */
  431. java.awt.EventQueue.invokeLater(new Runnable() {
  432. public void run() {
  433. new RegistratieScherm().setVisible(true);
  434. }
  435. });
  436. }
  437.  
  438. // Variables declaration - do not modify
  439. private javax.swing.Box.Filler filler1;
  440. private javax.swing.JButton jButton1;
  441. private javax.swing.JLabel jLabel1;
  442. private javax.swing.JLabel jLabel10;
  443. private javax.swing.JLabel jLabel11;
  444. private javax.swing.JLabel jLabel2;
  445. private javax.swing.JLabel jLabel3;
  446. private javax.swing.JLabel jLabel4;
  447. private javax.swing.JLabel jLabel6;
  448. private javax.swing.JLabel jLabel7;
  449. private javax.swing.JLabel jLabel8;
  450. private javax.swing.JLabel jLabel9;
  451. private javax.swing.JPanel jPanel2;
  452. private javax.swing.JPasswordField jPasswordField3;
  453. private javax.swing.JPasswordField jPasswordField4;
  454. private javax.swing.JTextField jTextField1;
  455. private javax.swing.JTextField jTextField2;
  456. private javax.swing.JTextField jTextField3;
  457. private javax.swing.JTextField jTextField4;
  458. private javax.swing.JTextField jTextField5;
  459. private javax.swing.JTextField jTextField6;
  460. private javax.swing.JTextField jTextField7;
  461. private javax.swing.JTextField jTextField8;
  462. private javax.swing.JTextField jTextField9;
  463. // End of variables declaration
  464. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement