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

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

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

JCheckBox.paintComponent介绍

暂无

代码示例

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

@Override
protected final void paintComponent(Graphics g) {
  super.paintComponent(g);
}

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

@Override
protected final void paintComponent(Graphics g) {
  super.paintComponent(g);
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
protected void paintComponent(Graphics g) {
  if (painter != null) {
    // we have a custom (background) painter
    // try to inject if possible
    // there's no guarantee - some LFs have their own background 
    // handling  elsewhere
    paintComponentWithPainter((Graphics2D) g);
  } else {
    // no painter - delegate to super
    super.paintComponent(g);
  }
}

代码示例来源:origin: tinyMediaManager/tinyMediaManager

@Override
 protected void paintComponent(Graphics g) {
  super.paintComponent(g);

  int textX = 2;

  if (this.hintIcon != null) {
   int iconWidth = hintIcon.getIconWidth();
   int x = getWidth() - dummyInsets.right - iconWidth - 2;
   textX = dummyInsets.right + iconWidth + 4;
   int y = 2;
   hintIcon.paintIcon(this, g, x, y);
  }

  setMargin(new Insets(2, 2, 2, textX));
 }
}

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

super.paintComponent(g);
super.paintComponent(g);

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

super.paintComponent(g);
super.paintComponent(g);

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

super.paintComponent(g);
super.paintComponent(g);

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

super.paintComponent(g);
super.paintComponent(g);

代码示例来源:origin: net.sf.squirrel-sql.plugins/graph

@Override
protected void paintComponent(Graphics g)
 super.paintComponent(g);

相关文章

JCheckBox类方法