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 6991009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:26:08+00:00 2026-05-27T19:26:08+00:00

In my java application I am using NimBusLookAndFeel. I was trying to show grid

  • 0

In my java application I am using NimBusLookAndFeel. I was trying to show grid lines in table.

Following code works perfectly fine on windows but not on Linux (table grid lines do not appear in linux)

UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
UIManager.put("Table.showGrid", true);
UIManager.put("Table.intercellSpacing", new Dimension (1,1)); 

Following are java version details on linux

java version “1.6.0_12” Java(TM) SE Runtime Environment (build
1.6.0_12-b04) Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)

  • 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-27T19:26:09+00:00Added an answer on May 27, 2026 at 7:26 pm

    you have to overrive following Nimbus UIDefaults

    try {// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
            if (info.getName().equals("Nimbus")) {
                UIManager.setLookAndFeel(info.getClassName());
                UIDefaults defaults = UIManager.getLookAndFeelDefaults();
                defaults.put("Table.gridColor", new Color (214,217,223));
                defaults.put("Table.disabled", false);
                defaults.put("Table.showGrid", true);
                defaults.put("Table.intercellSpacing", new Dimension(1, 1));
                break;
            }
        }
    } catch (Exception e) {
        //e.printStackTrace();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write some test code for my java application using Scalatest.
I developp a Java application using Windows Desktop Search from which I can retrieve
I'm using Netbeans 6.7.1 on Windows. I created a Java application using Swing. When
I have a Java application using the Substance LookAndFeel with Windows as the the
I'm trying to enter some value in external application using Java. Java application looks
I've been developing a java application using git as source code repository. I'd like
I am trying to send sms from java application using SMPPSim as SMS gateway
I've created a standalone java application using Netbeans. The application works in ubuntu 10.04
I am trying to create a small Java application using Tomcat and am having
I am trying to add multitenancy to a java application using the separate schema

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.