if (PatchEdit.desktop.getSelectedFrame() instanceof SceneFrame)
if (JSLDesktop.getSelectedFrame() instanceof SceneFrame)
public void show(){    if (PatchEdit.desktop.getSelectedFrame() instanceof SceneFrame)         {             button2.setEnabled(false);             button3.setEnabled(false);         }    else         {             button2.setEnabled(true);             button3.setEnabled(true);         }    super.show();}