Main Menu

KB#01231-Sluggish or Unresponsive BBj Cross Look and Feel Applications

Title:

Sluggish or Unresponsive BBj Cross Look and Feel Applications

Description:

Using the Cross L&F can cause certain BBj applications to become sluggish or unresponsive. 

The problem is due to Java'a attempt to initialize the sound system to play a sound.

Resolution:

Adding the following section of code will prevent the sound system from being initialized in the application: 

UiManagerDefaults!=javax.swing.UIManager@.getDefaults(ERR=*NEXT) 

IF UiManagerDefaults!.get("InternalFrame.closeSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("InternalFrame.closeSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("InternalFrame.minimizeSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("InternalFrame.minimizeSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("InternalFrame.restoreDownSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("InternalFrame.restoreDownSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("InternalFrame.restoreUpSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("InternalFrame.restoreUpSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("InternalFrame.maximizeSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("InternalFrame.maximizeSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("CheckBoxMenuItem.commandSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("CheckBoxMenuItem.commandSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("OptionPane.questionSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("OptionPane.questionSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("OptionPane.warningSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("OptionPane.warningSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("PopupMenu.popupSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("PopupMenu.popupSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("MenuItem.commandSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("MenuItem.commandSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("OptionPane.errorSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("OptionPane.errorSound","",ERR=*NEXT) 

IF UiManagerDefaults!.get("RadioButtonMenuItem.commandSound",ERR=*NEXT)<>NULL() THEN UiManagerDefaults!.put("RadioButtonMenuItem.commandSound","",ERR=*NEXT)

 



Last Modified: 08/18/2011 Product: BBj Operating System: N/A

BASIS structures five components of their technology into the BBx Generations.

  Google+ View BASIS LinkedIN Profile Visit our Twitter Feed Check out our Facebook Public Profile Click to View the BASIS youTube channel