anyone have a link? I want to display data on the GUI that I made using NETBEANS..
I started learning java today,
I got error non-static variable jTextField1 cannot be referenced from a static context.
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/sample", "", ""); Statement stmt = (Statement) con.createStatement(); String select = "SELECT name FROM sample WHERE name LIKE text"; jTextField1.setText(select);