private DialogDescriptor getNetworkProblemDescriptor() {
DialogDescriptor descriptor = getProblemDesriptor(NbBundle.getMessage(ProblemPanel.class, "CTL_ShowProxyOptions"));
JButton showProxyOptions = new JButton ();
Mnemonics.setLocalizedText (showProxyOptions, NbBundle.getMessage(ProblemPanel.class, "CTL_ShowProxyOptions"));
showProxyOptions.getAccessibleContext ().setAccessibleDescription (NbBundle.getMessage(ProblemPanel.class, "ACSD_ShowProxyOptions"));
showProxyOptions.addActionListener (new ActionListener () {
@Override
public void actionPerformed (ActionEvent arg0) {
OptionsDisplayer.getDefault ().open ("General"); // NOI18N
}
});
if (isWarning) {
descriptor.setAdditionalOptions(new Object [] {showProxyOptions});
}
return descriptor;
}
ProblemPanel.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录