开发者

get jButton position "deprecated" function

开发者 https://www.devze.com 2023-03-04 09:44 出处:网络
I just want to ask you for the appropriate function for the button. BY using the function below, Eclipse notifies me that the function is \"deprecated\".

I just want to ask you for the appropriate function for the button. BY using the function below, Eclipse notifies me that the function is "deprecated".

jButton.bounds();

My question to you is what is the right function to use if I w开发者_开发问答ant to get the position of the button?

Thanks in Advance


JButton.getBounds() is what you should be using instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消