Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    19
    Views
    1,962

    Re: code set up question

    JTables are not connected to files. You would have to write the code to connect a JTable to a file.
  2. Replies
    19
    Views
    1,962

    Re: code set up question

    JTables are used when the program executes. Not for storing data between executions.
  3. Replies
    19
    Views
    1,962

    Re: code set up question

    A JTable for what? I was talking about where to store the questions and answers so they would be easily read and updated.
  4. Replies
    19
    Views
    1,962

    Re: code set up question

    My point was that reading a single file from a jar file would be easier than reading the contents of a folder in a jar file. As jps says, the other design would be more OOP. Which way is better for...
  5. Replies
    19
    Views
    1,962

    Re: code set up question

    I've forgotten the coding used to read the contents of a folder in a jar file. For a disk folder, the File class's list() method does it.
  6. Replies
    19
    Views
    1,962

    Re: code set up question

    Is that a bit harder in a jar file? No File class to do the work.

    Separate files can be done, just a lot more work.
  7. Replies
    19
    Views
    1,962

    Re: code set up question

    Could having separate files for each question be a maintenance problem?
    How do you add more questions? How does the program find all the files it needs to read?
    It can be done, but its more...
  8. Replies
    19
    Views
    1,962

    Re: code set up question

    What's the easiest to program and the easiest to make changes to? I'd say put it all in one file.
  9. Replies
    19
    Views
    1,962

    Re: code set up question

    A text file would be the simplest and could easily be included in a jar file.
Results 1 to 9 of 9