Two programs work in separate processes. You will need to create an interface between the processes (or, according to Matthew: implement inter-process communication ). There are millions of ways to achieve this, just to name a few:
- Create a file interface (the test file will be written to the file, and JLabel will read this file)
- Create a TCP / IP connection between the two
- Create an HTTP connection between the two (JLabel might be launching a stream from Glassfish or something like that)
- Creating a JMS Connection
- Create an RMI Method Call
- Create a web service (again using JLabel working with the background)
- Many more ...
source share