本文整理匯總了Java中com.intellij.CommonBundle.getOkButtonText方法的典型用法代碼示例。如果您正苦於以下問題:Java CommonBundle.getOkButtonText方法的具體用法?Java CommonBundle.getOkButtonText怎麽用?Java CommonBundle.getOkButtonText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.intellij.CommonBundle
的用法示例。
在下文中一共展示了CommonBundle.getOkButtonText方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createCenterPanel
import com.intellij.CommonBundle; //導入方法依賴的package包/類
@Override
protected JComponent createCenterPanel() {
final JPanel panel = new JPanel(new BorderLayout(UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP));
myList = new JBList(myNamedElements);
myList.setCellRenderer(new FQNameCellRenderer());
panel.add(ScrollPaneFactory.createScrollPane(myList), BorderLayout.CENTER);
panel.add(new JBLabel(myContainsClassesOnly ?
CodeInsightBundle.message("dialog.paste.on.import.text") :
CodeInsightBundle.message("dialog.paste.on.import.text2"), SMALL, BRIGHTER), BorderLayout.NORTH);
final JPanel buttonPanel = new JPanel(new VerticalFlowLayout());
final JButton okButton = new JButton(CommonBundle.getOkButtonText());
getRootPane().setDefaultButton(okButton);
buttonPanel.add(okButton);
final JButton cancelButton = new JButton(CommonBundle.getCancelButtonText());
buttonPanel.add(cancelButton);
panel.setPreferredSize(JBUI.size(500, 400));
return panel;
}
示例2: OkAction
import com.intellij.CommonBundle; //導入方法依賴的package包/類
protected OkAction() {
super(CommonBundle.getOkButtonText());
putValue(DEFAULT_ACTION, Boolean.TRUE);
}
示例3: getOkButtonText
import com.intellij.CommonBundle; //導入方法依賴的package包/類
protected String getOkButtonText() {
return CommonBundle.getOkButtonText();
}