Search:

Type: Posts; User: A4Andy

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. How to download a pdf file stored in a MySQL blob?

    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...
  2. How to upload a pdf file to mysql from a directory?

    How do I upload and download a PDF file in mysql?

    the PDF that will be uploaded was the one created by itext.
  3. Replies
    14
    Views
    3,446

    Re: How to convert password to md5?

    it's now working well



    import java.awt.*;
    import java.awt.event.*;
    import java.security.*;
    import java.math.*;

    import javax.swing.*;
  4. Replies
    14
    Views
    3,446

    Re: How to convert password to md5?

    what do you mean I think only once.
  5. Replies
    14
    Views
    3,446

    Re: How to convert password to md5?

    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;
  6. Replies
    14
    Views
    3,446

    Re: How to convert password to md5?

    public class HandlerClass1 implements ActionListener {
    public void actionPerformed(ActionEvent event)
    {

    100 char[] pass = pfPword.getPassword();
    101 String s= new String(pass);
    102...
  7. Replies
    14
    Views
    3,446

    Re: How to convert password to md5?

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at db$HandlerClass1.actionPerformed(db.java:100)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)...
  8. Replies
    14
    Views
    3,446

    Re: How to convert password to md5?

    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...
  9. Replies
    14
    Views
    3,446

    How to convert password to md5?

    I want to convert the input in a jpasswordfield to md5 but the problem is I don't know how
  10. Re: How to retrieve data from MYSQL database to JComboBox or to an array

    thanks it's already solved. I forgot the give the array a value
  11. Re: How to retrieve data from MYSQL database to JComboBox or to an array

    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[]
  12. Re: How to retrieve data from MYSQL database to JComboBox or to an array

    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...
  13. How to retrieve data from MYSQL database to JComboBox or to an array

    the field type is text
    i really have no idea hope you guys can help me
  14. Replies
    10
    Views
    6,667

    Re: how to delete a JTextField?

    Consider this as solved as I used hide() method instead. Thanks for your help anyways.
  15. Replies
    10
    Views
    6,667

    Re: how to delete a JTextField?

    here is my codes



    import java.awt.event.*;
    import javax.swing.*;

    public class test extends JFrame {
    /**
    *
  16. Replies
    10
    Views
    6,667

    Re: how to delete a JTextField?

    the remove method only disable the textfield
  17. Replies
    10
    Views
    6,667

    Re: how to delete a JTextField?

    I'm not using a container my setLayout is null so that I could use the setBounds
  18. Replies
    10
    Views
    6,667

    Re: how to delete a JTextField?

    I did try

    remove(txtfieldname);

    but it didn't work, it was not able to remove the textfield
  19. Replies
    10
    Views
    6,667

    how to delete a JTextField?

    I want to program something that if I click the button it will remove the JTextfield
  20. Replies
    1
    Views
    2,206

    add JTextField with a click of button

    public class HandlerClass1 implements ActionListener
    {
    public JTextField tf1;

    public void actionPerformed (ActionEvent event)
    {

    tf1 = new JTextField("");...
  21. how to accept only integers with or without decimals in a JTextField?

    I am creating a program and I don't want it to accept character or string in my textfield
  22. Replies
    1
    Views
    2,261

    How to check for empty mysql table

    how to make query for mysql that will return if it is an empty table or not?
  23. Replies
    6
    Views
    1,906

    Re: java + mysql update

    I switched to prepared statement and it is working fine now
  24. Replies
    4
    Views
    1,616

    Re: TextFieldWithButton

    the image you're give is in your computer we can't see it.
  25. Replies
    6
    Views
    1,906

    Re: java + mysql update

    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...
Results 1 to 25 of 27
Page 1 of 2 1 2