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

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

本文整理了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

  1. @Override
  2. protected final void paintComponent(Graphics g) {
  3. super.paintComponent(g);
  4. }

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

  1. @Override
  2. protected final void paintComponent(Graphics g) {
  3. super.paintComponent(g);
  4. }

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

  1. @Override
  2. protected void paintComponent(Graphics g) {
  3. if (painter != null) {
  4. // we have a custom (background) painter
  5. // try to inject if possible
  6. // there's no guarantee - some LFs have their own background
  7. // handling elsewhere
  8. paintComponentWithPainter((Graphics2D) g);
  9. } else {
  10. // no painter - delegate to super
  11. super.paintComponent(g);
  12. }
  13. }

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

  1. @Override
  2. protected void paintComponent(Graphics g) {
  3. super.paintComponent(g);
  4. int textX = 2;
  5. if (this.hintIcon != null) {
  6. int iconWidth = hintIcon.getIconWidth();
  7. int x = getWidth() - dummyInsets.right - iconWidth - 2;
  8. textX = dummyInsets.right + iconWidth + 4;
  9. int y = 2;
  10. hintIcon.paintIcon(this, g, x, y);
  11. }
  12. setMargin(new Insets(2, 2, 2, textX));
  13. }
  14. }

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

  1. super.paintComponent(g);
  2. super.paintComponent(g);

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

  1. super.paintComponent(g);
  2. super.paintComponent(g);

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

  1. super.paintComponent(g);
  2. super.paintComponent(g);

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

  1. super.paintComponent(g);
  2. super.paintComponent(g);

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

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

相关文章

JCheckBox类方法