My goal is to display a series of menus which the user can select and input values to receive an end value. So I made the code for it and implemented GUI codes, and everything seems to work fine within NetBeans. Except, when I go to run the program, this is what happens:http://farm7.static.flickr.com/6153/...5a7f6a08_b.jpg

Both the GUI window shows up and the desktop application window.

(1) How do I get what I have in the GUI window to appear in the desktop application window?

As Kevin has suggested. If you are fairly new to Java, you should not use a GUI builder like NetBeans at the first place. An IDE could help a lot for the beginners, as it does many things under the hood, you never know the details, how and why it is this and it isn't that... You will become lack of fundamental knowledge quickly and make yourself depends on the IDE.

So you should learn to read the Tutorial and code examples by a simple text editor to familiarize yourself with the basics.

For experienced codes, they cannot live without an IDE because it helps them to be more productivity.

I'm not sure what you mean by GUI builder but I hard coded everything. The screen in the picture is what popped up after I ran the code.

October 13th, 2011, 11:34 AM

KevinWorkman

Re: Creating a Java Desktop Application in NetBeans

Quote:

Originally Posted by cslx99

I'm not sure what you mean by GUI builder but I hard coded everything. The screen in the picture is what popped up after I ran the code.

Netbeans comes with a GUI builder where you can drag-and-drop controls onto a frame. Usually, it causes more trouble than its worth for new programmers, and it makes it really hard to help people. I see the gui builder in your background, so I assumed you were using it.

But if you coded it by hand, I'd recommend throwing together an SSCCE that demonstrates the problem, and we'll be happy to help you.

December 2nd, 2012, 12:25 AM

yiting

Re: Creating a Java Desktop Application in NetBeans

The photo is unavailable maybe caused by the path you "called" the image? Check your path.