I am working on a Java program to monitor meal consumption by members of an organization. They swipe their ID cards, enter PIN, and number of meals they want. System knows if dining room is open and what meal based on time. The system then prints out a receipt on an Epson TM-T88IV receipt printer.
The system is running in console mode. My problem is that when the system prints, a Notepad window pops up for milliseconds and then the Java program loses focus. The screen reverts back to Windows home screen. I'm using Windows XP, SP3 and the latest Java build.
Any suggestions on how to prevent the loss of focus would be greatly appreciated.