I\'m creating a Java application that will do some processing then needs to display a message to give the user feedback.
However, it appears to be incredibly slow -
I would use a JOptionPane to show the message. Here's a simple example:
import javax.swing.*;
public class OptionDemo {
public static void main(String[] args) throws Exception {
JOptionPane.showMessageDialog(null, "Hello World");
}
}
I'm afraid I can't explain the delay you're experiencing though. On my system, your code snippet runs in 500 milliseconds.