Mac de Java ..
[2ch|▼Menu]
270:名称未設定
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);
}
}


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5372日前に更新/203 KB
担当:undef