javax.swing.JCheckBox.isOpaque()方法的使用及代码示例

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

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

JCheckBox.isOpaque介绍

暂无

代码示例

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

  1. /**
  2. * {@inheritDoc} <p>
  3. *
  4. * Overridden to return false if painting flag is true.<p>
  5. *
  6. */
  7. @Override
  8. public boolean isOpaque() {
  9. if (fakeTransparency) {
  10. return false;
  11. }
  12. return super.isOpaque();
  13. }

代码示例来源:origin: khuxtable/seaglass

  1. /**
  2. * @see javax.swing.JComponent#isOpaque()
  3. */
  4. public boolean isOpaque() {
  5. return isRowSelected ? true : super.isOpaque();
  6. }
  7. }

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

  1. /**
  2. * {@inheritDoc} <p>
  3. *
  4. * Overridden to return false if painting flag is true.<p>
  5. *
  6. */
  7. @Override
  8. public boolean isOpaque() {
  9. if (fakeTransparency) {
  10. return false;
  11. }
  12. return super.isOpaque();
  13. }

代码示例来源:origin: org.swinglabs.swingx/swingx-core

  1. /**
  2. * {@inheritDoc} <p>
  3. *
  4. * Overridden to return false if painting flag is true.<p>
  5. *
  6. */
  7. @Override
  8. public boolean isOpaque() {
  9. if (fakeTransparency) {
  10. return false;
  11. }
  12. return super.isOpaque();
  13. }

代码示例来源:origin: org.swinglabs.swingx/swingx-all

  1. /**
  2. * {@inheritDoc} <p>
  3. *
  4. * Overridden to return false if painting flag is true.<p>
  5. *
  6. */
  7. @Override
  8. public boolean isOpaque() {
  9. if (fakeTransparency) {
  10. return false;
  11. }
  12. return super.isOpaque();
  13. }

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spellchecker

  1. @Override
  2. public boolean isOpaque () {
  3. Color back = getBackground ();
  4. Component p = getParent ();
  5. if (p != null) {
  6. p = p.getParent ();
  7. }
  8. // p should now be the JList.
  9. boolean colorMatch = (back != null) && (p != null) &&
  10. back.equals (p.getBackground ()) &&
  11. p.isOpaque ();
  12. return !colorMatch && super.isOpaque ();
  13. }

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

  1. /**
  2. * Overridden for performance reasons.
  3. * <p>
  4. * {@inheritDoc}
  5. */
  6. @Override
  7. public boolean isOpaque() {
  8. Color back = getBackground();
  9. Component p = getParent();
  10. if (p != null) {
  11. p = p.getParent();
  12. }
  13. // p should now be the JTable.
  14. boolean colorMatch = (back != null) && (p != null)
  15. && back.equals(p.getBackground()) && p.isOpaque();
  16. return !colorMatch && super.isOpaque();
  17. }

代码示例来源:origin: org.bidib.org.oxbow/swingbits

  1. /**
  2. * @return true if the background is opaque and differs from the JList's background; false otherwise
  3. */
  4. @Override
  5. public boolean isOpaque() {
  6. Color back = getBackground();
  7. Component p = getParent();
  8. if (p != null) {
  9. p = p.getParent();
  10. }
  11. // p should now be the JList.
  12. boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
  13. return !colorMatch && super.isOpaque();
  14. }

代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-misc-swing

  1. /**
  2. * Overridden for performance reasons.
  3. */
  4. @Override
  5. public boolean isOpaque() {
  6. Color back = getBackground();
  7. Component list = getParent();
  8. if (list != null) {
  9. list = list.getParent();
  10. }
  11. boolean colorMatch = (back != null) && (list != null)
  12. && back.equals(list.getBackground()) && list.isOpaque();
  13. return !colorMatch && super.isOpaque();
  14. }

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

  1. /**
  2. * @return true if the background is opaque and differs from the JList's background; false otherwise
  3. */
  4. @Override
  5. public boolean isOpaque() {
  6. Color back = getBackground();
  7. Component p = getParent();
  8. if (p != null) {
  9. p = p.getParent();
  10. }
  11. // p should now be the JList.
  12. boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
  13. return !colorMatch && super.isOpaque();
  14. }

代码示例来源:origin: eugener/oxbow

  1. /**
  2. * @return true if the background is opaque and differs from the JList's background; false otherwise
  3. */
  4. @Override
  5. public boolean isOpaque() {
  6. Color back = getBackground();
  7. Component p = getParent();
  8. if (p != null) {
  9. p = p.getParent();
  10. }
  11. // p should now be the JList.
  12. boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
  13. return !colorMatch && super.isOpaque();
  14. }

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra

  1. /**
  2. * @return true if the background is opaque and differs from the JList's background; false otherwise
  3. */
  4. @Override
  5. public boolean isOpaque() {
  6. Color back = getBackground();
  7. Component p = getParent();
  8. if (p != null) {
  9. p = p.getParent();
  10. }
  11. // p should now be the JList.
  12. boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
  13. return !colorMatch && super.isOpaque();
  14. }

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

  1. /**
  2. * Overridden for performance reasons.
  3. * <p>
  4. * {@inheritDoc}
  5. */
  6. @Override
  7. public boolean isOpaque() {
  8. Color back = getBackground();
  9. Component p = getParent();
  10. if (p != null) {
  11. p = p.getParent();
  12. }
  13. // p should now be the JTable.
  14. boolean colorMatch = (back != null) && (p != null)
  15. && back.equals(p.getBackground()) && p.isOpaque();
  16. return !colorMatch && super.isOpaque();
  17. }

相关文章

JCheckBox类方法