Jan 28, 2005 #1 oops4me Programmer Jul 7, 2003 50 IN Hi There, Can Anybody Tell me how to eject a cd-drive by clicking a button in Java swing. Thanks
Jan 31, 2005 #2 Diancecht Programmer Jan 8, 2004 4,042 ES http://forums.devarticles.com/archive/t-8207/How-to-open-the-CD-drive-with-Java-programming Upvote 0 Downvote
Jan 31, 2005 #3 stefanwagner Programmer Oct 19, 2003 2,373 DE Dianecht: you could have marked this as a j++-Solution, which will work on MS-systems only. seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung Upvote 0 Downvote
Dianecht: you could have marked this as a j++-Solution, which will work on MS-systems only. seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung
Feb 1, 2005 #4 Diancecht Programmer Jan 8, 2004 4,042 ES I don't think there's a way to do it platform independent, as the "open" command must be an OS call. Anyway, I think the article states it clearly. Sorry for the inconveniences. Cheers, Dian Upvote 0 Downvote
I don't think there's a way to do it platform independent, as the "open" command must be an OS call. Anyway, I think the article states it clearly. Sorry for the inconveniences. Cheers, Dian
Feb 1, 2005 #5 stefanwagner Programmer Oct 19, 2003 2,373 DE Anyway, I think the article states it clearly. Click to expand... Would I have seen it else? But you need to follow the link to see it, which contains itself the misleading term 'java' again... seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung Upvote 0 Downvote
Anyway, I think the article states it clearly. Click to expand... Would I have seen it else? But you need to follow the link to see it, which contains itself the misleading term 'java' again... seeking a job as java-programmer in Berlin: http://home.arcor.de/hirnstrom/bewerbung
Feb 8, 2005 #7 jstreich Programmer Apr 20, 2002 1,067 US OS depentant... If you test the System object to know your enviroment you could exec a native command / method to do it for you... I.E. http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties() If it's linux execute the "eject" command, if it's DOS/Windows you could make a native call or some such... Upvote 0 Downvote
OS depentant... If you test the System object to know your enviroment you could exec a native command / method to do it for you... I.E. http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties() If it's linux execute the "eject" command, if it's DOS/Windows you could make a native call or some such...