如何在java中打印标签的内容? [英] How to print content of a label in java?
本文介绍了如何在java中打印标签的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个标签,并使用seticon属性为其添加了图像。
现在我想打印那张图片,但我无法打印出来。
I have created a label and added an image to it using the seticon property. Now I want to print that image but I am unable to do so.
我试过.print(Graphics g)方法,但我不知道是什么那个图形??
I tried with .print(Graphics g) method but I dont know what is that graphics??
如果有人可以帮我打印标签,我真的很感激你。
If someone can help me in printing the label, I would be really grateful to you.
谢谢
推荐答案
你应该实现Printable接口
参见例如这里
You should implenent Printable interface see for example here
这篇关于如何在java中打印标签的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文