600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > java 实现电子签名_java swing实现手写板电子签名系统 | 学步园

java 实现电子签名_java swing实现手写板电子签名系统 | 学步园

时间:2023-09-01 11:19:11

相关推荐

java 实现电子签名_java swing实现手写板电子签名系统 | 学步园

java swing实现手写板电子签名系统

支持 手写板 ,触摸屏电脑,支持压强 压感效果.........................

部分代码 MyLeftPanel.java

public void paintComponent(Graphics g)

{

super.paintComponent(g);

int height=getHeight();

int width=getWidth();

ImageIcon imageIcon;

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_02.gif"));

MyUIUtils.DrawBufferedImageCutFillH(g, 0, 0, 26, height,imageIcon.getImage(),null);

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_03.gif"));

MyUIUtils.DrawBufferedImageCutFillW(g,26,0,width-26,8, imageIcon.getImage(), null);//上 完

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_07.gif"));

MyUIUtils.DrawBufferedImageCutFillH(g,width-9, 8,9,height-8,imageIcon.getImage(), null);//右 完

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_16.gif"));

MyUIUtils.DrawBufferedImageCutFillW(g,26 , height-9,width-26-9,9, imageIcon.getImage(),null);//下 完

this.mySurface1.setBounds(26, 8, width-26-9, height-8-9);//完

imageIcon=null;

}

部分代码 MyRightPanel.java

public void paintComponent(Graphics g)

{

super.paintComponent(g);

//int height=getHeight();

//int width=getWidth();

int h2=53;

ImageIcon imageIcon;

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_04.gif"));

g.drawImage(imageIcon.getImage(), 0, 0,285,117, null);//最上 完

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_08.gif"));

g.drawImage(imageIcon.getImage(), 0, 117,25,308, null);//左边 完

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_11.gif"));

g.drawImage(imageIcon.getImage(), 25, 117,238,h2+74+h2+75+h2, null);

//imageIcon=new ImageIcon(getClass().getResource("E-Signature_13.gif"));

//g.drawImage(imageIcon.getImage(), 0, 0,238,75,this);

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_10.gif"));

g.drawImage(imageIcon.getImage(), 25+238, 117,22,308, null);//右边 完

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_05.gif"));

g.drawImage(imageIcon.getImage(), 285, 0,18,904, null);//最右边 完

imageIcon=new ImageIcon(getClass().getResource("Images/E-Signature_15.gif"));

g.drawImage(imageIcon.getImage(), 0, 285+117,285,479, null);//最下

imageIcon=null;

}

程序算简单的啦。。。手写板 使用了开源的Jpen驱动。。支持全部手写板硬件。。。

支持 手写板 ,触摸屏电脑,支持压强 压感效果.........................

难点是美工给的图片的重绘和整合和切割。

电子手写板签名。。随心所欲。。。。。有问题的话 QQ1163551688联系我。。

--------------------------------------------------------------------------------------------

贴图说话。。。。

完。。。。难点是美工给的图片的重绘和整合和切割。。。。。。。。。。。。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。