so i have 2 form 1 form is from a login form and the second is the home form so right after the user login it will show the home form but here i want to take the string in the login username textfield and use it at the home form in a label that says Welcome and the name from the username textfield from the login here is my code
public class Admin_Home extends javax.swing.JFrame {
/**
* Creates new form Admin_Home
*/
AdminLogin_Form login = new AdminLogin_Form();
String username = login.getUsername();
public Admin_Home() {
initComponents();
}
public void homeWelcome(){
jLabel2.setText("Welcome " + username);
}
can anybody help me in this kind of problem ? any solutions?