thanks for guiding.....
Currently following method is taking 19.6 % CPU useage: Please find out mistakes so that performance will improve.
As I am very fresher and also currently i am exploring Swing, your help is very valuable for me.
/**
* Sets the lF.
*
* @param LFclassname the new lF
*/
void setLF(String LFclassname) {
try {
UIManager.setLookAndFeel(LFclassname);
SwingUtilities.updateComponentTreeUI(this.avpFrame);
LookAndFeel lfcur = UIManager.getLookAndFeel();
for (int ii = 0; ii < this.lf.length; ii++) {
if (lfcur.getName() == this.lf[ii].getName()) {
this.LookAndFeelInuseIndex = ii;
this.LookAndFeelinuse = LFclassname;
}
}
} catch (ClassNotFoundException e1) {
} catch (InstantiationException e2) {
} catch (IllegalAccessException e3) {
} catch (UnsupportedLookAndFeelException e4) {
}
}
here is CPU useage Report:
Thread selection: All thread groups
Thread status: Runnable
Aggregation level: Methods
78.0% - 1,957 ms - 1 inv. com.xyz.avp.xyz.VoicePlayerFrame.main
71.0% - 1,783 ms - 1 inv. com.xyz..avp.xyz.VoicePlayerFrame.<init>
21.7% - 545 ms - 1 inv. com.xyz..avp.xyz.VoicePlayerFrame.loadPersist
20.8% - 522 ms - 1 inv. com.xyz..avp.xyz.VoicePlayerFrame.setLF
19.6% - 491 ms - 1 inv. javax.swing.SwingUtilities.updateComponentTreeUI
13.7% - 343 ms - 1 inv. com.xyz..avp.AvpMediator.setFileChoose
13.2% - 331 ms - 1 inv. javax.swing.JFrame.<init>
Thanks once again.