java - JComponent: How can it resist smallification? -


I have a custom JComponent that paints some stuff when called paint < In the Code> Limit layout, however, this minimum size is not being respected I have included it

  @ Override public dimension getMinimumSize ( } {System.out.println ("asking for minimum size"); Return MINIMUM_SIZE; }  

And it is never called, I have also tried to set the minimum size on the container that holds it, and on Jeffram it assumes that I have some limitations here Can i keep

I do not think that borderlayout minimum size respect; It shapes things to fit the container, you should try the other layout (probably BoxLayout ).


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -