在Java中从jpanel或jpanel中显示java中图像的最佳方法 [英] best way to display an image in java from or in jpanel in Java
本文介绍了在Java中从jpanel或jpanel中显示java中图像的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以Java形式或Java中的jpanel显示图像的最佳方式。我的意思是哪些代码更少。
解决方案
我认为它可能是Java Frame而不是Form。最好在jpanel中添加任何组件的JFrame
best way to display an image in java form or in jpanel in Java. i mean which have less code.
解决方案
I think it might be "Java Frame" not "Form".Well it always best practise to add any component in jpanel instead JFrame.
这篇关于在Java中从jpanel或jpanel中显示java中图像的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文