NetBeans; Button is distorted


I'm new to Java and I have a strange problem. I create a button, and it's squished. Don't know how to fix it. Any ideas?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Send the files.
Try one of this solutions:

1) I hope you have installed the latest version of Netbeans (i.e, 6.8). Click on the Netbeans 6.8 menu "Help -> Check For Updates" and install updates for GUI modules.

2)  Remove and add a new button

3) Remove the button. Add a panel, add the button to the panel.

4) If you are changing the text programatically, it may happens. Try to add spaces instead to setText(");

I hope I could help you.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
5) Run the program. Do not trust so much on the button 'Preview Design".
rossryanAuthor Commented:
Hmm. It appears that if I run 'clean' on the solution, it begins working again properly.

But I have to run it everytime...

I'll post the file later on.
rossryanAuthor Commented:
Yeah, it requires cleaning to work properly. But thanks for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.