Java Graphical user interface

Java Graphical user interface

Hi, guys. I'm christina, need help with my home work

Task 1: GUI Design and Implementation

The user requirements of your Java quiz GUI application are specified by the following program flow in two stages.

Stage 1 ‚?? Registration Screen:

Fig 1 is the screen of the GUI in first stage. Your program window should be located at the centre of the screen when it starts. It provides an interface to register the student name. In this screen, there should be one tool bar at the top containing a ‚??Score‚?? button, an ‚??Exit‚?? button and an area for student name registration. There should be sufficient space between buttons and the registration area. The registration area should contain a label to guide student to input the name in a text field, a text field to input the name and a ‚??Register‚?? button. All of them should locate closely to indicate they are in a group to serve one purpose.

Before the name is typed into the name field, a dialog box should pop up to remind the registration if the ‚??Score‚?? button or ‚??Register‚?? button is pressed, or a return key is pressed in the text field, as shown in the Fig 1. The dialog box should have the same Look and Feel as the main frame.

After the student name is typed into the text field and a return key is pressed or the register button is pressed, the program should progress to the next stage.

At any stages, if the exit button is pressed, the program should exit.

Fig 1: First stage screen shot

Stage 2 ‚?? Question Screen:

Fig 2 is the screen of the GUI in second stage for true and false questions. It presents the questions to users and receives the user answer. In this screen, the registration area in the tool bar should be disabled to prevent any modification to the student name. It should contain an area to present question and an area to receive the answer. Radio buttons should be used for answer selection and the selection should be exclusive. (Only one answer can be selected.) At the bottom of the screen, there should be a ‚??Next‚?? button to proceed to the next question. (If no answer is selected before pressing the ‚??Next‚?? button, it should be considered as a wrong answer.) In this stage, if the score button is pressed, the current score should be displayed in a dialog box. The layout requirement is specified in Fig 2.

Fig 2: Second stage screen shot of True and False Questions

Fig 3 shows the screen for the last question where the ‚??Next‚?? button should change to the ‚??Get Score‚?? button. When the ‚??Get Score‚?? button is pressed, the program should progress to the next stage.

Get Score Button

Fig 3: The screen shot of the last question in the second stage

Fig 4 is the screen in third stage for the score presentation. It should present the final score with the student name. It should contain an ‚??Exit‚?? button. It should not contain the tool bar in previous stages.

In this stage, you can design any layout you like as long as you meet the above requirements.

Fig 4: screen shot for the final score presentation

For this assignment, you should submit all your programs including the Java quiz GUI application, and question file. Basically all files that required to run your program.

View Answers

Ads









Related Tutorials/Questions & Answers:
Java Graphical user interface
Java Graphical user interface  Hi, guys. I'm christina, need help with my home work Task 1: GUI Design and Implementation The user requirements of your Java quiz GUI application are specified by the following program flow
JList box java
JList box java We are going to describe JList box java. First of all we have created JList component of Swing. List is a component of GUI() Graphical User Interface. It allows the multiple items in a list and In this class extend
Advertisements
User Interface Toolkits
User Interface Toolkits User Interface Toolkits / Libraries are given below... For creating application specifically for handicapped persons Java Accessibility... of java. Sound This API is used for sound capturing, processing, play back audio
Java Swing
Java programs with a graphical user interface (GUI). There are many components... the basic user interface such as customizable painting, event handling, drag and drop... Java Swing      
Java Swing
for weak and inflexible AWT controls for providing more sophisticated graphical user interface (GUI) components for Java programs. Swings are lightweight and 100... Java Swing       Swing
How to save user interface in flex for design tool
How to save user interface in flex for design tool  Hi I want to create a flex application "sticker design tool" in which i want to save all... user want to re-customize it later on then he can able to re-customize it. please
Linux as a Command Line Interface (CLI) Vs. Graphics User Interface (GUI).
a command line interface (CLI) to the operating system, while graphical shells provide a graphical user interface (GUI). A graphical user interface (GUI) is a human...Linux as a Command Line Interface (CLI) Vs. Graphics User Interface (GUI
java interface
java interface  Create a interface called student Define methods like get roll number Get name Get subject Create two classes Electronic student And history student Enter 5 students in the main class 2 of history and 3 elec
Interface in java
Interface in java  An Interface method implemented in more than one different class with same method name. To avoid overriding of methods, we use ObjectReference for that class
Marker Interface,Java Marker Interface
Interface in Java       In this section we will learn about Interface and Marker Interfaces in Java... is also the interface's example. But in java programming language interface is nothing
interface.
interface.  Write short note on interface.   Please visit the following link: Java Interface
Java Interface
Java Interface In this section we will discuss about the interface in Java... interfaces. Interface in Java is created for referencing something to other. To create an interface in Java the keyword "interface" is used
Interface in Java
Interface in Java Interface in java programming languages is a collection... oriented concept. Through interface only abstraction is achieved in java. Syntax...; Java. In an interface, only abstract method can be declared. Interface
Graphic interface java help
Graphic interface java help  A modified checkers program with class name Checkers using double buffering. Somehow the program must have two top.... The checkers must stop moving whenever the user clicks and holds down the mouse
INTERFACE
INTERFACE  how interface support multiple inheritance in java
interface
interface  what the use of interface?   An interface is one... variables.Any class can implement(inherit)the interface and make use of the methods(functions) and variables within it. In java, multiple inheritance
interface
interface  What is marker interface ?? what is its use in java programming?? is this us in programming ??Explain is implementation with code
interface
interface   what is the use of marking interface
Abstract class and interface in Java
Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between an interface and an abstract class: At the same time multiple interfaces can
can interface solve this problem in java
can interface solve this problem in java  I have a JDialog which.... Now i need to get which day is clicked by the user from another class which calls this calander class. can interface solve this problem. If yes then how. pls
interface
interface  why do we need interface in java..if it`s usefull for to obtain multiple inheritance in the sense how it gonna be achieved...and i can...)...the y we need interface...THis is question often i heard from my developer
Interface
for Interface in java? and want to know why they used interface instead of multiple inheritance? Thanks in advance   An interface is one which has abstract... method it will take.It creates complexity.Therefore java uses Interface
Interface in java with example
We are going to discuss about Interface in Java. Interface is blueprint... implement them. Java interface is nothing but is a empty collection... extending interface. Why use interface in java? We use itto achieve complete
interface
interface  will the interface implements a interface   Hi Friend, No. Interface can extends another interface but cannot implements it, because interface will not contain the implementation. Thanks
interface
; Through interface, we can achieve the multiple inheritance. Java does...interface  What is the exact use of interface in real time scenario? some people says that interface provides multiple inheritance. Is it true
show the database values graphical represantation
show the database values graphical represantation   show the database values graphical represantation and auto refresh for every 30 secand displaying in webpage
interface
interface   Hi I have interface in that interface 3 methods are there , after some days client said that,i want to add one more method in that interface ,so how can add 4 method so that the implemented class did not affect
interface
interface  can we extend interface?   Hi Friend, Yes an interface can be extended by other interface like using extends keyword interface A{ } interface B extends A{ } For Example: interface IntefaceA { void
interface
interface  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
interface
interface  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
Interface
Interface  I need to implement the interface without overriding its method and also don't use abstract class for this. How to do

Ads