Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6374891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:32:41+00:00 2026-05-25T01:32:41+00:00

I use Netbeans 7.0 with JDK6 under Windows 7 to design the user interface

  • 0

I use Netbeans 7.0 with JDK6 under Windows 7 to design the user interface of my Java application. I apply System look and feel. But it looks the way I want in Windows but differs in MacOS and even worse, it looks different in different window managers in Linux (LXDE, GNOME, KDE, XFCE).

By different I mean the fonts look and their size. In Windows, if a label looks “v 1.23”, it looks like “v …” in other OSes because the fonts become bigger in that OS and the JLabel do not have enough place to show. This happens in several places.

I don’t want to increase the label width. I want the label to look the same in that given width in all OS. By default, Netbeans uses the font Tahoma 11pt on my pc. I think it’s not available in all OSes so the other OSes use different font.

Is Arial a common font?

Should I change the font of every element to Arial manually? Or any other options?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:32:42+00:00Added an answer on May 25, 2026 at 1:32 am

    When it comes to window managers there is a lot more to it than just font size, for instance the width between 2 controls are handled differently in gnome & KDE. when it comes down to using the same font size across all platforms you can use Sans Serif font, this is available in all the OS’es I’ve worked with.

    it would also be better (if you can’t find serif in an OS where you want to run your app) you can download a font (free ones from GNU Free Fonts).

    when it comes to setting the font sizes & the fonts, why don’t you try using a theme & set the font there…
    you can use the UIManager.setLookAndFeel() method to change themes.
    here is a link on Look & Feel

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a fairly experienced Java user, but I've just started trying to use NetBeans
I typically use Netbeans (but also STS) to develop my Java code but I've
I want to use the jetty httpclient (in netbeans) but have the least number
I mostly use Eclipse but have mentionned Netbeans on my cv. Are there any
I use NetBeans 6.7.1 and I'm more used to C and php than Java.
i am trying to use netbeans for unit testing. But it is giving me
I now use Netbeans rather than Eclipse but find that the Source code generation
I got a question about the IDEs: With Java, you use Netbeans or Eclipse,
I'm a long-time eclipse user looking to use netbeans now that I've tried netbeans
I use netbeans 6.9 I want to use org.codehaus.staxmate.dom package but in does not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.