0

hi,

i am new to java programming, i do not know anything...
can anybody post a sample program for implementing jeditorpane.
it will be a great help ....

thanks in advance...

3
Contributors
11
Replies
12
Views
6 Years
Discussion Span
Last Post by kramerd
0

thank you for responding,
i did not find a program which displays a weblink which when clicked opens in any browser.. and which is running without errors

0

evryone on the net says to use jeditorpane
if we can do without jeditorpane..please let me know..this helps me a lot

0

i want to display a link in jcontent pane or any window and when clicked should be opened in any browser

0

Thank you for your suggestion. I tried many sample programs but nothing seems to be close to what i want. could you/anyone please give me a sample program which displays a link like www.google.com or any other website address and when clicked opens that page/link in explorer

0

Thank you for your reply, i have a question
can we do this by invoking command prompt as below


Here's a simple way you can run Internet Explorer from the command line...

Create a new text file that contains the following line:

@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" %*

Rename the file e.bat

Copy this file to your profile folder

Quote
C:\Documents and Settings\your_account_name


Now you can open a command prompt window and type the following

e www.trap17.com

0

Yep, that works too. Assuming you have the batch file as described in your post, the following program will launch the browser with the given URL.

import java.io.*;

public class Test {
    public static void main(String[] args) {
       try {
          Process p = Runtime.getRuntime().exec("e.bat www.trap17.com");
      } catch (Exception e) {
         e.printStackTrace();
      }
   }
}

Note that from the command line you can just say "e www.trap17.com", but from inside the java program you have to say
"e.bat www.trap17.com".

Edited by kramerd: n/a

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.