在按钮上应用图像和文本 [英] applying Image and text on Button
本文介绍了在按钮上应用图像和文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< b>实际上,我是j2me n java的新手,我有一个按钮,希望在该按钮上设置文本和图像,但是我希望文本显示在中间,并且图像以正确的对齐显示,这是必要的,请告诉我该方法很快
感谢n问候</b>
解决方案
-制作按钮
-应用文字
-应用图片
而已.按钮(您可能要使用的按钮)能够显示文本和图像.
如何使用按钮,复选框和单选按钮@ oracle.com上的Java教程 [ ^ ]
<b>Actually I am new to j2me n java I have a button and i wish to set text and image on that but i wish that text is displayed at center and image displyed at right alignment this is necessary please tell me the method very soon
thanks n regards </b>
解决方案
- make a button
- apply a text
- apply an image
that''s it. the push button (which you''re probably going for) is capable to have a text and an image.
How to Use Buttons, Check Boxes, and Radio Buttons @ the java tutorials on oracle.com[^]
这篇关于在按钮上应用图像和文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文