Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
We have to pass 'tempCard' to function and not 'card' variable.
Source Link

Once I knew what question to ask, google answered this really quickly. I found a quick fix on this blog.

BufferedImage tempCard = deck.getSubimage( x, y, width, height ); Image card = SwingFXUtils.toFXImage( cardtempCard, null ); 

Tried it out and works great!

Once I knew what question to ask, google answered this really quickly. I found a quick fix on this blog.

BufferedImage tempCard = deck.getSubimage( x, y, width, height ); Image card = SwingFXUtils.toFXImage( card, null ); 

Tried it out and works great!

Once I knew what question to ask, google answered this really quickly. I found a quick fix on this blog.

BufferedImage tempCard = deck.getSubimage( x, y, width, height ); Image card = SwingFXUtils.toFXImage(tempCard, null ); 

Tried it out and works great!

Source Link
dannYonkeys
  • 81
  • 1
  • 1
  • 6

Once I knew what question to ask, google answered this really quickly. I found a quick fix on this blog.

BufferedImage tempCard = deck.getSubimage( x, y, width, height ); Image card = SwingFXUtils.toFXImage( card, null ); 

Tried it out and works great!