I have been making a program where I have created a JFrame
with a BorderLayout
distribution. On the center I have a class extended from a JPanel
called AreaDibujo
where I use a BufferedImage
. In order to use this buffered image properly, I need to pass two int
parameters on its constructor, the height and width it will cover.
How can I make it cover all the panel? AKA how do I determinate my panel size (the program runs on fullscreen)?
Here is an image of how does the program look so far: