• Post Reply Bookmark Topic Watch Topic
  • New Topic

screen resolution/size  RSS feed

 
Nigel Hoath
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this is a good place. I have created a java gui on Windows 7 with Eclipse EE, using a screen resolution of 1366 x 768. I used groups with specified boundaries. For example:



The groups cover the whole screen.

However my colleague with a smaller resolution looses the far right of the screen.

As this is a proto-type and I'm new to Java I don't want to rework everything or convert it to say a grid layout until the proto-type is accepted and I can start from scratch with a real detailed design. It already has 6500 lines of source.

Jusy wondered what is my quickest/easiest way to get my app to display on a slightly smaller resolution. For sure it will not be anything silly. Something like 1280 x 768 to 1366 x 768 would do.

Cheers in anticipation of something not too laborious.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You using SWT right? Display.getDefault().getBounds()

If Swing/AWT then Toolkit.getDefaultToolkit().getScreenSize()
 
Nigel Hoath
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:You using SWT right? Display.getDefault().getBounds()

If Swing/AWT then Toolkit.getDefaultToolkit().getScreenSize()


Tx for that. Am I right in thinking that that will give me the vertical and horizontal, but that I'll still need to resize all the setBounds? Cheers

 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not too familiar with SWT but the getBounds() gives you the screen dimensions (ie the full screen). If you need to set this for individual panel or whatever then yeah i would say so.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!