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
using polymorphism to write a program to display digital clock

Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum

Write code in JavaScript to display the odd numbers among 20 to 100 using FOR statement? Note: No required to write whole HTML program. Just JavaScript code of require elemen

For an assignment I need to write an array program to go along with an instance variable. I keep getting the no main class error when I run my program.

What can you do with an exception once you've caught it? 1. Fix the difficulty and try again. 2. Do anything else instead. 3. Exit the application along with System.exit() 4

Search on column demonstration in Semantic Vector Project Description: I am preparing a research on Semantic Vectors. But I am not able to check out in a vector representa

Java has two kinds of exceptions: 1. Checked exception: handled from java.lang.Exception but not java.lang.RuntimeException. 2. Unchecked exception: handled from java.lang.Ru

On the surface, an application context is similar as a bean factory. But application context offers much more.. ? Application contexts give a means for resolving text messages,

Explain the Basic Applet Life Cycle ? 1. The browser reads the HTML page and seraches any tags. 2. The browser parses the tag to search the CODE and possibly CODEBASE att