Thanks Michael Dunn
Don't you like to use direct in the frame?
eg:
why did you do this:
JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT));
p.add(gbPanel);
frame.add(p);
instead of this:
frame.setLayout(new FlowLayout(FlowLayout.LEFT));
frame.add(gbPanel);
I always have this doubt, if it is better put the components in a panel and then in the frame, or if I can put direct in the frame.
you that have much knowlodge, what do you recomend? do you have some tip?
I could manage to resolve this problem without the workaround.