• Post Reply Bookmark Topic Watch Topic
  • New Topic

screen resolution problem in java application

 
nilesh sironja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I'm working on Ubuntu with resolution 1600*900; I used MigLayout to place the components of the application; but when I go with higher resolutions,components adjustment and alignment are not up to the mark.
Now I'm facing a really big problem.
Any help towards it would be really appreciated. Thanks in advance !
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nilesh sironja wrote:..but when I go with higher resolutions,components adjustment and alignment are not up to the mark.

What do you mean not up to the mark? What is the expected and observed behavior? Please TellTheDetails
 
nilesh sironja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean not up to the mark? What is the expected and observed behavior?

some of the panels are aligned according to the screen size(in higher resolutions) but some are not; they look dissimilar in height and length; spoiling the alignment.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on the description you have provided I would say either you are explicitly specifying bounds / size or incorrectly configuring MigLayout
Can you post some screenshots (as attachments?)
 
nilesh sironja
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maneesh,
Thanks for help;
You are right, I explicitly specified bounds / size of some components to provide similarities in their alignment. On some places I provided empty borders also and those borders refer screen height and width explicitly.
Now what should I do to remove those?? should I use other layout ??
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nilesh sironja wrote:
You are right, I explicitly specified bounds / size of some components to provide similarities in their alignment.

That is the root cause of your problem. Take out such code.
After that, of the problem still exists, post your SSCCE so we can take a look.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!