ネタ心者歓迎! 今更ながらにJava相談室
■ このスレッドは過去ログ倉庫に格納されています
0450デフォルトの名無しさん
NGNGSearch_result(String html){
super(" Web Page viewer ");
JEditorPane jep = new JEditorPane();
jep.setEditable(false);
jep.addHyperlinkListener(new LinkFollower(jep));
jep.setContentType("text/html");
jep.setText(html);
JScrollPane sp = new JScrollPane(jep);
getContentPane().add(sp);
setBounds(300, 150, 700, 550);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
show();
}
}
上のプログラムで引数として渡したhtmlドキュメントの文字列を
ブラウザのように
表示したいのですが、うまくいきません。
どこがまちがっているのでしょうか?
■ このスレッドは過去ログ倉庫に格納されています