Loading the UI class it part of Swing's look&feel initialization process, see UIDefaults.getUI(...) for more info
Unless it is called millions of times, loadClass(...) is not very likely to be your problem here: if the class has already been loaded it will return very fast. Try using a profiler to pinpoint the cause of the slowdowns