javax.swing.JTree.getAccessibleContext()方法的使用及代码示例

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

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

JTree.getAccessibleContext介绍

暂无

代码示例

代码示例来源:origin: UISpec4J/UISpec4J

private Color getDefaultForegroundColor() {
 AccessibleContext context = jTree.getAccessibleContext();
 if (context instanceof AccessibleComponent) {
  return ((AccessibleComponent)context).getForeground();
 }
 return null;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui

@NbBundle.Messages({"ACSN_ResultPanelTree=Information about passed and failed tests",
"ACSD_ResultPanelTree=Displays in a tree structure information about passed, failed and erroneous tests"})
private void initAccessibility() {
  AccessibleContext accContext = tree.getAccessibleContext();
  accContext.setAccessibleName(Bundle.ACSN_ResultPanelTree());
  accContext.setAccessibleDescription(Bundle.ACSD_ResultPanelTree());
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

public BindingTargetPanel() {
  try {
    jbInit();
  }
  catch (Exception ex) {
    ex.printStackTrace();
  }
  rootNode.setTreeModel(treeModel);
  tree.getAccessibleContext().setAccessibleName(bundle.getMessage("TARGET_BINDING_TREE_ACCESS_NAME"));
  tree.getAccessibleContext().setAccessibleDescription(bundle.getMessage("TARGET_BINDING_TREE_ACCESS_DESC"));
  targetLabel.setLabelFor(tree);
  targetLabel.setDisplayedMnemonic(bundle.getMessage("TARGET_LABEL_DISPLAYED_MNEMONIC").charAt(0));
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-editor

/** This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
  java.awt.GridBagConstraints gridBagConstraints;
  jScrollPane1 = new javax.swing.JScrollPane();
  cfgTree = new javax.swing.JTree();
  setName(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "LBL_Spaces")); // NOI18N
  setOpaque(false);
  setLayout(new java.awt.GridBagLayout());
  cfgTree.setRootVisible(false);
  jScrollPane1.setViewportView(cfgTree);
  cfgTree.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "FmtSpaces.cfgTree.AccessibleContext.accessibleName")); // NOI18N
  cfgTree.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "FmtSpaces.cfgTree.AccessibleContext.accessibleDescription")); // NOI18N
  gridBagConstraints = new java.awt.GridBagConstraints();
  gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
  gridBagConstraints.weightx = 1.0;
  gridBagConstraints.weighty = 1.0;
  add(jScrollPane1, gridBagConstraints);
  jScrollPane1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "FmtSpaces.jScrollPane1.AccessibleContext.accessibleName")); // NOI18N
  jScrollPane1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "FmtSpaces.jScrollPane1.AccessibleContext.accessibleDescription")); // NOI18N
  getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "FmtSpaces.AccessibleContext.accessibleName")); // NOI18N
  getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FmtSpaces.class, "FmtSpaces.AccessibleContext.accessibleDescription")); // NOI18N
}// </editor-fold>//GEN-END:initComponents

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

resourceTree.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org.netbeans.modules.visualweb.propertyeditors.Bundle").getString("UrlPropertyPanel.resourceTree.AccessibleName"));
resourceTree.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org.netbeans.modules.visualweb.propertyeditors.Bundle").getString("UrlPropertyPanel.resourceTree.AccessibleDescription"));

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-beans

myJavaHierarchyTree.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CDIPanel.class, "ACSD_InjectableHierarchy")); // NOI18N

相关文章

JTree类方法