Thank you, the setPreferredSize does work! I was using the setSize method at the JPanel but it didn't had any effect
Type: Posts; User: Stone
Thank you, the setPreferredSize does work! I was using the setSize method at the JPanel but it didn't had any effect
Here is my code:
import java.awt.Container;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import javax.swing.*;
I want to make a drawing (A rectangle which is colored according RGB values that are scanned real-time), and add this drawing to a JPanel. This JPanel has to be added to the layout of the main frame....