Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messagedavid wrote: > 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
Post Follow-up to this message"david" <david.bander@gmail.com> schreef in bericht news:67c8f14d.0410212302.33f6d353@posting.google.com... > 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);
Post Follow-up to this messageBoudewijn Dijkstra wrote: > "david" <david.bander@gmail.com> schreef in bericht > news:67c8f14d.0410212302.33f6d353@posting.google.com... > > > JOptionPane.showMessageDialog(null, "Please eject CD drive " + path, "Ejec t", > 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) :-) -- -Aki "Sus" Laukkanen
Post Follow-up to this message"Aki \"Sus\" Laukkanen" <aki.laukkanenREMOVETHIS@helsinki.fi> writes: > 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. :)
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.