Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

CD Drive eject
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

Report this thread to moderator Post Follow-up to this message
Old Post
david
10-22-04 08:57 AM


Re: CD Drive eject
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

Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Weidenfeller
10-22-04 08:57 AM


Re: CD Drive eject
"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);



Report this thread to moderator Post Follow-up to this message
Old Post
Boudewijn Dijkstra
10-22-04 01:56 PM


Re: CD Drive eject
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, "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


Report this thread to moderator Post Follow-up to this message
Old Post
Aki \Sus\ Laukkanen
10-25-04 08:59 AM


Re: CD Drive eject
"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. :)

Report this thread to moderator Post Follow-up to this message
Old Post
Tor Iver Wilhelmsen
10-25-04 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:56 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.