DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Building a MongoDB-Powered RESTful Application With Quarkus and Eclipse JNoSQL
  • Eclipse JNoSQL 1.0.0: Streamlining Java and NoSQL Integration With New Features and Bug Fixes
  • Making A Good Thing Even Better: Google Open Source WindowBuilder and CodePro Profiler
  • How it Feels to Switch from Eclipse to Android Studio

Trending

  • Time Series Analysis: VARMAX-As-A-Service
  • Spring Boot and React in Harmony
  • A Better Web3 Experience: Account Abstraction From Flow (Part 1)
  • Demystifying Enterprise Integration Patterns: Bridging the Gap Between Systems
  1. DZone
  2. Coding
  3. Frameworks
  4. How to Fix Resolution Problems With High DPI Screens

How to Fix Resolution Problems With High DPI Screens

Screen resolutions on PCs are getting sharp and reaching higher resolution, but developers may find it hard to work on IDEs that don't support high DPI screens.

Abhilash Juluri user avatar by
Abhilash Juluri
·
Updated Oct. 31, 16 · Tutorial
Like (8)
Save
Tweet
Share
25.97K Views

Join the DZone community and get the full member experience.

Join For Free

Screen resolutions on PCs are getting sharp and reaching up to 4K resolution. Although they are very good for watching high-quality movies or your favorite NFL games, developers may find it hard to work on IDEs that don't support high DPI screens. Icons, fonts, control buttons, toggles, and other UI elements don't scale well and look so tiny, straining your eyes and impacting productivity.

These problems make high resolution displays unfriendly for development. Note that this might not be a problem in Macs because MacOS natively offers support scaling of your programs so that they look better regardless of high display resolutions. In Windows, individual programs should handle high DPIs by themselves.

The most popular IDEs, like Eclipse and JDeveloper, don't understand high DPI screens. You might want to wear powerful reading glasses while coding in these IDEs!

Eclipse and JDeveloper appear like in the below screenshots on high-resolution screens:

Eclipse:

Image title

JDeveloper:

Image title

When I first encountered this situation, I tried tweaking Windows' font size and display resolution, but much with despair. I also tried tweaking font sizes in Eclipse and JDeveloper, but all of my attempts made the problem worse by messing up the overall visual layouts of the IDEs. I was searching for a solution, thinking, "There has to be a way!"

Yes, indeed. Eclipse and JDeveloper use Java2D APIs, and luckily Java introduced support to high DPI a couple of years ago (but it was secretly hidden in their Bugzilla).

The magic trick is to add a VM argument to make these rich, featured IDEs beautiful again.

In Eclipse, add the following argument into your $ECLIPSE_HOME\eclipse.ini file as two separate lines:

  • vmargs

  • Dsun.java2d.dpiaware=true

Now, your eclipse.ini file should look like the picture below:

Image title

In JDeveloper, add the following line in your $JDEVELOPER_HOME\jdev\bin\jdev.conf:

  • AddVMOption -Dsun.java2d.dpiaware=true

Now, your jdev.conf file should look like the picture below:

Image title

After tweaking the settings with dpiaware flag, Eclipse and JDeveloper appear like below:

Eclipse:

Image title

JDeveloper:

Image title

As you notice, they look way better after applying the little dpiaware flag in startup VM arguments.

Eclipse's latest and greatest version, Neon, natively supports High DPI screens now, but not all developers may have the luxury to upgrade Eclipse in corporate settings, so you might find this tweak useful.

Enjoy coding again!

Eclipse JDeveloper

Opinions expressed by DZone contributors are their own.

Related

  • Building a MongoDB-Powered RESTful Application With Quarkus and Eclipse JNoSQL
  • Eclipse JNoSQL 1.0.0: Streamlining Java and NoSQL Integration With New Features and Bug Fixes
  • Making A Good Thing Even Better: Google Open Source WindowBuilder and CodePro Profiler
  • How it Feels to Switch from Eclipse to Android Studio

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: