troubleshooting Question

Need help setting L&F of JTable

Avatar of Cory_Larson04
Cory_Larson04 asked on
9 Comments1 Solution308 ViewsLast Modified:
I have a bunch of components in my application that I want to use Java's default MetalUI for, except for one.  I have a JTable that just doesn't match the rest of the application when it is rendered with Java's default UI.

Is there any way to have only the JTable rendered with the Windows L&F (I'm running a Windows machine...) ?

I wish it were as simple as:


...but WindowsTableUI doesn't exist in J2SE 5.0.

The whole reason for this is that I wrote two custom SliderUI's that only render correctly when using BasicSliderUI, a part of Java's basic L&F.

So I guess there are two options here: I could just set the Windows L&F for the whole app using UIManager.setLookAndFeel(), or somebody could help me rewrite my SliderUI's so they render correctly with the Metal L&F AND the Windows L&F.

Any help would be great!  Oh, and thanks in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros