Skip to main content

JXLoginPanel missing "Login" text under XP L&F

6 replies [Last post]
cupofjoe
Offline
Joined: 2003-08-05

This is on JRE 6.1.

It looks great for the standard Swing L&F and 'Apple L&F' (-Dswing.defaultlaf=com.birosoft.liquid.LiquidLookAndFeel )

But if I set the look and feel to -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel

I'm running on Windows XP it can't find the right fonts is my guess.
I get 5 white boxes where the text "Login" should be. I'm using the latest code. I haven't looked at the UI delegate code.

I can't believe I'm the only one using this dialog in XP under 1.6. If someone wants me to fix it and submit a workaround just let me know.

Cheers,
cupofjoe

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cupofjoe
Offline
Joined: 2003-08-05

Karl,

I'm running this jar as I pulled it from your server:
swingx-2007_08_19.jar

Could it be that someone within my IT group branded my Windows Fonts to use a special font?

I wouldn't put it past them and we even had someone create 'company' fonts for logo branding reasons. ;-)

I just think it odd that the only one blowing up is the 'native' platform L&F.

Cheers,
Ed

kschaefe
Offline
Joined: 2006-06-08

Well, I am using the component on XP with 1.6 and I am not experiencing any problems. Can you please post a test case?

Karl

cupofjoe
Offline
Joined: 2003-08-05

Add this to your VM as a parameter.

-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel

It managed to break my Login dialog. Everything else works so I assumed it was the Login Dialog. ;-)

Thanks,
Ed

kschaefe
Offline
Joined: 2006-06-08

I had already ran it with UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); and the -D property. They both return the current L&F as:

[The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel]

And, they both work.

So, please submit a test case.

Karl

kschaefe
Offline
Joined: 2006-06-08

I got your image. It looks as if there's a encoding issue with the String "Login" in the image panel. Interesting.

The only thing that I can think of is modified source. Have you modified the source at all?

Karl

kschaefe
Offline
Joined: 2006-06-08

Some further follow up. I have checked both my local CVS copies and unjarred copies of the properties file for the JXLoginPanel. They all appear to be using the correct encoding, so I'm not sure where to go on this one. It would be less strange, if you were getting only one box.

Well, waiting on you for some feedback and direction cause at this point, I've got no other ideas.

Karl