I've creating a Java Swing application and I realized that I have many many components on a form.
It's not that my interface is cluttered, but nevertheless the total amount can be quite high (hundreds) because the user can enable additional parts of the interface and there have to be list-like repeating panels on the form.
Additionally many components are wrapped into a JXLayer, again increasing the number of visual components.
Until now I couldn't detect any problems besides lagging during scrolling and resizing.
- Are there any theoretical limits on the number of components? (I doubt it, but I also have to code in VB6, so I've been there...)
- Are there any pratical limits? At work we have some medium-end workstations which perform fine at first sight, but how does Java/Swing react on low-end workstations or extreme counts of components?
- Is there any way to profile the GUI of my application besides checking the subjective impression of the user? Are there any objective indicators I can look for (Like total time spent in
javax.swing.SwingCoreClassWhichContainsBottleneckCode
or something...)