I'm tring to make a simple Card Game in Java using Swing.
So far the problem i've ran into is: I'm using a JLayeredPane with a null layout to draw cards in layers.
But it seems i can't do getHeight or getWidth of the JLayeredPanel to draw on the layeredPane Bounds.
I tried also to print out the layeredPane.getWidth or layeredPane.getHeight and it prints out zero.