本文整理了Java中javax.swing.UIManager.getString()
方法的一些代码示例,展示了UIManager.getString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.getString()
方法的具体详情如下:
包路径:javax.swing.UIManager
类名称:UIManager
方法名:getString
暂无
代码示例来源:origin: bobbylight/RSyntaxTextArea
@Override
public String getRedoPresentationName() {
return UIManager.getString("AbstractUndoableEdit.redoText");
}
代码示例来源:origin: bobbylight/RSyntaxTextArea
@Override
public String getUndoPresentationName() {
return UIManager.getString("AbstractUndoableEdit.undoText");
}
代码示例来源:origin: org.netbeans.api/org-openide-awt
@Override
public String getUndoPresentationName() {
// The following code does an original code of: return this.canUndo() ? super.getUndoPresentationName() : "";
if (canUndo()) {
// UndoManager.getUndoPresentationName() follows
if (inProgress) {
if (canUndo()) {
return editToBeUndone().getUndoPresentationName();
} else {
return UIManager.getString("AbstractUndoableEdit.undoText");
}
} else {
UndoableEdit last = lastEdit();
if (last != null) {
return last.getUndoPresentationName();
} else {
String name = getPresentationName();
if (!"".equals(name)) {
name = UIManager.getString("AbstractUndoableEdit.undoText")
+ " " + name;
} else {
name = UIManager.getString("AbstractUndoableEdit.undoText");
}
return name;
}
}
} else {
return "";
}
}
代码示例来源:origin: org.netbeans.api/org-openide-awt
@Override
public String getRedoPresentationName() {
// The following code does an original code of: return this.canRedo() ? super.getRedoPresentationName() : "";
if (canRedo()) {
// UndoManager.getRedoPresentationName() follows
UndoableEdit last = lastEdit();
if (last != null) {
if (inProgress) {
if (canRedo()) {
return editToBeRedone().getRedoPresentationName();
} else {
return UIManager.getString("AbstractUndoableEdit.redoText");
}
} else {
return super.getRedoPresentationName();
}
} else {
String name = getPresentationName();
if (!"".equals(name)) {
name = UIManager.getString("AbstractUndoableEdit.redoText")
+ " " + name;
} else {
name = UIManager.getString("AbstractUndoableEdit.redoText");
}
return name;
}
} else {
return "";
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime
private static String getIconPath() {
String iconPath = UIManager.getString(DEFAULT_ICON_PATH_PROPERTY);
if (iconPath == null) {
iconPath = DEFAULT_ICON_PATH;
} else {
if (!iconPath.endsWith("/")) {
iconPath += "/";
}
}
return iconPath;
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-runtime
private static String getIconPath() {
String iconPath = UIManager.getString(DEFAULT_ICON_PATH_PROPERTY);
if (iconPath == null) {
iconPath = DEFAULT_ICON_PATH;
} else {
if (!iconPath.endsWith("/")) {
iconPath += "/";
}
}
return iconPath;
}
代码示例来源:origin: org.nuiton/nuiton-widgets
/**
* Constructs a <code>UIFSplitPane</code> configured to arrange the child
* components side-by-side horizontally with no continuous layout, using two
* buttons for the components.
*/
public UIFSplitPane() {
this(JSplitPane.HORIZONTAL_SPLIT, false, new JButton(UIManager
.getString("SplitPane.leftButtonText")), new JButton(UIManager
.getString("SplitPane.rightButtonText")));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-api
private static String getIconPath() {
String iconPath = UIManager.getString(DEFAULT_ICON_PATH_PROPERTY);
if (iconPath == null) {
iconPath = DEFAULT_ICON_PATH;
} else {
if (!iconPath.endsWith("/")) {
iconPath += "/";
}
}
return iconPath;
}
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
/**
* Constructs a <code>UIFSplitPane</code> configured to arrange the child
* components side-by-side horizontally with no continuous
* layout, using two buttons for the components.
*/
public UIFSplitPane() {
this(JSplitPane.HORIZONTAL_SPLIT, false,
new JButton(UIManager.getString("SplitPane.leftButtonText")),
new JButton(UIManager.getString("SplitPane.rightButtonText")));
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
/**
* Constructs a <code>UIFSplitPane</code> configured to arrange the child
* components side-by-side horizontally with no continuous layout, using two
* buttons for the components.
*/
public UIFSplitPane() {
this(JSplitPane.HORIZONTAL_SPLIT, false, new JButton(UIManager
.getString("SplitPane.leftButtonText")), new JButton(UIManager
.getString("SplitPane.rightButtonText")));
}
代码示例来源:origin: jawi/ols
/**
* @return the alignment for the annotations, never <code>null</code>.
*/
public SignalAlignment getAnnotationAlignment()
{
String alignment = UIManager.getString( SIGNALVIEW_ANNOTATION_ALIGNMENT );
if ( alignment == null )
{
alignment = "CENTER";
}
return SignalAlignment.valueOf( alignment );
}
代码示例来源:origin: net.sf.doolin/doolin-gui
@Override
protected String getActionText(GUIEditManager editManager) {
if (editManager.canRedo()) {
return String.format("%s %s", UIManager
.getString("AbstractUndoableEdit.undoText"), editManager
.getRedoDisplayName());
} else {
return UIManager.getString("AbstractUndoableEdit.undoText");
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public CloseAction()
{
super(
UIManager.getString("MetalTitlePane.closeTitle", getLocale()));
}
代码示例来源:origin: net.sf.doolin/doolin-gui
@Override
protected String getActionText(GUIEditManager editManager) {
if (editManager.canRedo()) {
return String.format("%s %s", UIManager
.getString("AbstractUndoableEdit.redoText"), editManager
.getRedoDisplayName());
} else {
return UIManager.getString("AbstractUndoableEdit.redoText");
}
}
代码示例来源:origin: com.cedarsoft.commons.swing/common
@Nonnull
@UiThread
public static ResultType showConfirmDialog(@Nullable Component parentComponent, @Nonnull Object message) {
return showConfirmDialog(parentComponent, message, UIManager.getString("OptionPane.titleText"));
}
代码示例来源:origin: org.jdtaus.core/jdtaus-core-utilities
/** Sets the layout and title of the dialog. */
private void initializeDialog()
{
this.getContentPane().setLayout( new GridBagLayout() );
this.setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
this.setTitle( UIManager.getString( "ProgressMonitor.progressText" ) );
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
@Override
protected void failed(Throwable value) {
System.out.flush();
((Throwable) value).printStackTrace();
// FIXME localize this error messsage
JSheet.showMessageSheet(view.getComponent(),
"<html>" + UIManager.getString("OptionPane.css") +
"<b>Couldn't export to the file \"" + URIUtil.getName(uri) + "\".<p>" +
"Reason: " + value,
JOptionPane.ERROR_MESSAGE);
}
代码示例来源:origin: org.java.net.substance/substance
@Override
public AccessibleContext getAccessibleContext() {
AccessibleContext ac = super.getAccessibleContext();
if (uiKey != null) {
ac.setAccessibleName(UIManager.getString(uiKey));
uiKey = null;
}
return ac;
}
}
代码示例来源:origin: org.bidib.org.oxbow/swingbits
@Override
public String getCollapsedLabel() {
return Strings.isEmpty(detailsText[0])
? getOwner().getString(UIManager.getString(IContentDesign.TEXT_MORE_DETAILS)) : detailsText[0];
}
代码示例来源:origin: Exslims/MercuryTrade
private JColorChooser getColorChooser() {
JColorChooser colorChooser = new JColorChooser();
String type = UIManager.getString("ColorChooser.hsvNameText", colorChooser.getLocale());
for (AbstractColorChooserPanel p : colorChooser.getChooserPanels()) {
if (!p.getDisplayName().equals(type)) {
colorChooser.removeChooserPanel(p);
}
}
return colorChooser;
}
内容来源于网络,如有侵权,请联系作者删除!