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
Classes are attached into the JVM as they are referenced by name in a class that is already running in the JVM. So, how is the staring class loaded? The very first class is espec

The flow control statements give you to conditionally execute statements, to repeatedly operate a block of statements, or to just modify the sequential flow of control.

Write a Java application to simulate a bank system. In the system, customers can open new bank accounts with the bank, and register/use an online account to manage their bank accou

A portal is a service or a Web site that gives broad range of services and resources like e-mail, forums, search engines, weather information, news, on-line shopping, stock quotes.

What is the difference between Internet and Intranet ? Intranet and internet are 2 domains which are extremely a like but frequent segregated in order to manage security. Inter


Project Description: I want to modify Joomla component. Now there is Akeeba subscription component on this site. It works and the whole thing is fine, but there is no "teaser

Excel File to Responsive CSS/HTML page Project Description: Excel file to be converted into a responsive form for a site. In the excel file you will see where the input field

what will be the logic? in C program #include float start_point, /* GLOBAL VARIABLES */ end_point, total_area; int numtraps; m

What does WAN stand for? Wide Area Network - A network in that computers are separated through great distances classically across cities or even continents.