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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:40:40+00:00 2026-05-23T15:40:40+00:00

I am trying to apply a thirdparty LAF to a NetBeans RCP application (not

  • 0

I am trying to apply a thirdparty LAF to a NetBeans RCP application (not the IDE). Because this is a thirdparty LAF, I have to include a dependency on an additional JAR. Being a modular platform, I wrote a NetBeans module that wraps the LAF JAR and calls UIManager.setLookAndFeel() in the restored() method. The problem is modules are not loaded in any particular order so it doesn’t work all the time.

Ideally I would force this module to load immediately but I couldn’t find how to do that cleanly.

I had tried setting the LAF with the “–laf” and “–cp:p” arguments as described here:

http://javahowto.blogspot.com/2008/05/how-to-customize-netbeans-look-and-feel.html

The problem is the thirdparty LAF JAR depends on NetBeans and other thirdparty JARs so at runtime I get a lot of “class not found” errors. Technically those classes are present but in separate modules. I’d prefer to not clutter up the command line with numerous “–cp:p” arguments.

As a side note, by having the IDE and RCP having the same name it makes Googling for solutions much harder.

  • 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-23T15:40:41+00:00Added an answer on May 23, 2026 at 3:40 pm

    Further debugging revealed the RCP calling UIManager.setLookAndFeel() a couple more times after my LAF module was started. Those subsequent calls were resetting the LAF back to the default.

    The “–laf” command line argument did not affect the default LAF. However setting the “swing.defaultlaf” system property did.

    The solution was to also set that system property in the module’s restored() method to the thirdparty LAF class name.

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

Sidebar

Related Questions

im trying to apply a method in this method from a view controller in
I am trying to apply COUNT() in a query and I have it working
I am trying to apply this sticky footer pattern to my template: http://ryanfait.com/sticky-footer/ But
Im trying to apply the state pattern on a multi threaded application.The problem is
While trying to apply policy-based design, I got stuck on this one (simplified): template
i have been trying to apply the Gridview Tutorial but i'm stuck in an
I am trying to apply the custom grammar for speech recognition. I have found
I have been trying to apply a style to my TabWidget. I've tried several
I'm trying to apply the simplified algorithm in Prolog, but I'm not a Prolog
I am trying to apply a scale animation to a rectangle, using code 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.