Note that exec.mainClass in pom.xml is set to com.mycompany.matricula.Matricula, but the actual main class is logica.Main. You may need to update this:
Contains all Swing-based user interface components:
Inicio.java - Welcome Screen
The first screen users see when launching the application.
Inicio.java:6-12
public class Inicio extends javax.swing.JFrame { private Registrar registrate; public Inicio() { initComponents(); this.registrate = new Registrar(); registrate.setIni(this); }}
Displays welcome message and registration button.
Registrar.java - Registration Form
Handles new student registration with input validation.
Registrar.java:207-227
private void btnRegistrarseActionPerformed(java.awt.event.ActionEvent evt) { String nombre = txtNombre.getText(); String apellido = txtApellido.getText(); String dni = txtDni.getText(); String contra = txtContra.getText(); if (nombre.isEmpty()) { JOptionPane.showMessageDialog(this, "COMPLETE SU NOMBRE", "Advertencia", JOptionPane.WARNING_MESSAGE); } else if (apellido.isEmpty()) { JOptionPane.showMessageDialog(this, "COMPLETE SU APELLIDO", "Advertencia", JOptionPane.WARNING_MESSAGE); } else if (dni.isEmpty()) { JOptionPane.showMessageDialog(this, "COMPLETE SU DNI", "Advertencia", JOptionPane.WARNING_MESSAGE); } else if (contra.isEmpty()) { JOptionPane.showMessageDialog(this, "COMPLETE SU CONTRASEÑA", "Advertencia", JOptionPane.WARNING_MESSAGE); } else { JOptionPane.showMessageDialog(null, "REGISTRO EXITOSO"); // Continue to login... }}
Login.java - Authentication
Validates user credentials against registered information.
Login.java:171-183
private void btnIniciarSesionActionPerformed(java.awt.event.ActionEvent evt) { String usuario = txtUsuario.getText(); String contra = new String(pswContra.getPassword()); if (usuario.equals(regisDni) && contra.equals(regisContra)) { JOptionPane.showMessageDialog(null, "INICIO EXITOSO"); matri.setLog(this); matri.setVisible(true); matri.setLocationRelativeTo(null); this.setVisible(false); } else { JOptionPane.showMessageDialog(this, "USUARIO O CONTRASEÑA INCORRECTA", "Error", JOptionPane.ERROR_MESSAGE); }}
Matricula.java - Course Enrollment
Main application screen for selecting and enrolling in courses.
# Force update dependenciesmvn clean install -U# Clear local repository cacherm -rf ~/.m2/repository/org/netbeans/external/AbsoluteLayoutmvn clean install# Use Maven Central mirror if needed# Add to ~/.m2/settings.xml
Out of Memory Errors
Problem: Build fails with OutOfMemoryErrorSolution: Increase Maven memory:
Problem: NetBeans .form files not being processedNote: .form files are NetBeans-specific GUI designer files. They are not compiled directly but are used by NetBeans IDE to generate the corresponding Java code (the initComponents() method).If you’re not using NetBeans, the Java files already contain the generated code and will compile correctly.