This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Desktop Application Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Desktop Application Problem" Watch "Java Desktop Application Problem" New topic

Java Desktop Application Problem

Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119

I am building a Java desktop application using Netbeans.

In my application, I dragged and dropped several buttons onto the panel. Everything is ok.

But yesterday, I dragged a button onto the panel in design view and it is fine. But when I run the application in Netbeans, the button is very small and the button text is not displayed.

I have tried resizing the button in design view but the button text is still not displayed. I have tried to delete this button and drag and drop another button but it is still the same. I have also tried dragging and dropping other swing controls like labels but they are not displayed.

Can anyone help?

Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Ok. I found the solution.

I clicked on "Clean and Build" and now it is ok in Netbeans and when I run it in javaw.

Thanks for reading.

subject: Java Desktop Application Problem
Similar Threads
help designer mvc
Designing GUIs with cross-platform look and feel
textField in a Web App
creating a java(having GUI) project
Adding an Image to JPanel using NetBeans IDE