a few questions

pls tell me if there is a way that i could make an image in an applet (or in some container) apper just partially and make the image "move" as the mouse moves? cause i can't think of any way of doing that.

also can i make another application open a certain file when someone clicks on a button in a java gui?

pls help me cause i'm clueless..

[362 byte] By [me1357a] at [2007-10-2 19:01:35]
# 1

> also can i make another application open a certain

> file when someone clicks on a button in a java gui?

What do you mean by opening a file? Are you thinking of launching an editor or the default editor for the file as a seperate process? Or are you wanting to "open" it within your app?

BaltimoreJohna at 2007-7-13 20:40:28 > top of Java-index,Java Essentials,Java Programming...
# 2
i wanna edit a google earth kml file in the java gui and then i would like to open it with google earth when the user clicks on a button. but i don't think that's possible. at least i don't know any way of doing that..
me1357a at 2007-7-13 20:40:28 > top of Java-index,Java Essentials,Java Programming...
# 3
You would have to understand the Google Earth API. Does it accept a kml file as a command line argument? If so then you can do it. Otherwise, I don't think you can.
BaltimoreJohna at 2007-7-13 20:40:28 > top of Java-index,Java Essentials,Java Programming...
# 4
supposing that it does (couldn't find this info anywhere, yet) how do i do that?
me1357a at 2007-7-13 20:40:28 > top of Java-index,Java Essentials,Java Programming...
# 5
Check out the Process API. A simple example is below:Process p = Runtime.getRuntime().exec(String.format("%1$s %2$s", application, file.getPath()));
BaltimoreJohna at 2007-7-13 20:40:28 > top of Java-index,Java Essentials,Java Programming...
# 6
thanks for the advice. i'll look into it and if have some problem you'll be hearing for me :)
me1357a at 2007-7-13 20:40:28 > top of Java-index,Java Essentials,Java Programming...