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 preemptive scheduling and time slicing, What is the diff...

What is the difference between preemptive scheduling and time slicing? Under preemptive scheduling, the highest priority task executes unless it enters the waiting or dead stat

Error, UnsupportedClassVersionError

UnsupportedClassVersionError

Write a java rest client, Write a Java REST client to perform the following...

Write a Java REST client to perform the following- The client will read the contents of the file - invoice.txt. The first line of the file will display the type of the currency.

Can a class implementing a remote interface, Can a class implementing a Rem...

Can a class implementing a Remote interface have non remote processes? Ans) Yes. Those processes behave as normal java process operating within the JVM.

Differentiate between time slicing and preemptive scheduling, What is diffe...

What is difference between time slicing and preemptive scheduling? Differences between preemptive and time scheduling are: In case of Preemptive scheduling the highest prior

Task priority and uses in scheduling, What do you mean by a task's priorit...

What do you mean by a task's priority and how can we use it in scheduling ?

How to scaling images in java applet, How to Scaling Images in java applet?...

How to Scaling Images in java applet? You can scale an image within a particular rectangle using this version of the drawImage() method: public boolean drawImage(Image img,

Write code in a java for automaton distributed in class, Write a code in a ...

Write a code in a c++/java  for the automaton distributed in the class that accepts keywords(cat,bat,cab). Create an input file along with these words may be two or three copies of

How many jsp scripting elements , How many JSP scripting elements and what ...

How many JSP scripting elements and what are they? Ans) Three scripting language elements are there: a)      declarations, b)      scriptlets, c)       expressions.

Programming Assignment : Trains, I CANNOT FAIL THIS I NEED IT FRIDAY TASK...

I CANNOT FAIL THIS I NEED IT FRIDAY TASK 1 : Read The definition of the Item interface and implement TrainCar Your are being provided with 1. Item.java 2. Automobile.java 3.

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