SwingUtilities.invokeLater
とRunnable
のインターフェイスでイベントを待っているループが無限ループしていますが、実行が継続していません...なぜですか?無限ループのSwingUtilities.invokeLaterは継続しませんか?
//here hello3 prints in cmd but hello2 will not execute
System.out.println("hello3");
//showMessage();
SwingUtilities.invokeLater(
new Runnable(){
public void run() {
while(true) {
jEditorPane1.setText(s9);
}
}
}
);
System.out.println("hello2");
[同時実行のスイング](http://docs.oracle.com/javase/tutorial/uiswing/concurrency/)から始めてください。あなたはEDTをブロックしています。 'invokeLater'は、将来のある時点でEDTの' Runnable'メソッドを実行します。 – MadProgrammer