I want to know what should I put inside a jbutton action listener.
I think I knew how to get the row in the table where the blob file exists
and place the Blob file into a variable
Blob...
Type: Posts; User: A4Andy
I want to know what should I put inside a jbutton action listener.
I think I knew how to get the row in the table where the blob file exists
and place the Blob file into a variable
Blob...
How do I upload and download a PDF file in mysql?
the PDF that will be uploaded was the one created by itext.
it's now working well
import java.awt.*;
import java.awt.event.*;
import java.security.*;
import java.math.*;
import javax.swing.*;
what do you mean I think only once.
Here is my whole db class
import java.awt.*;
import java.awt.event.*;
import java.security.*;
import java.math.*;
import javax.swing.*;
import javax.swing.text.AttributeSet;
public class HandlerClass1 implements ActionListener {
public void actionPerformed(ActionEvent event)
{
100 char[] pass = pfPword.getPassword();
101 String s= new String(pass);
102...
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at db$HandlerClass1.actionPerformed(db.java:100)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)...
too bad I don't know how to get the value of JPasswordField using JButton as the trigger. I already knew converting from String to md5 but not from JPasswordField to md5.
I tried this code but it...
I want to convert the input in a jpasswordfield to md5 but the problem is I don't know how
thanks it's already solved. I forgot the give the array a value
I change my while statement to
while(rs.next())
{
array=rs.getString(2);
}
but I got an error Type mismatch cannot convert from String to String[]
transferring mysql data to array is my problem
here is the code that I'm playing with
public int i;
public String [] array;
PreparedStatement pstmt = con.prepareStatement("Select * from...
the field type is text
i really have no idea hope you guys can help me
Consider this as solved as I used hide() method instead. Thanks for your help anyways.
here is my codes
import java.awt.event.*;
import javax.swing.*;
public class test extends JFrame {
/**
*
the remove method only disable the textfield
I'm not using a container my setLayout is null so that I could use the setBounds
I did try
remove(txtfieldname);
but it didn't work, it was not able to remove the textfield
I want to program something that if I click the button it will remove the JTextfield
public class HandlerClass1 implements ActionListener
{
public JTextField tf1;
public void actionPerformed (ActionEvent event)
{
tf1 = new JTextField("");...
I am creating a program and I don't want it to accept character or string in my textfield
how to make query for mysql that will return if it is an empty table or not?
I switched to prepared statement and it is working fine now
the image you're give is in your computer we can't see it.
I added sq.printStackTrace() in the catch sq
here is my sq.printStackTrace()
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'first' in 'field list'
at...