File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Camera class and device path... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Camera class and device path..." Watch "Camera class and device path..." New topic

Camera class and device path...

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I'm looking into the Camera class, and I don't know how to find out the path name to my device, could anyone help me out?


Justin Fox

You down with OOP? Yeah you know me!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Invert the phase coupler and focus the gravitron flow.

Seriously, what Camera class?

[Asking smart questions] [About Bear] [Books by Bear]
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
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

Justin Fox
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
I agree. Here's the link:
subject: Camera class and device path...
It's not a secret anymore!