отключить jDesktopPane при открытии jInternalFrame - PullRequest
0 голосов
/ 15 января 2020

При отображении 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 были отключены

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...