Create a gui in java, JAVA Programming

Assignment Help:

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.


Related Discussions:- Create a gui in java

Difference between object declaration and object creation, Question: (a...

Question: (a) (i) Describe the purpose of comments when writing programs in Java. (ii) Name the types of comments available and illustrate with simple examples. (b) (i)

Explain the for loop in java, Explain the for loop in java? // This is ...

Explain the for loop in java? // This is the Hello program in Java class Hello { public static void main (String args[]) { System.out.print("Hello "); // Say Hello

Client for nokia symbian platform, Project Description: I need Team spea...

Project Description: I need Team speak 3 client for Nokia Symbian platform. Project for Nokia E72, but should work on all Java/Symbian mobiles. Feature list should include

Student, short Java application that stores words in an Array or ArrayList....

short Java application that stores words in an Array or ArrayList.

Program to calculates the number of unique shapes, 1. Write the code for th...

1. Write the code for the method that calculates the number of unique shapes for a binary search tree with n nodes. Use the formula  where b n is the number of possible sh

MATLAB, Requested figure handle in use by another object, how do i fix this...

Requested figure handle in use by another object, how do i fix this?

Explain the java.net package, Explain The java.net package Each package...

Explain The java.net package Each package describes a number of classes, interfaces, exceptions, and errors. For instance, the java.net package contains these, classes, interfa

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd