按钮位置随机化 [英] Button location randomization
本文介绍了按钮位置随机化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好我是java的新手并做了一些简单的程序,比如信息输入表格,我想知道setLocation是一个按钮在表格中随机移动的代码是什么。
解决方案
您好我是java的新手并且做了简单的程序,比如信息输入表单,我想知道setLocation是什么代码移动按钮随机通过表格。
你需要更加具体。例如,形式,你的意思是JFrame,JPanel还是HTML表单?
我目前在Jbuilder工作,我试图在mouseEntered下设置它
< blockquote>为什么你想要一个按钮随机移动?如果您是Java新手,我建议您远离GUI程序,直到获得一些编程方法。
Hello I am new to java and doing simple programs such as information input forms, and i was wondering what the code would be to setLocation a button to move randomly through out the form.
解决方案
Hello I am new to java and doing simple programs such as information input forms, and i was wondering what the code would be to setLocation a button to move randomly through out the form.You''ll need to be more specific. e.g by "form" do you mean JFrame, JPanel or an HTML form?
welll i am working in Jbuilder currently, and i am trying to set this up under the mouseEntered
Why do you want a button to move randomly? If you are new to Java, I''d recommend staying away from GUI programs until you get some programming chops.
这篇关于按钮位置随机化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文