Results 1 to 1 of 1
  1. #1
    costy is offline Member
    Join Date
    Nov 2013
    Rep Power

    Default SWT application behaves unexpectedly when changing Windows DPI value

    Hi all,

    the problem that I'm facing with is that when I'm changing the values of DPI in personalization->display->custom dpi to a value greater or equal with 110%, my widgets are not fully visible anymore. I'm setting the height and width of the label via .setLayoutData(). When the dpi values are back to normal, this problem never show up. My operating system: Windows 7 x64, SWT libraries: Eclipse IDE version: Eclipse RCP Kepler, Java: 1.6

    This is how I am setting the layout data of my label
    Java Code:
    public GridData buildENodeBTopLabelGridData() {
                  eNBTopLabelGridData = new GridData(SWT.FILL, SWT.FILL, true, true);
                  eNBTopLabelGridData.heightHint = 17;
                  eNBTopLabelGridData.widthHint = 200;
                  return eNBTopLabelGridData;
    And this is how my widgets look before I change the DPI (default values -> 100%)
    SWT application behaves unexpectedly when changing Windows DPI value-capturewhennormal.png
    And this is how my widgets are looking at a greater value of DPI (110% in this case) SWT application behaves unexpectedly when changing Windows DPI value-capture.png
    What am I doing wrong?
    Sorry if I've made mistakes regarding the place where to ask a question or the format of my question.
    Thanks in advance!
    Last edited by costy; 11-11-2013 at 01:55 PM.

Similar Threads

  1. Changing the IPv4 Settings in Windows 7
    By brazid in forum Networking
    Replies: 0
    Last Post: 01-08-2012, 01:48 AM
  2. Changing application to applet
    By TacoManStan in forum AWT / Swing
    Replies: 2
    Last Post: 09-10-2011, 07:07 PM
  3. Replies: 1
    Last Post: 07-27-2011, 11:25 AM
  4. Replies: 4
    Last Post: 07-19-2011, 05:07 PM
  5. Replies: 4
    Last Post: 09-13-2010, 04:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts