Home > Archive > Java Help > October 2004 > CD Drive eject
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| 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 2004-10-22, 3:57 am |
| david 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
| |
| Boudewijn Dijkstra 2004-10-22, 8:56 am |
| "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);
| |
| Aki \Sus\ Laukkanen 2004-10-25, 3:59 am |
| Boudewijn 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, "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) :-)
--
-Aki "Sus" Laukkanen
| |
| Tor Iver Wilhelmsen 2004-10-25, 8:57 am |
| "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. :)
|
|
|
|
|