Skip to content

JFileChooser performance when using WebLaf #704

@4SFED

Description

@4SFED

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions