以下の条件をチェックしてダイアログボックスを表示しています
if(query.contains(tab))
{
JOptionPane.showMessageDialog(null,"Owner does not have privileges to access given table");
}
ダイアログボックスが表示され、条件がtrueの場合、それ以降の実行はそこで停止する必要があります。これを行うにはどうすればよいですか?
JOptionPaneはアプリケーションのパフォーマンスを低下させますか?私のアプリケーションはダイアログボックスを表示するのに時間がかかるからです。
編集:
for(int i=0; i<ia.length; i++)
{
tab= ia[i].toString();
if(query.contains(tab))
{
JOptionPane.showMessageDialog(null,"Owner does not have privileges to access given table");
break;
}
}
//rest code