javax.swing.JButton.getComponentOrientation()方法的使用及代码示例

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

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

JButton.getComponentOrientation介绍

暂无

代码示例

代码示例来源:origin: com.fifesoft.rtext/fife.common

  1. /**
  2. * Sets the icon to use for the "forward" button.
  3. *
  4. * @param icon The icon to use. If <code>null</code>, no icon
  5. * will be used.
  6. * @see #setBackButtonIcon
  7. */
  8. public void setForwardButtonIcon(Icon icon) {
  9. if (forwardButton.getComponentOrientation().isLeftToRight()) {
  10. forwardButton.setIcon(icon);
  11. }
  12. else {
  13. backButton.setIcon(icon);
  14. }
  15. }

代码示例来源:origin: com.fifesoft.rtext/fife.common

  1. /**
  2. * Sets the icon to use for the "back" button.
  3. *
  4. * @param icon The icon to use. If <code>null</code>, no icon
  5. * will be used.
  6. * @see #setForwardButtonIcon
  7. */
  8. public void setBackButtonIcon(Icon icon) {
  9. if (backButton.getComponentOrientation().isLeftToRight()) {
  10. backButton.setIcon(icon);
  11. }
  12. else {
  13. forwardButton.setIcon(icon);
  14. }
  15. }

代码示例来源:origin: com.github.insubstantial/substance

  1. @Override
  2. public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
  3. return new IconUIResource(SubstanceImageCreator
  4. .getSearchIcon(15, scheme, pickerButton
  5. .getComponentOrientation()
  6. .isLeftToRight()));
  7. }
  8. }, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: com.github.insubstantial/substance

  1. @Override
  2. public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
  3. return new IconUIResource(SubstanceImageCreator
  4. .getSearchIcon(15, scheme, pickerButton
  5. .getComponentOrientation()
  6. .isLeftToRight()));
  7. }
  8. }, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: org.java.net.substance/substance

  1. @Override
  2. public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
  3. return new IconUIResource(SubstanceImageCreator
  4. .getSearchIcon(15, scheme, pickerButton
  5. .getComponentOrientation()
  6. .isLeftToRight()));
  7. }
  8. }, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: org.java.net.substance/substance

  1. @Override
  2. public Icon getColorSchemeIcon(SubstanceColorScheme scheme) {
  3. return new IconUIResource(SubstanceImageCreator
  4. .getSearchIcon(15, scheme, pickerButton
  5. .getComponentOrientation()
  6. .isLeftToRight()));
  7. }
  8. }, "ColorChooser.colorPickerIcon"));

代码示例来源:origin: org.jspresso.framework/jspresso-swing-components

  1. locale) + "<<");
  2. detailsPanel.applyComponentOrientation(detailsButton
  3. .getComponentOrientation());
  4. detailsPane.setCaretPosition(0);
  5. setSize(getWidth(), height);

代码示例来源:origin: org.jspresso/jspresso-swing-components

  1. + "<<");
  2. detailsPanel.applyComponentOrientation(detailsButton
  3. .getComponentOrientation());
  4. detailsPane.setCaretPosition(0);
  5. setSize(getWidth(), height);

代码示例来源:origin: com.fifesoft.rtext/fife.common

  1. File loc = (File)b.getClientProperty(PROPERTY_LOCATION);
  2. addItemsFor(loc.getParentFile(), popup);
  3. popup.applyComponentOrientation(b.getComponentOrientation());
  4. popup.addPopupMenuListener(new BreadcrumbPopupMenuListener(backButton));
  5. displayRelativeTo(popup, backButton);

相关文章

JButton类方法