Mac de Javaat MAC
Mac de Java - 暇つぶし2ch270:名称未設定
06/11/30 18:37:33 pfnbqwTY0
次のコードについて質問いたします。

import java.awt.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.text.html.*;

public class JEditorPaneTest extends JFrame{
JEditorPane editorPane;
HTMLDocument doc;

public static void main(String[] args){
JEditorPaneTest f=new JEditorPaneTest();
f.setBounds(0,0,400,400);
f.setVisible(true);
}
public JEditorPaneTest(){
editorPane=new JEditorPane();
editorPane.setEditable(true);
editorPane.setContentType("text/html");
editorPane.setText("<html>test");
getContentPane().add(new JScrollPane(editorPane),BorderLayout.CENTER);
}
}


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch