•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,964 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,630 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 586 | Replies: 1
![]() |
•
•
Join Date: Nov 2007
Location: ATHENS
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
i am trying to make an autorun cd with a digital book in java.
1) How can i find out the cd or dvd drive letter in which has entered my cd?
in the code section below i use this very ugly way to achieve this.
2)which is the best container that i can use with org.jdesktop.jdic.browser?
1) How can i find out the cd or dvd drive letter in which has entered my cd?
in the code section below i use this very ugly way to achieve this.
2)which is the best container that i can use with org.jdesktop.jdic.browser?
final Container pane = getContentPane();
driveletter = JOptionPane.showInputDialog(null , "ENTER THE DRIVE LETTER (ENGLISH) OF THE CD OR DVD YOU ARE USING ");
driveletter = driveletter.toUpperCase();
try {
webBrowser = new WebBrowser(new URL("file:///" + driveletter + ":\\introduction.htm" ));
• • • • browserpane = new JScrollPane(webBrowser);
// browserpane.createHorizontalScrollBar();
// browserpane.createVerticalScrollBar();
browserpane.setBounds(new Rectangle(200,80,610,460)); //(x,y,width,height)
pane.add(browserpane);
setVisible(true);
}
catch (MalformedURLException e) {
System.out.println("first use of browser before any chapter sellection " + e.getMessage());
}![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How to have the div layer center on any browser? (JavaScript / DHTML / AJAX)
- Which browser do you design for? (HTML and CSS)
- Java open internet browser (Java)
- Browser popup windows (Viruses, Spyware and other Nasties)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Can't run JSP in Browser (JSP)
- Cross browser CSS (Site Layout and Usability)
- browser shutting down..... (Web Browsers)
- Opera web browser question (Techies' Lounge)
Other Threads in the Java Forum
- Previous Thread: Java date program
- Next Thread: Tokenizer help



Linear Mode