|
-
Gui Q
Hello all,
I'm stuck on a project. Its Java based, to do GUI's.
I've written some code which details size, colour, labels and buttons, (but i have not yet assigned tasks to each button)
...
import java.awt.*;
class FirstFrame extends Frame
{
FirstFrame()
{
super("Test Frame GUI");
buildGUI();
setSize(200,60);
setVisible(true);
}
private void buildGUI()
{
Panel top = new Panel();
top.setLayout(new BorderLayout());
top.add(new Label("Load File: "),
BorderLayout.WEST);
top.add(new TextField(),
BorderLayout.CENTER);
top.add(new Button("Load"),
BorderLayout.EAST);
add(top, BorderLayout.NORTH);
add(new TextArea(20,50),
BorderLayout.CENTER);
Panel right = new Panel();
right.setLayout(new GridLayout(3,1));
}
}
First problem is, i'm getting the error message,
"Exception in thread "main" java.lang.NoClassDefFoundError: TestFrame"
Can anyone let me know what thats about?
The end result will be that i'll need to set it up to return a Truth Table for a user inputted mathematical equation! If anyone can help out with that as well that be great!
WannaJava
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks