Help - Search - Members - Calendar
Full Version: How To Make A Jpanel
BleepingComputer.com > Software > Programming
   
Melon109
I have Java with Netbeans 5.0. When i try to enter code to create a JPanel, many, many errors come up, and in the end it is a total distaster. Can someone please guide me though the procces of how to make a simple JPanel with Netbeans, or at least where to put the code? I have tried to put it in files in projects, but there are so many, and I don't have that much time! Some one please help me!

Melon109
groovicus
It would be helpful if we could see your code. I am not going to do anybody's homework for them, unless you are willing to do my linear algebra for me. smile.gif

When you create a project in Netbeans, it will open a panel on the left side with your project. Onbe of the tabs will be labeled 'files'. If you click on that one, and then expand your project, you will see a directory called src (which stands for source). That is where your source code will go. All you really need to do is right click on the project name, select New, then class (or Main Class, depending on what you are doing), then give it a proper name. Once you do that, the project will open in the editor, and you can go about creating your project.

Post up your code so that we can see what you are doing. It would also be helpful if you stated what sort of errors you were getting.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.