При отображении jInternalFrame в jDesktopPane с этим кодом. где jifNotificaciones - это jInternalFrame, а desktopPane - это jDesktopPane, где отображается jifNotificaciones
private void btnNotificacionesActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jifNotificaciones notificaciones = new jifNotificaciones();
desktopPane.add(notificaciones);
notificaciones.setLocation((desktopPane.getWidth()-notificaciones.getWidth())/2, (desktopPane.getHeight()-notificaciones.getHeight())/2);
notificaciones.setVisible(true);
}
Кнопки и другие элементы в jDesktopPane по-прежнему доступны, я хочу, чтобы при открытии jifNotificaciones все элементы в jDesktop были отключены