-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues with PrinterJob #612
Comments
Can you provide a small executable code example which displays this issue? Because code you provided doesn't really show what exactly you're trying to print and what UI elements are involved. |
the following is a sample code (sorry it is not clean at all)
the issue is with using:
in normal LTR, it works just fine i have another small issue with popup and pointer location in RTL. just right click on JDesktopPane and the list is not aligned with the pointer. i believe it is the popup shadow size that is causing the pointer to be away from the list. any hint here is appreciated. |
Thanks for the example! I'll look into this quite soon. Regarding the popup menu offset - there is already an issue added for it - #292 - I'm not yet sure about how or when I will be fixing this problem, so for now - you can add a custom offset if you're only using WebLaF. And yes, you are correct - offset is caused by the menu decoration that is painted on the popup window root pane, the actual window is positioned exactly at the point you've specified. A bit unrelated to the issue, but I saw you've been using
In case you ever see any issues with any WebLaF UI elements - I recommend reporting it as an issue here instead of trying to fix it with |
I've tried the code example and it works correctly for me (with both RTL and LTR). So a few more questions:
|
you are right, it seems the issue is with the JDK 10 and above. i tried it with oracle JDK8 and it works fine. it gives me this error with jdk10/jdk13/jdk14 |
WebLaF 1.2.12 latest from maven on windows 10 |
I'll try it on newer JDKs. |
It does indeed reproduce on JDK9 and later and only on RTL orientation. I also found the cause of the issue, it's this piece of code added to /**
* {@inheritDoc}
*/
@Override
public void setComponentOrientation(ComponentOrientation o) {
super.setComponentOrientation(o);
getTextField().setHorizontalAlignment(
o.isLeftToRight() ? JTextField.RIGHT : JTextField.LEFT);
} It appeared in JDK9 first time. The problem with this method is that call to I guess this issue haven't been raised with other L&Fs yet because they either do not have a global orientation setting or simply because no one seen that issue with later JDK versions on RTL orientation. I'll add a dirty fix for this in the orientation update method which will simply skip |
… using `NumberEditor` on JDK9 and later [ #612 ]
I've pushed the fix, it will be shortly available in snapshot. |
Fix is now available in snapshot version and will be included in v1.3.0 update. |
Just a small note - this will be available in v1.2.13 update that will be going live shortly. |
Hi,
i was trying to use weblaf with PrinterJob but it gives me the following:
code snapshot
The text was updated successfully, but these errors were encountered: