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

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

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

JTextArea.getBounds介绍

暂无

代码示例

代码示例来源:origin: bobbylight/RSyntaxTextArea

visible.y = r.y - (visible.height - r.height) / 2;
Rectangle bounds = textArea.getBounds();
Insets i = textArea.getInsets();
bounds.x = i.left;

代码示例来源:origin: igniterealtime/Spark

@Override
  public void run() {
    //scrolls scrollPane to top
    panel.scrollRectToVisible(versionField.getBounds());           
    
    // info that certificate is distrusted
    if ((      reason == CertificateDialogReason.ADD_CERTIFICATE
        || reason == CertificateDialogReason.ADD_ID_CERTIFICATE
        || reason == CertificateDialogReason.ADD_CERTIFICATE_FROM_CONNECTION) && !certModel.isValid()) {
      JOptionPane.showMessageDialog(null, Res.getString("dialog.certificate.is.distrusted"));
    }
  }
});

代码示例来源:origin: com.fifesoft/rsyntaxtextarea

visible.y = r.y - (visible.height - r.height) / 2;
Rectangle bounds = textArea.getBounds();
Insets i = textArea.getInsets();
bounds.x = i.left;

相关文章

JTextArea类方法