本文整理了Java中javax.swing.JFileChooser.getAccessibleContext()
方法的一些代码示例,展示了JFileChooser.getAccessibleContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.getAccessibleContext()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:getAccessibleContext
暂无
代码示例来源:origin: org.netbeans.api/org-openide-filesystems
chooser.getAccessibleContext().setAccessibleDescription(aDescription);
代码示例来源:origin: EvoSuite/evosuite
@Override
public AccessibleContext getAccessibleContext() {
return super.getAccessibleContext();
}
代码示例来源:origin: org.gephi/directory-chooser
@Override
public String getDialogTitle(JFileChooser fc) {
String title = super.getDialogTitle(fc);
fc.getAccessibleContext().setAccessibleDescription(title);
return title;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-jboss4
private JFileChooser getJFileChooser(){
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle(NbBundle.getMessage(AddServerLocationVisualPanel.class, "LBL_ChooserName")); //NOI18N
chooser.setDialogType(JFileChooser.CUSTOM_DIALOG);
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setApproveButtonMnemonic("Choose_Button_Mnemonic".charAt(0)); //NOI18N
chooser.setMultiSelectionEnabled(false);
chooser.setApproveButtonToolTipText(NbBundle.getMessage(AddServerLocationVisualPanel.class, "LBL_ChooserName")); //NOI18N
chooser.getAccessibleContext().setAccessibleName(NbBundle.getMessage(AddServerLocationVisualPanel.class, "LBL_ChooserName")); //NOI18N
chooser.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(AddServerLocationVisualPanel.class, "LBL_ChooserName")); //NOI18N
// set the current directory
chooser.setSelectedFile(new File(locationTextField.getText().trim()));
return chooser;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-jboss4
private JFileChooser getJFileChooser(){
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("LBL_Chooser_Name"); //NOI18N
chooser.setDialogType(JFileChooser.CUSTOM_DIALOG);
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setApproveButtonMnemonic("Choose_Button_Mnemonic".charAt(0)); //NOI18N
chooser.setMultiSelectionEnabled(false);
chooser.addChoosableFileFilter(new dirFilter());
chooser.setAcceptAllFileFilterUsed(false);
chooser.setApproveButtonToolTipText("LBL_Chooser_Name"); //NOI18N
chooser.getAccessibleContext().setAccessibleName("LBL_Chooser_Name"); //NOI18N
chooser.getAccessibleContext().setAccessibleDescription("LBL_Chooser_Name"); //NOI18N
return chooser;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81
static void decorateChooser(JFileChooser chooser,String fname,String title) {
chooser.setDialogTitle(title); //NOI18N
chooser.setDialogType(JFileChooser.CUSTOM_DIALOG);
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setApproveButtonMnemonic(NbBundle.getMessage(Util.class,
"Choose_Button_Mnemonic").charAt(0)); //NOI18N
chooser.setMultiSelectionEnabled(false);
chooser.setAcceptAllFileFilterUsed(false);
chooser.setApproveButtonToolTipText(NbBundle.getMessage(Util.class,
"LBL_Chooser_Name")); //NOI18N
chooser.getAccessibleContext().
setAccessibleName(NbBundle.getMessage(Util.class,
"LBL_Chooser_Name")); //NOI18N
chooser.getAccessibleContext().
setAccessibleDescription(NbBundle.getMessage(Util.class,
"LBL_Chooser_Name")); //NOI18N
if (null != fname && fname.length() > 0) {
File sel = new File(fname);
if (sel.isDirectory())
chooser.setCurrentDirectory(sel);
else
chooser.setSelectedFile(sel);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-core
chooser.getAccessibleContext().setAccessibleDescription( getString("ACSD_FileEditor") );
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-webui-designtime
gridBagConstraints.weighty = 1.0;
filePanel.add(imageFileChooser, gridBagConstraints);
imageFileChooser.getAccessibleContext().setAccessibleName(java.util.ResourceBundle.getBundle("org/netbeans/modules/visualweb/web/ui/dt/component/customizers/Bundle-DT").getString("ACC_FileChooserName"));
imageFileChooser.getAccessibleContext().setAccessibleDescription(java.util.ResourceBundle.getBundle("org/netbeans/modules/visualweb/web/ui/dt/component/customizers/Bundle-DT").getString("ACC_FileChooserPaneDesc"));
代码示例来源:origin: es.gob.afirma/afirma-ui-core-jse
fileChooser.getAccessibleContext().setAccessibleName(JSEUIMessages.getString("JSEUIManager.81")); //$NON-NLS-1$
fileChooser.getAccessibleContext().setAccessibleDescription(JSEUIMessages.getString("JSEUIManager.82")); //$NON-NLS-1$
fileChooser.setToolTipText(JSEUIMessages.getString("JSEUIManager.81")); //$NON-NLS-1$
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
String title = chooser.getDialogTitle();
if (chooser instanceof JFileChooser) {
((JFileChooser) chooser).getAccessibleContext().setAccessibleDescription(title);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javafx2-project
jarFileChooser.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (JFXPreloaderChooserWizardPanel2.class, "CTL_SelectJAR_Step")); // NOI18N
代码示例来源:origin: dcaoyuan/nbscala
chooser.setDialogTitle( NbBundle.getMessage( AntArtifactChooser.class, "LBL_AACH_Title" ) ); // NOI18N
chooser.setApproveButtonText( NbBundle.getMessage( AntArtifactChooser.class, "LBL_AACH_SelectProject" ) ); // NOI18N
chooser.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (AntArtifactChooser.class,"AD_AACH_SelectProject"));
AntArtifactChooser accessory = new AntArtifactChooser( artifactTypes, chooser );
chooser.setAccessory( accessory );
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
chooser.getAccessibleContext().setAccessibleDescription(title);
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
((JFileChooser) chooser).getAccessibleContext().setAccessibleDescription(title);
内容来源于网络,如有侵权,请联系作者删除!