[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

What is the best way to save application settings?

Posted on 2009-02-10
6
Medium Priority
?
987 Views
Last Modified: 2013-11-23
I'm writing a small application in Java and want the user to be able to save a few settings that is applied everytime the application is started. I'm new to Java and was thinking about just using txt files at first, but it seems extremely complicated to read and write from these with Java compared to e.g. VB so I was thinking of maybe creating an Settings object and use serialization to a file instead, which seems much easier. However it would be nice though to be able to have the user edit some definition txt files, which is of course then impossible as the serialized object can only be accessed by the application. And xml file couild be a possibility as well I guess, but I suppose it is as complex using as txts? The reason I dont want this to be too complex is because of the fact that the application is part of a school project and the settings handling is not an important part seen in terms of grading, but it would help in the overall grading I'm sure.
0
Comment
Question by:Suppai
6 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 600 total points
ID: 23598755
0
 
LVL 12

Assisted Solution

by:basav_com
basav_com earned 300 total points
ID: 23598781
0
 
LVL 92

Assisted Solution

by:objects
objects earned 300 total points
ID: 23598783
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 600 total points
ID: 23598795
0
 
LVL 15

Assisted Solution

by:fsze88
fsze88 earned 300 total points
ID: 23598818
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 23623342
:-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month18 days, 5 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question