Results 1 to 2 of 2
  1. #1
    yashrajsen is offline Member
    Join Date
    Nov 2010
    Location
    hyderabad
    Posts
    1
    Rep Power
    0

    Default Need to Save a data to file from JPanel and read the data back to Jpanel

    I have a Jpanel with 2 textfield data and a 'Save' button to save the data into a text file and simultaneously show the data to a JDialog with Close button.

    I have done the first half of saving the data into a file. But, with the same 'Save' button, I am not able to read the data into the Jdialog, Maybe we cant have two actionListeners for a button.

    Can anyone help me out with this issue?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Hello and welcome to the forum. To best help you solve your problem, I suggest you create and post an SSCCE. Please see the link in my signature to see how this is done.

    Luck.

Similar Threads

  1. Need a solution to read and store data from a file
    By sheetalnri in forum New To Java
    Replies: 10
    Last Post: 09-30-2010, 07:43 AM
  2. GUI: How to save these data to a text/dat file?
    By florachu2121 in forum New To Java
    Replies: 6
    Last Post: 08-02-2010, 12:31 AM
  3. Create a form, input some data and save to file
    By cselic in forum AWT / Swing
    Replies: 5
    Last Post: 05-07-2010, 01:28 PM
  4. Replies: 40
    Last Post: 07-04-2008, 09:41 AM
  5. Replies: 0
    Last Post: 04-17-2008, 08:36 PM

Tags for this Thread

Posting Permissions

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