sort = new SortPrompt(window, this);
sort.pack();
sort.setVisible(true);
} else if (arg0.getActionCommand().equals("Query Builder")) {
if (db.isConnected()) {
query = new QueryBuilderPrompt(db, this);
query.pack();
query.setVisible(true);
} else {
String errorQueryString = "You must connect to a CAS File Manager before using the Query Builder.";
JOptionPane.showMessageDialog(window, errorQueryString, "Disconnected",