java - How to get values between differents Shells/Displays - SWT -


I am starting in SWT and I have a question about getting value between different shell / display .

I have 2 screens, one to sell and to search for other products.

When I open a sales screen, and find the product in the screen of the screen, I need to send it to the sales screen, the result of search

search results opened in the table , The selected row is loaded into the sales screen.

I do not know how to access the sales screens to load these values. Or through the screen of search, to reach the field in the sales screen and to define related values ​​in the field of the sales screen.

I register the sales screen as a listener on the screen of the screen. Once the record is selected on the screen of the screen screen, it will be notified and conduct the selection event as necessary. You can pass values ​​from the search screen to the sales screen in the event object.


Comments