Oque voce realmente precisa? uma tela de login onde o usuario digita o nome do usuario e o password e entra no sistema? eh isso?
se for ta ai um exemplo de codigo, ta pronto eh so mandar compilar.
packageMainGUI;publicclassLoginGUIextendsjavax.swing.JFrame{/** Creates new form LoginGUI */publicLoginGUI(){initComponents();}/** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */@SuppressWarnings("unchecked")// <editor-fold defaultstate="collapsed" desc="Generated Code">privatevoidinitComponents(){jTextField1=newjavax.swing.JTextField();jPasswordField1=newjavax.swing.JPasswordField();jLabel1=newjavax.swing.JLabel();jLabel3=newjavax.swing.JLabel();jLabel4=newjavax.swing.JLabel();jButton1=newjavax.swing.JButton();jButton2=newjavax.swing.JButton();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);setTitle("Tela de Login");setResizable(false);jTextField1.setName("jTextField1");// NOI18NjPasswordField1.setName("jPasswordField1");// NOI18NjLabel1.setText("Bem Vindo");jLabel1.setName("jLabel1");// NOI18NjLabel3.setText("Usuario:");jLabel3.setName("jLabel3");// NOI18NjLabel4.setText("Senha:");jLabel4.setName("jLabel4");// NOI18NjButton1.setText("Entrar");jButton1.setName("jButton1");// NOI18NjButton1.addActionListener(newjava.awt.event.ActionListener(){publicvoidactionPerformed(java.awt.event.ActionEventevt){jButton1ActionPerformed(evt);}});jButton2.setText("Sair");jButton2.setName("jButton2");// NOI18NjButton2.addActionListener(newjava.awt.event.ActionListener(){publicvoidactionPerformed(java.awt.event.ActionEventevt){jButton2ActionPerformed(evt);}});javax.swing.GroupLayoutlayout=newjavax.swing.GroupLayout(getContentPane());getContentPane().setLayout(layout);layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel1).addComponent(jPasswordField1,javax.swing.GroupLayout.DEFAULT_SIZE,224,Short.MAX_VALUE).addComponent(jTextField1,javax.swing.GroupLayout.DEFAULT_SIZE,224,Short.MAX_VALUE).addComponent(jLabel3).addComponent(jLabel4).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,layout.createSequentialGroup().addComponent(jButton1).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton2))).addContainerGap()));layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addGap(47,47,47).addComponent(jLabel3).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jTextField1,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE).addGap(16,16,16).addComponent(jLabel4).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPasswordField1,javax.swing.GroupLayout.PREFERRED_SIZE,javax.swing.GroupLayout.DEFAULT_SIZE,javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,32,Short.MAX_VALUE).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jButton2).addComponent(jButton1))));pack();}// </editor-fold>privatevoidjButton1ActionPerformed(java.awt.event.ActionEventevt){// ENTRARif(jTextField1.getText().equals("user")&&jPasswordField1.getText().equals("password")){newMAIN().setVisible(true);}}privatevoidjButton2ActionPerformed(java.awt.event.ActionEventevt){// NOTAO SAIRSystem.exit(0);}/** * @param args the command line arguments */publicstaticvoidmain(Stringargs[]){java.awt.EventQueue.invokeLater(newRunnable(){publicvoidrun(){newLoginGUI().setVisible(true);}});}// Variables declaration - do not modifyprivatejavax.swing.JButtonjButton1;privatejavax.swing.JButtonjButton2;privatejavax.swing.JLabeljLabel1;privatejavax.swing.JLabeljLabel3;privatejavax.swing.JLabeljLabel4;privatejavax.swing.JPasswordFieldjPasswordField1;privatejavax.swing.JTextFieldjTextField1;// End of variables declaration}