}
private void doQuery() {
if(terminology != null){
registerOptions();
QueryTool tools = new QueryTool();
tools.setTerminology(terminology);
JOptionPane.showMessageDialog(frame,tools,"Query "+terminology.getName(),JOptionPane.PLAIN_MESSAGE);
}else{
JOptionPane.showMessageDialog(frame,"No Terminology Selected","Error",JOptionPane.ERROR_MESSAGE);
}
}