0
Hi guys I’m developing a project for my course, and when I click on the menu to open a new JInternalFrame
, the same opens "below" of the other already opened.
I would like to know how to open it "on top" of the already open?
follows the code:
public class Inicial extends javax.swing.JFrame {
Connection conexao = null;
PreparedStatement pst = null;
ResultSet rs = null;
Cadastro cadastro = new Cadastro();
Relatorio relatorio = new Relatorio();
EditarExcluir editarExcluir = new EditarExcluir();
public Inicial() {
initComponents();
conexao = ModuloConexao.conector();
System.out.println(conexao);
}
private void menuCadastrarActionPerformed(java.awt.event.ActionEvent evt) {
cadastro.setVisible(true);
desktop.add(cadastro);
}
private void menuRelatorioActionPerformed(java.awt.event.ActionEvent evt) {
relatorio.setVisible(true);
desktop.add(relatorio);
}
private void menuEditarExcluirActionPerformed(java.awt.event.ActionEvent evt) {
editarExcluir.setVisible(true);
desktop.add(editarExcluir);
}