wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes three questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "three questions" Watch "three questions" New topic
Author

three questions

saqib toor
Greenhorn

Joined: May 14, 2001
Posts: 1
I have three questions
1)We draw a line or any character and we want to redraw this line or character after some time intervals.Which method is used ?
2)can we open any doc file in our java program which is placed in our system?
3)which method is used to play a video clip in java program plz explain it?
Thankz in advance
Val Dra
Ranch Hand

Joined: Jan 26, 2001
Posts: 439

I have three questions
1)We draw a line or any character and we want to redraw this line or character after some time intervals.Which method is used ?
2)can we open any doc file in our java program which is placed in our system?
3)which method is used to play a video clip in java program plz explain it?

Ok let's say you have drawn a line now let's say that some method has reclucated 2 points and now you must update it. what you have to do is just call repaint method and it will repaint the screen and if you are drawing your line in paint method the coord will be new for the position.
2. I guess it depends on what editor you are using , Kawa , JBuilder they support that. I use TextPad the help to docs is not available to me though it , i think. So i just have a reference to their site.
3. To play a video please refer to this link it might have what you are asking for. http://java.sun.com/products/java-media/jmf/2.1.1/solutions/LiveData.html
(edited by Cindy to put in quotes)

[This message has been edited by Cindy Glass (edited May 15, 2001).]


Val SCJP <BR>going for SCJD
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You can open a MSWord document in a different window using this:


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: three questions