简体   繁体   中英

How to take into account different screen sizes?

I have written a JAVA desktop application using Netbeans IDE, when I run the application it looks perfect on my laptop. However when I installed it on a larger screen laptop, there is some extra space. What is the best way to get rid of that? Is there a way I can support multiple screen sizes in my source code or should I create a copy of the project and install netbeans and do the resize at the new computer which defeats the whole purpose?!

thanks

If you are using Swing, you can use any of the different layout managers. http://download.oracle.com/javase/tutorial/uiswing/layout/using.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM