Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to load data from text.txt fiel and tokenize it into JCombo box???

843806Jul 31 2008 — edited Aug 8 2008
Hi Everyone,
I am new to Java and Netbeans. I am working on the same GUI project and need your Help!!

I have two queries and since i am new,please if possible explain step by step
1.) How can I load the contents of data stored in sometext.txt file when i click the JCombo box]?? Also, if i enter a new string not existing in text, it should display a message and add the new entered data into the sometext.txt file.
2.) How can i input the contents of table.txt file (which has characters seperated by Tab) into a JTable into specific rows and columns??. Again, the txt should add and update the new entered data.

I dont want to use any databse connection!!

Explainations with Examples/Attachments will be greatly and truly appreciated
Please Please Help me ASAP as i have to submit this assignment by next week!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2008
Added on Jul 31 2008
8 comments
149 views