Devon_C_Miller the correct answer. I just want to specify a shortcut to call the event dispatch thread.
This is how I run all of my Swing applications.
import javax.swing.SwingUtilities;
import com.ggl.source.search.model.SourceSearchModel;
import com.ggl.source.search.view.SourceSearchFrame;
public class SourceSearch implements Runnable {
@Override
public void run() {
new SourceSearchFrame(new SourceSearchModel());
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new SourceSearch());
}
}
You can copy this into every Swing project simply by changing the names.
source
share