I'm creating an application that will be used at different operating systems and, most likely, different display resolutions. My current display resolution is 1680x1050. I've tried using layouts to position components in the frame. So, I didn't define any sizes of components (did't use "setSize", "setBounds", setLocation"). However, if I need to update JPanel with some new components, then the size of my application sometimes becomes insufficient. It is logically, because all components have different default sizes. For instance, I've initially created JPanel with some buttons and labels; then I want to update JPanel with some JTree by the button click. In this case, some corners of JTree becomes invisible. I guess I was clear enough in my explanation.
So, the question is what is the best way to create applications for different
display resolutions? Maybe, I must set sizes of components with respect to display size? Or, maybe, there is some trick with layouts?
Any suggestions will be highly appreciated!. Thanks!
Edited 6 Years Ago by LianaN: n/a