File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Problem displaying.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem displaying.." Watch "Problem displaying.." New topic
Author

Problem displaying..

Freya Tan
Ranch Hand

Joined: Apr 14, 2004
Posts: 45
Hi,
I need to have the "IF" statement to check if the "date" , "month" , "year" selected, is according to the data stored in TextFile named ("Appointment.txt")..
For example:
~ If "2" , "february" , "2004" is selected, the program would check in the Textfile [ 2;february;2004;1.30am;Lunch-break ] and display the date (2/february/2004) in JTextField "dayInput" , time (1.30am) in JTextField "timeInput" & app (Lunch-break) in JTextField "appInput"..
~ If false, a dialog box with "No Appointment" would appear..
And now the problem i'm having is that no matter what "date" i click, it would appear the "No Appointment" dialog box.. i'm not sure if it's my "IF" statement that is wrong, or my path to the TextFile is wrong.. Also maybe is the JTextField coding that is wrong in displaying the data..
This is my coding, could u kindly pls help me to check... i really dun wish to try another method for the whole thing (as i may not understand, & therefore could not explain to my lecturer..) really wish u can point out my mistakes in anywhere of the code..



* pls point out any mistakes that i have done.. (i have been doin this page for abt 2 days, and my DeadLine is getting real close) So i really wish u could give me a reply asap.. Thank u so much..
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem displaying..
 
Similar Threads
"Cannot Resolve Symbols" Error
I Seriously Need Helps.. Ugently
Need to get data to appear in JTextField..
selected item from a JComboBox
Unable to update my data.. why is that so..?