In C# this is done by using delegates and event, here is the link: Passing Data between Windows Forms.
My requirement is like this. User have to search the item code by loading the whole items from the database to a new form's JTable
, this new form is shown by clicking a button in the main form (or any other form). After that appears, user Double click on specific item code in the table and that item code is passed to the main form's (or any other form's) text field and closed the current form.
here is the output from c# https://www.youtube.com/watch?v=_lPkc1YV2vQ&feature=youtu.be