I am new to game programming in Java, especially on the graphics front, hence I would like to seek some advice on how to implement the following game graphically in Java.
The game is very simple, it displays a square which is further divided into a 2x2 boxes, and the game playing is to put a total of 44 chips into these 4 boxes, and the user should be able to drag and drop the chips from one box to another.
That's it! My questions:
Many thanks.
Chips can be represented by an Icon added to a JLabel.
Squares can be represented by a JPanel.
Start by reading the section from the Swing tutorial on How to Use Icons. There are other section of interest as well: How to Use Panels, Using Layout Managers, How to Write a MouseListener, The section on drag and drop maybe.