• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet Changes With Respect To Resolution

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic