This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
lol, well I googled "Camera Class Java" and it came up, But I trashed that endeavor and looked into the JMF2.1.1 .
Umm, I got the app I'm using to connect to my usb quickcam. I have a little routine that when I click "record" it basically just takes a picture every 2.25 seconds. The loop to do this is a while() loop and I just do a procedure (take a pic) and then use robot.delay() function to pause for 2250 ms.
But I want to be able to press a pause button, and when the program is "recording" the UI freezes up and I can't press anything, the loop works and it does take pictures, but i have to ctrl+c to exit too.
I dont know how to go about this to where the buttons are always clickable even if that while loop is going.
My guess is that the robot.delay() is basically just like thread.sleep() and pauses the main thread so nothing else can happen, and by the time it is done pausing, its pausing again. So in reality there is basically no time to click on another button.
If I could get some help, That would be awesome.
I'm at work right now, so I'll post the code when I get home. But some thoughts on how to approach this would still be greatly appreciated.