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
GUI
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.
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 dedicated support
and follow-up.
Regards
Farah Khan
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 design.I will deliver you this according to your time frame after your award.
I can assure you several things.
* I have expertise in Twitter Bootstrap, Angularjs, HTML5/CSS3, Php, java se,j2ee....
* I have a great web development sense.
* Well organized and clean code easy to understand.
* Validate according to w3c standards.
* I can start it immediately.
* Compatible with all modern browsers and mobile devices.
Looking forward to hearing from you soon.
Thanks
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.
-----------------------------
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 according to the requirements.
Thanks
@CodingHelpLine
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 deadline on private chat.
Thanks. Best regards
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 success.
Please chat me.
Best Regards
Nikita
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 soon.
Thanks
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 from you via chatting.
Thanks & Best regards!
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 with swinv development .you need Playing card management system .
According to your post description, you need the job done very quickly with an affordable budget.
Your requirements are fully clear to me and I am applying only because I meet all the requirements that you are looking for.
I have been working as a full stack web developer for more than 10 years and I know all the ins and outs of web development and customization
Project should be 100% correct and Complete that will be my first guarantee service in this project. Moreover, I will be available for you for any kind of future edits and customizations. Sometimes my ten years back clients search for me till now only because of my excellent service.
I am mostly in love with communication. I like to be in touch with my clients 24/7 so that they can catch me at any time when they need me.
I am looking for the clear final requirements docs of your project so that I can start working immediately. If you need to discuss with me for any kind of suggestions or information, please knock me anytime. I am looking forward to hearing from you.
Thanks
Hafiz Nadeem Ahmed
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 quality of work.
Let me know if you are interested.
Regards,
Ali