can you resolve this warning?
warning: [deprecation] getText() in JPasswordField has been deprecated
Try to this
String testpassword = new String(passwordField.getPassword());
Have A Happy Day..,
String sql = "Select * from tbkaryawan where IDKaryawan='"+jTextField1.getText()+"'&&Password='"+ jPasswordField1.getText()+ "'";
er.. my code like this.. so how to put your code was sugested into that mode?
if you don't know that, you shouldn't bother to work with Swing GUI's and start learning the basics of OO design and Java.
for some reason, you've asked about this "all over the forum"
but, just to indulge you one last time:
String sql = "Select * from tbkaryawan where IDKaryawan='"+jTextField1.getText()+"'&&Password='"+ new String(jPasswordField1.getPassword()) + "'";
now, in the hope to give you a reality check: you seem to have trouble replacing one method by the other. you seem to have difficulties instantiating a String object. when provided with the code you need, you don't know how to copy paste it (which is basically all you needed to do).
stop working on GUI's, stop working with databases, and first make sure you have a sound knowledge of the basics. if you don't, you'll have this kind of problems every single time you're trying something you haven't done yet, and that isn't solved in the very exact same way.
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Hi. Im using vb 2010. I want to dynamically add textboxes to my form by clicking on a button. I've google searched and so far this code worked:
Private Sub btn_addline_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_addline.Click Dim txtB1 As New TextBox Dim i For i = ...