Hey, I am making a card game of Higher or Lower. Currently an image of one card pops up and you have to guess if the next card is a higher or lower value than the one you can see.

My question is, using BlueJ, how do I display two cards together?


CardDisplay display1 = new CardDisplay();
display1.displayCard(card1);
System.out.println("Please enter whether you think the next card will be Higher or Lower");

displays one card, how can I display two, the second card I want to show is called "card2"

Thank you.

Use a Panel with FlowLayout on that "Card" of the CardLayout?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.