Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Applet Changes With Respect To Resolution

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I have built an applet with respect to my machine,but now when the clients are using the applet,there is issue about the resolution.

My Machine is running
1280 * 1024 with 19" monitor widescreen.
The Other are Running

800 * 600 & 15"
1024 * 768 & 15"
800 * 600 & 17"
1024 * 768 & 17"

On machines the browser displays with scrollbar.
This is because the browser displays a/c to the browser view available,
so if i change the applet height and width in the same ratio,
i get the buttons ,textfields squeezed.

Is there any option to make the applet work on every machine without defining a seperate code for each resolution.

By The Way i am using Anchorlayout,hope that is not a problem.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should generally design a GUI so that it looks good on the most common resolution -whichever that is amongst your users-, and is usable for the rest.

If there are more GUI elements than can fit into an 800x600 browser window, why don't you restructure the GUI so that it consists of several "pages", e.g. using CardLayout?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!