JTextArea txt = new JTextArea();
StringBuffer sb = new StringBuffer();
sb.append("Employee Information");
sb.append("\n");
sb.append("Name:");
txt.setText(sb.toString());
나는 그렇게 BOLD format..How에 "직원 정보"을 설정해야합니다 .. 나는이JTextArea에서 텍스트를 스타일 화 (굵게 표시)하는 방법은 무엇입니까? 여기
sb.append("<html><b>Employee Information</b></html>");
같은 시도하지만 그 방법에 ... 일반적으로 텍스트를 인쇄 대담하게 만드시겠습니까?
http://stackoverflow.com/questions/2713863/java-jtextarea-bold –
I을 시도했습니다 .. JEditorPane textarea = new JEditorPane ("text/html", ""); textarea.setText ("여기에 일부 굵은 글씨"); sb.append ("직원 정보"); sb.append ("\ n"); sb.append ("Name :"); textArea.setText (sb.toString()); 하지만 그게 오지 않아 .. – shree
고마워요. 그게 .. 일하고있어 ... – shree