I have developed a calculator gui using netbeans. I've a decimal button which i want to be pressed only once. Is there anything like single selection for jButton?

I don't know of any such standard component, but you could simply disable the button in its actionPerformed listener to stop it being triggered again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.