Create a gui in java, JAVA Programming

Fill in the necessary parts to create a GUI that uses the CardDeck class.  In your GUI you should have a text field for each hand, two buttons and a text area.  

Your program should:

-Display a complete card deck in the text area when the frame opens (before any events occur).

-Here, use separate inner classes for each of the two buttons. 

-When the shuffle button is pressed the deck should shuffle and the new deck should be shown in the text area.  Also all of the text fields should be "blanked".  

-When the deal button is pressed 5 cards should be dealt to each hand.  Use a for loop to deal a card to hand1, then a card to hand 2 and so on.  Then when each hand has one card deal a second card to each hand and so on until each hand has a total of five cards.  Display the cards in the text fields.  Also, display the remaining cards (what is left in the deck) in the text area.

-Make use of at least on JPanel and one GridLayout.

-Use the Courier font for your text area as demonstrated in LoanRepaymentGUI.

- Use the functionality that exists in the CardDeck or Card class.  You will loose marks for recreating methods or functions that already exists in these two classes.

- Use the output beside to help test your functionality.  Remember, my program is on Mac (so it will look a bit different) and the shuffled cards are random.

Posted Date: 2/27/2013 2:27:22 AM | Location : United States







Related Discussions:- Create a gui in java, Assignment Help, Ask Question on Create a gui in java, Get Answer, Expert's Help, Create a gui in java Discussions

Write discussion on Create a gui in java
Your posts are moderated
Related Questions
After refactor the main class to become abstract class, I want to move test method from tset clas of main class to subclass, how to do that?

Problem 1) Describe the concept of interfaces in Java with a suitable example for the same Explanation of the concept of interfaces with example 2) Describe the Inp

In the lectures, we have written programs for bond pricing in discrete time. We have also talked about the theory for bond pricing and yields in continuous time. In this exercise,

Benefits of Spring framework : Spring can effectively organize your middle tier objects as given in the diagram above, whether or not you select to use EJB. Applications create

Normal 0 false false false EN-US X-NONE X-NONE      Obj ec t Ori e n

Your first task is to implement the Movie class to store all the relevant information on a single DVD Movie, including its catalog number, title, year of release, rating, rental pe

Develop an ehospital project Project Description: I am preparing ehopsital project.for the requires of hospital in that patient registration and billing module and stores mod

Determine about the runtime Security Manager Java also has a runtime Security Manager can check which operations a specific piece of code is allowed to do. Consequently, java c

Write a JavaScript program to prompt the user for the radius of a sphere and call function sphereVolume to calculate and display the volume of the sphere in the status bar.

inplementation of extended eucleadian algorithm in some cases