I am trying to gradually create an image based on user inputs. What I'm trying to do is create a bunch of graphics and add them as layers, however I am having some problems as they will not appear. Here is the code I'm using:
public class ClassA { protected final static int dimesionsY = 1000; private static int dimesionsX; private static JFrame window; private static JLayeredPane layeredPane; public void init() { window = new JFrame("Foo"); dimesionsX =
However, my graphics do not seem to appear, and I do not understand why. I also tried adding it to JPanel , adding that JPanel in JLayeredPane , however, this did not work either.
Please can someone help me?
source share