Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / October 2004

Tip: Looking for answers? Try searching our database.

CD Drive eject

Thread view: 
david - 22 Oct 2004 08:02 GMT
I've been searching all over and I still haven't found an answer.  Is
there a way to eject a CD drive in Sun's Java?  I've found the J++
code, but I need either the code in Java or a free copy of the J++
libraries.  Thanks for help

David
Thomas Weidenfeller - 22 Oct 2004 08:21 GMT
> I've been searching all over and I still haven't found an answer.  Is
> there a way to eject a CD drive in Sun's Java?

No, not with Java, not in a cross-platform way.

/Thomas
Boudewijn Dijkstra - 22 Oct 2004 12:48 GMT
> I've been searching all over and I still haven't found an answer.  Is
> there a way to eject a CD drive in Sun's Java?  I've found the J++
> code, but I need either the code in Java or a free copy of the J++
> libraries.  Thanks for help

JOptionPane.showMessageDialog(null, "Please eject CD drive " + path, "Eject",
JOptionPane.PLAIN_MESSAGE);
Aki \ - 25 Oct 2004 08:05 GMT
>>I've been searching all over and I still haven't found an answer.  Is
>>there a way to eject a CD drive in Sun's Java?  I've found the J++
[quoted text clipped - 3 lines]
> JOptionPane.showMessageDialog(null, "Please eject CD drive " + path, "Eject",
> JOptionPane.PLAIN_MESSAGE);

:-)
Well that sure _is_ a cross-platform way to do it... *smirk* Unless, of
course, the target platform's usual "weakest link" (the user) does not
happen to understand English. (In which case this method is not
supported) :-)

Signature

-Aki "Sus" Laukkanen

Tor Iver Wilhelmsen - 25 Oct 2004 10:18 GMT
> Well that sure _is_ a cross-platform way to do it... *smirk* Unless,
> of course, the target platform's usual "weakest link" (the user)
> does not happen to understand English. (In which case this method is
> not supported) :-)

Solved by using ResourceBundle plus MessageFormat. :)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.