javax.swing.JTextArea.validate()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中javax.swing.JTextArea.validate()方法的一些代码示例,展示了JTextArea.validate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.validate()方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:validate

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();
 }
}

相关文章

JTextArea类方法