Reputation: 21
I want to add an item in choice when I press button...
means suppose when I press button "hello" this name of button should be added into my choice(let say it's object is ch
),so in public void actionPerformed(ActionEvent ae)
method I write like ch.add(ae.getActionCommand());
...
When I do this at that time "hello" is added into my choice but when I logout from my project and again login then it disappear....
What to do I do not know?
Actually I want this in my project based on GUI&Java and DBMS...
Upvotes: 2
Views: 110
Reputation: 21223
Consider using Preferences API. It is a standard mechanism to manage preference and configuration data.
Upvotes: 1