mmm weird...
i created a custom panel that extends Panel
and i use setSize() to sets it's size...^.^
but when i change this part
class InfoPanel extends Panel to this one class InfoPanel extends JPanel
when my custome Panel it's now a custom JPanel setSize() doesn´t work =(
and i had to use setPreferredSize() insted! why is that?
why is that setSize works fine with Panel and it doesnt with JPanel.
oh by the way, i set the Panel's layoutManager to null, i mean, im not using a LayoutManager for my Panel and i set the location and size of my components with setBounds().
i create and instance of that InfoPanel and i add it to a JFrame. on my JFrame im using the default LayoutManager.
i use pack() on JFrame contructor to set the correct size of the application.
what would be the problem? or the explanation for that behavior of setSize() with Panel(it works) and JPanel(doesn't work and with setPreferredSize it does work).