i'm new to swing and this mailing list, but i'm not a moron and have experimented plenty with the code; i've even begun reading the shared source code, and found the process of learning java to be really easy given that I already know too many languages to be good for ones health.
anyway, does anyone know how to know the appropriate (not preferred, i dont think) size for a JPanel?
what i mean by this is supposing I add a bunch of ImageIcons to my JPanel with FlowLayout...
Can I then query my JPanel for the minimum Display Height necessary to show all ImageIcons in the JPanel given the current, fixed Display Width?
Hmm... I hope there is a clean way to do this.
Also I hope no one confuses this question with a more basic question pertaining to Horizontal wrapping or something; I understand that FlowLayout wraps Horizontally. Thus, it assumes a fixed-width with variable -height. However, JPanel does not seem to provide access to this variable. Like if you increase the height of your JFrame that your JPanel is in you will see more elements, but what about if you fill it up? You don't know how far the JPanel goes down (i.e. what the variable height actually is). What doesn't make any sense is that the variable height information is needed as the JPanel redraws all (?) of its components so it must know where the last component was drawn; that would tell you the minimum height necessary to draw all components. i hope this extra information clarifies my question a bit.
I have more concerns than this; I'm basically trying to write a "Finder"-like program where the basic elements are not files but rather modeled data, like "pictures" or "people." anyway i just want to play with drag and drop and RDBMS mostly.
thanks, steve
_______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
