/*     */   public void actionPerformed(ActionEvent e)
/*     */   {
/* 189 */     if (e.getSource() == this.confirm)
/*     */     {
/*     */       try
/*     */       {
/* 193 */         getUser();
/*     */       } catch (IOException e1) {
/* 195 */         e1.printStackTrace();
/*     */       }
/* 197 */       this.user = ((String)this.list.get(0)).toCharArray();
/* 198 */       this.correctPassword = ((String)this.list.get(1)).toCharArray();
/*     */ 
/* 200 */       char[] entereduser = this.username.getText().toCharArray();
/* 201 */       char[] enteredPassword = this.passwordFld.getPassword();
/*     */ 
/* 204 */       if ((Arrays.equals(this.correctPassword, enteredPassword)) && (Arrays.equals(this.user, entereduser)))
/*     */       {
/* 206 */         this.guiFrame.dispose();
/*     */         try {
/* 208 */           for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels())
/* 209 */             if ("Nimbus".equals(info.getName())) {
/* 210 */               UIManager.setLookAndFeel(info.getClassName());
/*     */ 
/* 213 */               break;
/*     */             }
/*     */         }
/*     */         catch (Exception e1) {
/*     */           try {
/* 218 */             UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
/*     */           }
/*     */           catch (ClassNotFoundException|InstantiationException|IllegalAccessException|UnsupportedLookAndFeelException e2)
/*     */           {
/* 223 */             e2.printStackTrace();
/*     */           }
/*     */         }
/*     */         try
/*     */         {
/* 228 */           this.tempframe.getContentPane().add(new JTabbedPaneDemo(), "Center");
/*     */         }
/*     */         catch (TembooException|IOException|URISyntaxException|TwitterException|IllegalArgumentException|FeedException e1) {
/* 231 */           e1.printStackTrace();
/*     */         }
/* 233 */         this.tempframe.setSize(600, 600);
/* 234 */         this.tempframe.setVisible(true);
/*     */       }
/*     */       else {
/* 237 */         JOptionPane.showMessageDialog(this.guiFrame, "Please Enter a valid username and password", "Incomplete", 1, this.icon1);
/*     */       }
/*     */ 
/* 244 */       Arrays.fill(enteredPassword, '0');
/*     */     }
/*     */ 
/* 249 */     if (e.getSource() == this.register)
/* 250 */       if (getCreds() == null) {
/* 251 */         this.file = new File("dp.txt");
/* 252 */         JLabel label1 = new JLabel("Username");
/* 253 */         JLabel label2 = new JLabel("Password");
/* 254 */         JPanel panel = new JPanel();
/* 255 */         JTextField field1 = new JTextField(15);
/* 256 */         panel.add(label1);
/* 257 */         panel.add(field1);
/* 258 */         JTextField field2 = new JTextField(15);
/* 259 */         panel.add(label2);
/* 260 */         panel.add(field2);
/*     */ 
/* 263 */         int value = JOptionPane.showConfirmDialog(this.guiFrame, panel, "Registration", 2, 3, this.icon);
/* 264 */         if (value == 0) {
/* 265 */           this.inputUser = field1.getText();
/* 266 */           this.inputPass = field2.getText();
/*     */ 
/* 268 */           this.user = this.inputUser.toCharArray();
/* 269 */           this.correctPassword = this.inputPass.toCharArray();
/*     */           try {
/* 271 */             storeAccessToken();
/*     */           } catch (IOException e1) {
/* 273 */             e1.printStackTrace();
/*     */           }
/*     */         }
/*     */ 
/*     */       }
/*     */       else
/*     */       {
/* 280 */         JOptionPane.showMessageDialog(this.guiFrame, "You are already Registered.\nPress Help for help.\nThen Register again.", "Incomplete", 1, this.icon1);
/*     */       }
/*     */   }