本文整理了Java中javax.swing.JTextArea.validate()
方法的一些代码示例,展示了JTextArea.validate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.validate()
方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:validate
暂无
代码示例来源:origin: net.sf.ingenias/editor
jta.validate();
代码示例来源:origin: protegeproject/swrlapi
private void displaySQWRLResult(@NonNull String queryName, @NonNull SQWRLResult sqwrlResult, long startTime)
throws SQWRLException
{
appendToConsole("See the " + queryName + " tab to review results of the SQWRL query.\n");
appendToConsole("The query took " + (System.currentTimeMillis() - startTime) + " milliseconds. ");
if (sqwrlResult.getNumberOfRows() == 1)
appendToConsole("1 row was returned.\n");
else
appendToConsole("" + sqwrlResult.getNumberOfRows() + " rows were returned.\n");
SQWRLResultView sqwrlResultView;
if (SQWRLQueryControlView.this.sqwrlResultViews.containsKey(queryName)) // Existing result tab found
sqwrlResultView = SQWRLQueryControlView.this.sqwrlResultViews.get(queryName);
else { // Create new result tab
sqwrlResultView = new SQWRLResultView(SQWRLQueryControlView.this.queryEngineModel, queryName, sqwrlResult,
this.sqwrlQueryControlView);
sqwrlResultView.initialize();
SQWRLQueryControlView.this.sqwrlResultViews.put(queryName, sqwrlResultView);
((JTabbedPane)getParent())
.addTab(queryName, null, sqwrlResultView, "SQWRL Result for query '" + queryName + "'");
}
sqwrlResultView.validate();
this.sqwrlQueryControlView.getParent().validate();
this.console.validate();
}
}
内容来源于网络,如有侵权,请联系作者删除!