File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes JDialog closed then when reopened data not collected/showed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDialog closed then when reopened data not collected/showed." Watch "JDialog closed then when reopened data not collected/showed." New topic
Author

JDialog closed then when reopened data not collected/showed.

Peter Dennis
Greenhorn

Joined: Nov 30, 2008
Posts: 12
Hi All,

I have a JDialog that gets data from a JTable on my main screen which I store in a Vector depending on which rows of the JTable are selected. I then send this vector to my JDialog. The first time I click on the button that launches the JDialog the data is displayed. However if I click the close button on my dialog which I have implemented using:



(Not sure if this is relevant).

when I click on the button in the main screen to show the dialog again, the data isn't collected from the table, the vector is subsequently empty and I get an empty JDialog.

Does anyone know why it seems to ignore the code on subsequent presses of the button to launch the JDialog?

Many thanks,

Peter.
Peter Dennis
Greenhorn

Joined: Nov 30, 2008
Posts: 12
Oops, sorry I fixed it. I was clearing the selection from the main screen when the JDialog closed which was essential for the data collection and sending via vector to JDialog.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDialog closed then when reopened data not collected/showed.
 
Similar Threads
JTable
jtable
JTable
JTable
JTable