I am creating a Java Swing application, and I realized that I have many components in the form.
This is not what my interface is cluttered , but nevertheless the total amount can be quite high (hundreds), because the user can include additional parts of the interface, and there should be lists in the form like repeating panels.
In addition, many components are wrapped in JXLayer , again increasing the number of visual components.
So far, I have not been able to detect any problems other than delays during scrolling and resizing.
- Are there theoretical limits on the number of components? (I doubt it, but I also need to code in VB6, so I was there ...)
- Are there any case limits? At work, we have some medium-sized workstations that work great at a glance, but how do Java / Swing react to low-performance workstations or extreme component counts?
- Is there any way to profile the GUI of my application, besides checking the subjective impression of the user? Are there any objective indicators that I can find (for example, total time spent in
javax.swing.SwingCoreClassWhichContainsBottleneckCodeor something else ...)
source
share