No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello i'm trying to display date in textfield this is my code: private void DateObjectActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: java.util.Date date=new java.util.Date(); this.DateObject.setText(date.toString()); olny the problem is the date will only show If i press a button I want it to display automatically when I … |
|
hello i'm trying to code 'Save Button' which saves all the information in a file this is what I did: private void SaveButtonActionPerformed(java.awt.event.ActionEvent evt) { java.io.File file=new java.io.File("File.txt"); try { java.io.PrintWriter output = new java.io.PrintWriter(file); output.print(this.DateObject.getText()); output.print(this.NoteObject.getText()); output.close(); } catch (FileNotFoundException ex) { System.out.println(""); } } the problem is if … |
|
i'm trying to show date in a text field this is what I did java.util.Date date=new java.util.Date(); this.DateObject.setText(date); and its wrong... please help & thank you. |