Results 1 to 4 of 4
  1. #1
    cotarelo is offline Member
    Join Date
    Mar 2010
    Posts
    43
    Rep Power
    0

    Question Combobox from plain text file (plain text file database)

    Hello all,

    I want to develop a kind of very simple database in java:

    In my mind, in the GUI there is a combobox, 2 textboxes: Name and Value and 2 buttons : Load and Store.

    The idea is that when I press Store, the text from the Name textbox creates a combobox item and at the same time, the name and the value of the combobox goes to a text file. If I press Load, the value which is stored in the textfile is loaded on the textbox.

    The idea is to have a very simple database where I can load and store items. Ideally, when the program is crashed, the values of the combobox should be updated with the contents of the text file.

    I am starting with this and so far I dont know how to start... First problem I have is that I do not know how to update the textbox with the contents from a file. I am not asking for a code (which of course would be appreciated) so far I ask for the steps to get the solution

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    837
    Rep Power
    6

    Default

    you start with Psudo code and main code and put comments.Wherever if you face problem in working,we will help you out.
    Ramya:cool:

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Have you done basic file I/O without GUI? If so, you're half way to where you want to be.

    I think that to better help you, you're going to need to take a stab at your program, and then when/if you stumble, show us your code and your question.

    Much luck!

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default

    Quote Originally Posted by cotarelo View Post
    Ideally, when the program is crashed ...
    Planning for all exigencies, are we?

    db

Similar Threads

  1. Font.PLAIN - won't set font style to PLAIN!
    By Unsub in forum New To Java
    Replies: 3
    Last Post: 03-11-2010, 12:13 PM
  2. Replies: 8
    Last Post: 11-06-2009, 06:52 AM
  3. Indentation - plain text
    By barney75 in forum New To Java
    Replies: 1
    Last Post: 03-23-2009, 05:54 PM
  4. find and replace text from a text file
    By gezzel in forum New To Java
    Replies: 2
    Last Post: 09-19-2008, 04:04 PM
  5. convert html to plain text
    By vissu007 in forum New To Java
    Replies: 3
    Last Post: 07-07-2007, 02:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •