Results 1 to 3 of 3
  1. #1
    kwink is offline Member
    Join Date
    Mar 2009
    Rep Power

    Exclamation Help using Jcombobox plsssss

    Is it possible to save the recently added items in the combo box even if i close the program?
    My combo box is empty when i run my program, and I only populate it within the program, but whenever i close the program and try to run it again, the items i added in the combo box are gone.. how to do this??? pls help guys..

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Many if not most of us hate it when posters post the same question on multiple fora. The thing is you spend a good deal of time trying to help someone only to find out later that someone else has answered their question in one of the cross-posts, meaning that you've just wasted your time. Well our time is as important as yours, maybe more, and unless you close down all of your crossposts but one, you'll get no help from me.

  3. #3
    StormyWaters is offline Senior Member
    Join Date
    Feb 2009
    Rep Power


    How are you storing the items in the combo box.

    If you can, store them in another class preferably in a List, and have that class be serializable. In that class have two methods, doSave() and doLoad(). When you close the program, call doSave() to save the class to a file on the IFS. When you start the program call doLoad(), which will load the class, then have the loaded class set the Combobox items

Similar Threads

  1. Help using Jcombobox plsssss
    By kwink in forum New To Java
    Replies: 2
    Last Post: 03-22-2009, 01:10 PM
  2. JComboBox
    By pinks_70986 in forum New To Java
    Replies: 2
    Last Post: 02-19-2009, 06:26 PM
  3. I need help with JComboBox
    By eva21 in forum New To Java
    Replies: 1
    Last Post: 11-28-2008, 11:05 PM
  4. JComboBox
    By Fosters in forum AWT / Swing
    Replies: 0
    Last Post: 08-10-2008, 02:22 PM
  5. jcombobox
    By Freddie in forum AWT / Swing
    Replies: 4
    Last Post: 05-11-2007, 01:48 AM

Posting Permissions

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