Swing Project: Playing Card Manager

Swing Project: Playing Card Manager

In this project you will develop a GUI to allow the user to pick and display cards from a standard 52-card

deck. This project does not include the development of any specific game, but it could be used as a

platform on which to implement a game. You will download a zip file of images of playing cards. Each

.PNG file contains an image of a single card. The name of the file encodes the suit and face value of that

card. The relevant class to access the local file system from a Java application is java.io.File.

Part 1

Create an app that displays two components: a JButton labeled “Choose Card” and a CardImagePanel to

display a single card image, initially empty. When the JButton is clicked, it opens a JFileChooser dialog

that is initialized to display the contents of the card image file directory. When the user picks a file, the

file is displayed in the CardImagePanel. The button and card image panel are added to a generic JPanel

with the default FlowLayout layout manager.

In part 1, you are not loading and managing the entire card deck, so you do not need the enums or hash

map to manage the deck. You are only opening a single file, building a BufferedImage for it, and

displaying the image in a CardImagePanel. At this point it is not necessary to identify the card by suit

and face, you are simply picking a file with the file chooser and displaying the image from that file on the


Part 2

Create an app that displays two components: a JPanel called a CardChooserControl with internal

components to choose a card by suit and face, and a CardImagePanel to display the chosen card. The

CardChooserControl contains a JComboBox to select a face value, a JLabel with the text “of”, a

JComboBox to select a suit, and a JButton to fetch and display the chosen card. This design somewhat

simplifies the complexity of responding to events generated by each change in selection of a combo box.

The user configures the combo boxes, and can continue to change them without triggering any activity

until the button is clicked.

Part 3

This version is identical initially to Version 2. The new feature is, once the chosen card image is

displayed, the image can be moved around the display with mouse press and drag.

The JPanel that contains the control panel and card image panel will use absolute positioning and no

layout manager. The card image panel will use mouse listener and mouse motion listener to change the

location of the panel by dragging it with the mouse. When constructing the containing JPanel for the

GUI, use setLayout(null) to disable layout. The listeners will be added to the CardImagePanel class.

Since there is no layout manager for the main panel that displays the control panel and the card image

panel, all components must be given a size and a location initially. Location is up to the developer. Size

can easily be set based on the objects’ preferred size.

Part 4

This version will allow the user to pick 5 cards and display the 5 cards on the display area. When the

application launches, the full set of card images are loaded as before. Then the display area is initially

empty. A single menu named “Cards” with menu item “Choose” is provided. When the “Choose” menu

item is selected, it displays a custom dialog box to select five cards and an “OK” button to dismiss the

dialog. The five cards are then displayed in the main display area, and each card can be moved with

mouse press and drag.

Taidot: Java, JavaFX, Swing (Java), Graphical User Interface (GUI)

Näytä lisää: code project pci card control, project rate card graphic design, free playing card vector file, develop standard grocery list, online file storage project requirements management manager, phone card web develop, business card playing card, basic playing card design, vector playing card design, vector playing card images, animated birthday card manager, project virtual soccer manager, free playing card image credit, guide develop standard php project phpbb, develop database report swing project java, standard 52 card deck, playing card art project, standard 52 card deck probability, standard playing card size

Tietoa työnantajasta:
( 6 arvostelua ) Reseda, United States

Projektin tunnus: #31873096

14 freelanceria on tarjonnut keskimäärin $158 tähän työhön


Hi I have checked your project description. I have excellent programming and development skills. Contact me with all the details and requirements for your project for further discussion. I will provide you with dedica Lisää

$30 USD 3 päivässä
(561 arvostelua)
(106 arvostelua)

Hi sir I am interested to work with you. I can provide you professional web design services. I can design for you according to your requirements. I will give you unlimited revision until you will not satisfy for your d Lisää

$30 USD 1 päivässä
(52 arvostelua)

Hi there, I checked your requirements and guarantee you it's gonna be done within the next few hours. Let's contact via chat so that I can start work immediately. Wish you the best. -----------------------------

$99 USD 7 päivässä
(27 arvostelua)

Hello I'm Certified Java Programmer. Contact for awesome Java desktop (Console, Swing, JavaFX), Web (JEE, Spring) and Android apps. I assure you an excellent solution of your project within the time frame and exactly Lisää

$150 USD 5 päivässä
(44 arvostelua)

Yes, i am Swing expert. i can make Playing Card Manager project as per your requirement. Message me i am ready to start work form right now.

$300 USD 2 päivässä
(3 arvostelua)

Dear Client! I've read your all description carefully and understood your requirement I will finish your project on time and perfectly. I have good experience in this field. So far, Let's discuss about budget and dea Lisää

$30 USD 1 päivässä
(5 arvostelua)

Hi, I have read your post carefully. As a senior Java developer, I have already developed lots of projects with Swing. That's why I think I can get this done in a timely manner. If you hire me , I will bring you to su Lisää

$100 USD 2 päivässä
(7 arvostelua)

I am an experienced Web Developer having 7 years experience with java and java spring framwork WordPress/PHP. I have awarded many times for delivering best quality work. Please have a look on my expertise: # WordPress, Lisää

$200 USD 7 päivässä
(1 arvostelu)

Dear Client. I am Nikita Thank you for your posting. I've just read your description and guarantee 100% success on your job. Let's discuss about budget and deadline on private chat. Looking forward to hearing from you Lisää

$80 USD 2 päivässä
(3 arvostelua)

Hi, I have a deep understanding and experience in Java ****************************************************** I'm sure to complete this project with high quality on time. Looking forward to hear more about the project Lisää

$90 USD 5 päivässä
(4 arvostelua)

Hi There...! Note : I give you 25% off on my all services. So grabs this special limited discount offer. Let’s get to the Project. I came to know that your  Looking a developer which have rich knowledge about java Lisää

$400 USD 7 päivässä
(3 arvostelua)

Hello, I'm an experienced professional and would love to help you in this project. Please review my portfolio shared below and let's connect on chat to discuss further about it [login to view URL] Regar Lisää

$250 USD 7 päivässä
(0 arvostelua)

Hi, I did many GUI based desktop applications using multiple technologies like swing, wpf, win forms. If you are interested I can deliver you this java gui project with source code and all the stuff. I assure you quali Lisää

$250 USD 7 päivässä
(0 arvostelua)