Hello!
I am new to the Java world - you could say about 1 year experience here and there.
I have a problem. Its not a code problem, but more of concept and theory.
I am making an application which contains a list box. Now the contents of this list box can be added, edited and deleted - I have taken care of that. When the application exits the contents are copied to file. When the application starts the contents are read from the file and added to the list box.
I have made the application first in AWT and then in Swing. For this particular application I feel Swing would be better. Why? -
- While using AWT's List class I had to manage 2 data structures- one a collection class and the other the List itself.
- While using Swing I have to create and manage only 1 data structure, which is the object of class javax.swing.DefaultListModel.
I have termed the above approaches as "More Memory Less FileIO"
Now I have this THING/FEAR making rounds in my head. What is there are a million entries in the listbox? How much can the data structures provided by Java take (contain) before the application crashes (OutOfMemory)? Should I consider another way around?
The only other way around I can think of is "Less Memory More FileIO".
Can anyone help?