Results 1 to 4 of 4
Thread: Question about a project
- 11-05-2010, 12:19 AM #1
Member
- Join Date
- Sep 2010
- Posts
- 4
- Rep Power
- 0
Question about a project
Hi guys. I have a project in college where I have to write a small menu-driven GUI Application which manipulates two instantiable classes.
I have no problems writing the two classes. The problem I have is actually implementing them in a GUI. Will the code for my GUI be in another class, like a "Tester Class"? :confused::confused:Java Code:Write a small menu-driven GUI application which manipulates two different instantiable classes written by you. Each instantiable class should model a different aspect of a system (for example a Book and a Student, as part of a Library system). Your system should allow you to add, display and hold in memory in an appropriate data structure instances of each instantiable class, save the data structure to file and load it up again. Your system should allow the user to process at least one transaction involving an object from each class (eg process the return of a particular Book by a particular Student). Your code should be well-structured, divided into methods so that each method accomplishes one task.
- 11-05-2010, 12:27 AM #2
You should look at Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) for details on a GUI.
However short answer - i always place my gui stuff in a new class which extends JFrame.
However, you dont have to do this, the main class can also extend JFrame.
-
Personally, I think that you should rarely if ever extend JFrame since you're rarely altering the JFrame's behavior. Better to just use a JFrame.
- 11-05-2010, 12:34 AM #4
Member
- Join Date
- Sep 2010
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Adding a project to an existing project
By Seijuro in forum NetBeansReplies: 4Last Post: 08-08-2010, 10:15 AM -
Project Question Urgent?
By newtocs in forum New To JavaReplies: 1Last Post: 10-09-2009, 02:55 PM -
open existing project project ..
By itaipee in forum EclipseReplies: 1Last Post: 12-28-2008, 08:12 PM -
A newbie question: How do I take a J2ME open source and create a project
By Anona in forum CLDC and MIDPReplies: 0Last Post: 09-28-2008, 11:02 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks