I\'m currently working on a project that\'s getting more complex than I thought it would be originally. What I\'m aiming to do right now is show a message dialog without halting
try this one:
EventQueue.invokeLater(new Runnable(){
@Override
public void run() {
JOptionPane op = new JOptionPane("Hi..",JOptionPane.INFORMATION_MESSAGE);
JDialog dialog = op.createDialog("Break");
dialog.setAlwaysOnTop(true);
dialog.setModal(true);
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
}
});