java - Closing a JTable Instance -


I am developing a Java application that uses jtabe to allow the user to capture data. This data will be written on a text file later. The application is working fine well. However, I wanted to add a button such that when the user clicks on this button, the app should ask the user before writing it in a text file and after that the application should close the table (the table ends) Do) example from memory) - more of a word document closure. My desk is sitting on the panel.

How do I do this? I need a closing (a type of myTable.close () to forget the data in the table) Only part, everything is working fine.

Remove your table using the UI and make sure that you have any reference to the table or table modell is not. Garbage Collection will take care of the remainder.

There was an issue where any listeners had stored your UI component, but I am unsure that this is still the case and may be limited to using internal classes for the listener. for.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -