| | |
Can JMenuItem point to a HTML file that opens in IE?
![]() |
•
•
•
•
Originally Posted by blurstudent
Can JMenuItem point to a HTML file that opens in IE?
I want the jMenuItem (E.g: Tutorial Help) to point to tutorial.html on my computer.
Couldn't find any information about it at all on the net. Can any kind souls out there help me?
Your help is greatly appreciated.
Thank you.
*Voted best profile in the world*
•
•
•
•
Originally Posted by blurstudent
erm. ya. sort off. But mine is an application. I just want the link to point to a HTML file. Can it be done?
Pardon me if it can't be done.
Thanks!
*Voted best profile in the world*
Java Syntax (Toggle Plain Text)
/* * ped.java * * Created on 29 April 2006, 17:07 */ import java.awt.*; import java.io.*; import java.util.*; public class ped { public static void main(String[] args) throws Exception { try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec("notepad.exe"); } catch(Exception e) { } } }
That opens notepad, although I'm not sure how to open explorer? But I reckon it's pretty close...
*Voted best profile in the world*
But why do it like that?
Why not embed a web browser control in a Java window?
If simple HTML 3.0 is enough you can use standard controls for that, else you might have to find something on the web (or get creative and write your own HTML parser).
Why not embed a web browser control in a Java window?
If simple HTML 3.0 is enough you can use standard controls for that, else you might have to find something on the web (or get creative and write your own HTML parser).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Other Threads in the Java Forum
- Previous Thread: Restricting Shut Down
- Next Thread: NetBean 5.0 Mobility
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game gameprogramming givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working







You able to help me?