本文整理了Java中javax.swing.JSplitPane.paint()
方法的一些代码示例,展示了JSplitPane.paint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSplitPane.paint()
方法的具体详情如下:
包路径:javax.swing.JSplitPane
类名称:JSplitPane
方法名:paint
暂无
代码示例来源:origin: antlr/antlrworks
@Override
public void paint(Graphics graphics) {
if(!isPainted) {
super.setDividerLocation(proportional);
isPainted = true;
//doLayout();
}
super.paint(graphics);
}
代码示例来源:origin: apache/ctakes
/**
* If this is the first paint, set the divider location first. Fixes a bug (imo) in Java.
* {@inheritDoc}
*/
@Override
public void paint( final Graphics g ) {
synchronized ( LOCKER ) {
if ( !_isLocationSet ) {
if ( _pixelLocation > 0 ) {
super.setDividerLocation( _pixelLocation );
} else if ( _proportionalLocation > 0 ) {
super.setDividerLocation( _proportionalLocation );
}
_isLocationSet = true;
}
super.paint( g );
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void paint(Graphics _g)
{
BuLib.setAntialiasing(this,_g);
super.paint(_g);
}
}
代码示例来源:origin: org.bidib.jbidib.com.vldocking/vldocking
/** overriden for a bug workaround reason */
public void paint(Graphics g) {
if(! isPainted) {
isPainted = true;
if(hasProportionalLocation) {
setDividerLocation(proportionalLocation);
doLayout();
}
}
super.paint(g);
}
代码示例来源:origin: net.java.abeille/abeille
public void paint(Graphics g) {
if (m_firsttime) {
m_firsttime = false;
if (m_idivlocation < 0)
setDividerLocation(m_divlocation);
else
setDividerLocation(m_idivlocation);
}
super.paint(g);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui
public void paint(Graphics g)
{
if(isPainted>0 && isValid() && isVisible())
{
// if(hasLocation)
// {
// System.out.println("loc: "+location);
// super.setDividerLocation(location);
// }
// else if(hasProportionalLocation)
{
// System.out.println("proploc: "+proportionalLocation);
super.setDividerLocation(proportionalLocation);
}
isPainted--;
}
super.paint(g);
}
内容来源于网络,如有侵权,请联系作者删除!