JFileChooserを開くだけのプログラムなんだけど、
これを実行しては閉じる、実行しては閉じると30回くらいやっていると、
デッドロックを起こしたようにフリーズする時が来る。
フリーズは1回目になるかもしれないし、30回こえても起きないかも知れない。
こちらの環境(Win2K。jre1.5.0_06)では50回以内にはかならず起きている。
JFileChooserに問題があるようで、JOptionPaneなどの場合は起きない。
というわけで、余裕のある方、確認してみて欲しいです。

import javax.swing.*;
import java.io.*;

public class BugDemonstration {
static JFileChooser file = null;
public static void main(String args[]) {
final JFrame frame = new JFrame("The Frame");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
frame.setSize(200,200);
frame.setVisible(true);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
file = new JFileChooser();
file.setMultiSelectionEnabled(true);
file.setDialogTitle
("Select lots of files..." );
file.showDialog(frame.getContentPane(), "Demonstrate problem");
}
});
}
}