本文整理了Java中javax.swing.JCheckBox.isOpaque()
方法的一些代码示例,展示了JCheckBox.isOpaque()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.isOpaque()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:isOpaque
暂无
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
/**
* {@inheritDoc} <p>
*
* Overridden to return false if painting flag is true.<p>
*
*/
@Override
public boolean isOpaque() {
if (fakeTransparency) {
return false;
}
return super.isOpaque();
}
代码示例来源:origin: khuxtable/seaglass
/**
* @see javax.swing.JComponent#isOpaque()
*/
public boolean isOpaque() {
return isRowSelected ? true : super.isOpaque();
}
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
/**
* {@inheritDoc} <p>
*
* Overridden to return false if painting flag is true.<p>
*
*/
@Override
public boolean isOpaque() {
if (fakeTransparency) {
return false;
}
return super.isOpaque();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
/**
* {@inheritDoc} <p>
*
* Overridden to return false if painting flag is true.<p>
*
*/
@Override
public boolean isOpaque() {
if (fakeTransparency) {
return false;
}
return super.isOpaque();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* {@inheritDoc} <p>
*
* Overridden to return false if painting flag is true.<p>
*
*/
@Override
public boolean isOpaque() {
if (fakeTransparency) {
return false;
}
return super.isOpaque();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spellchecker
@Override
public boolean isOpaque () {
Color back = getBackground ();
Component p = getParent ();
if (p != null) {
p = p.getParent ();
}
// p should now be the JList.
boolean colorMatch = (back != null) && (p != null) &&
back.equals (p.getBackground ()) &&
p.isOpaque ();
return !colorMatch && super.isOpaque ();
}
代码示例来源:origin: org.jspresso/jspresso-swing-application
/**
* Overridden for performance reasons.
* <p>
* {@inheritDoc}
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JTable.
boolean colorMatch = (back != null) && (p != null)
&& back.equals(p.getBackground()) && p.isOpaque();
return !colorMatch && super.isOpaque();
}
代码示例来源:origin: org.bidib.org.oxbow/swingbits
/**
* @return true if the background is opaque and differs from the JList's background; false otherwise
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JList.
boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
return !colorMatch && super.isOpaque();
}
代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-misc-swing
/**
* Overridden for performance reasons.
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component list = getParent();
if (list != null) {
list = list.getParent();
}
boolean colorMatch = (back != null) && (list != null)
&& back.equals(list.getBackground()) && list.isOpaque();
return !colorMatch && super.isOpaque();
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets
/**
* @return true if the background is opaque and differs from the JList's background; false otherwise
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JList.
boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
return !colorMatch && super.isOpaque();
}
代码示例来源:origin: eugener/oxbow
/**
* @return true if the background is opaque and differs from the JList's background; false otherwise
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JList.
boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
return !colorMatch && super.isOpaque();
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
/**
* @return true if the background is opaque and differs from the JList's background; false otherwise
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JList.
boolean colorMatch = (back != null) && (p != null) && back.equals(p.getBackground()) && p.isOpaque();
return !colorMatch && super.isOpaque();
}
代码示例来源:origin: org.jspresso.framework/jspresso-swing-application
/**
* Overridden for performance reasons.
* <p>
* {@inheritDoc}
*/
@Override
public boolean isOpaque() {
Color back = getBackground();
Component p = getParent();
if (p != null) {
p = p.getParent();
}
// p should now be the JTable.
boolean colorMatch = (back != null) && (p != null)
&& back.equals(p.getBackground()) && p.isOpaque();
return !colorMatch && super.isOpaque();
}
内容来源于网络,如有侵权,请联系作者删除!