本文整理了Java中javax.swing.JToggleButton.paintComponent()
方法的一些代码示例,展示了JToggleButton.paintComponent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JToggleButton.paintComponent()
方法的具体详情如下:
包路径:javax.swing.JToggleButton
类名称:JToggleButton
方法名:paintComponent
暂无
代码示例来源:origin: JetBrains/jediterm
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
}
代码示例来源:origin: com.jalalkiswani/jk-desktop
@Override
public void paintComponent(final Graphics g) {
super.paintComponent(g);
// if (isSelected()) {
// int w = getWidth();
// int h = getHeight();
// g.setColor(getBackground()); // selected color
// g.fillRect(0, 0, w, h);
// g.setColor(getForeground()); // selected foreground color
// g.drawString(getText(), (w -
// g.getFontMetrics().stringWidth(getText())) / 2 + 1, (h +
// g.getFontMetrics().getAscent()) / 2 - 1);
// }
}
代码示例来源:origin: org.bidib.org.oxbow/swingbits
@Override
protected void paintComponent(Graphics g) {
if ( painter != null ) painter.paint(g, this);
super.paintComponent(g);
}
代码示例来源:origin: eugener/oxbow
@Override
protected void paintComponent(Graphics g) {
if ( painter != null ) painter.paint(g, this);
super.paintComponent(g);
}
代码示例来源:origin: org.cytoscape/vizmap-gui-impl
@Override
protected void paintComponent(final Graphics g) {
VizMapperButton.paintBackground(g, this);
super.paintComponent(g);
}
}
代码示例来源:origin: antlr/antlrworks
@Override
protected void paintComponent(Graphics g) {
if(isEnabled()) {
if(inside) {
g.setColor(Color.lightGray);
g.fillRect(0, 0, getWidth(), getHeight());
g.setColor(Color.darkGray);
g.drawRect(0, 0, getWidth()-1, getHeight()-1);
} else if(isSelected()) {
g.setColor(Color.lightGray);
g.fillRect(0, 0, getWidth(), getHeight());
g.setColor(Color.darkGray);
g.drawRect(0, 0, getWidth()-1, getHeight()-1);
}
}
super.paintComponent(g);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void paintComponent(Graphics _g)
{
//ButtonModel model=getModel();
if(isOpaque()&&
model.isRollover()&&
!model.isSelected()&&
!(model.isPressed()&&model.isArmed())&&
BuLib.isMetal())
{
_g.setColor(getBackground());
_g.fillRect(0,0,getWidth(),getHeight());
}
super.paintComponent(_g);
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-editor
super.paintComponent( g );
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
super.paintComponent( g );
内容来源于网络,如有侵权,请联系作者删除!