so I am making a basic framework for a card game application (ex. blackjack, 21, solitaire, caravan) and I need to be able to display card images in groups that overlap and I need a grid system so I can easily set up the places where the "piles" go depending on the game. I'd like to avoid absolute layout if possible. this is what I have so far:
public void displayPanel(){
JFrame frame = new JFrame("Cards");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setBackground(Color.GREEN);
frame.setLayout(null);
frame.add(new JLabel(new ImageIcon("reasorce/Cards/39.png")));
frame.pack();
frame.setVisible(true);
}