简体   繁体   中英

Checking if a button exists in java

I have some radio buttons and each one of then create a button with the Name "OK", such button is meant to proceed. However, I need to check if the button already exists so the program don't create a copy of the button each time one of the radio buttons is clicked.

在此处输入图片说明

Check by the variable name. It won't allow you to create a variable with the same name...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM