Pessoal, bom dia, porque neste exemplo a baixo, quando eu redimensiono meu JFrame ele aumenta o canvas e quando eu diminuo o JFrame ele não acompanha diminuindo também?
[code]JFrame frame = new JFrame(“Teste”);
Canvas vs = new Canvas();
JPanel jPanel = new JPanel();
jPanel.setLayout(new MigLayout("", "[grow]", "[grow]"));
jPanel.add(vs, "cell 0 0,grow");
vs.setBackground(Color.BLACK);
frame.setLayout(new MigLayout("insets 0", "[grow]", "[grow]"));
frame.getContentPane().add(jPanel, "cell 0 0, grow");
frame.setSize(350, 250);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.setLocationRelativeTo(null);[/code]