Skip to content
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

JFileChooser performance when using WebLaf #704

Open
4SFED opened this issue Sep 5, 2022 · 1 comment
Open

JFileChooser performance when using WebLaf #704

4SFED opened this issue Sep 5, 2022 · 1 comment
Assignees
Labels

Comments

@4SFED
Copy link

4SFED commented Sep 5, 2022

I have noticed around a 10x increase in time to display a JFileChooser when using WebLaf. I came across this bug:

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6372808

I took the same code there and adapted it to either use WebLaf or WindowsLAF, code attached.

FileChooser.txt

The results were as follows:

D:\Tools\FileChooser>java -jar FileChooser.jar false
start
Using WindowsLAF
leaving main.
Thread[AWT-EventQueue-0,6,main] :: Before new JFileChooser()
Thread[AWT-EventQueue-0,6,main] :: After new JFileChooser(), took [5632].
.showDialog exited.

D:\Tools\FileChooser>java -jar FileChooser.jar true
start
Using WebLAF
leaving main.
Thread[AWT-EventQueue-0,6,main] :: Before new JFileChooser()
Thread[AWT-EventQueue-0,6,main] :: After new JFileChooser(), took [61188].
.showDialog exited.

When using WindowsLAF it took 5632ms to open. When using WebLaf it took 61188ms to open.

I am using weblaf-complete-1.29.jar

Is this a known issue or am i doing something incorrectly?

EDIT: just tried with version 1.2.13 and the results are the same.

@tullisar
Copy link

See #698, the underlying cause is the same from what I understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants