I am working on networking now. I am trying to Display a webpage and source code for that page on JFrame.CODE is being displayed but when I press on the view button, webpage open in browser as normal.BUt I want to display it on the Jframe.Can anyone help me.
Here is the partial code :
If you are not clear about my problem,please tell meCode:
buttonForView.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
//tf.gettext() retrieves the url address
String web[] ={"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE",tf.getText()};
try{
p = r.exec(web);
//here the help is needed. I have a testArea.I need to display it on that.
}
catch(Exception e){
JOptionPane.showMessageDialog(pen,"Invalid URL","Warning",JOptionPane.WARNING_MESSAGE); }
}
});
Thanking you
Ujjal

