Search:

Type: Posts; User: kc120us

Page 1 of 2 1 2

Search: Search took 0.15 seconds.

  1. Re: MySQL Syntax error in Java prepared statement

    I see what you are saying. Thank you for the information and explaining the security issue.
  2. Re: MySQL Syntax error in Java prepared statement

    Thank you for your help. I was able to get it working by creating the query string first by concatenating the select string with the table name variable and using a Statement instead of the...
  3. MySQL Syntax error in Java prepared statement

    Hi,
    I am writing a servlet using NetBeans that finds scores from a mySQL database. I have a simple select using a prepared statement. But I get the following error.

    INFO:...
  4. is there any predefined JSpinner class that allows you display currency?

    I have a program that accepts loan data (amount, numberOfYears, interestRate) using three spinners and then calculates and displays the loan payment schedule in a JTable. Currently the spinners use...
  5. Replies
    6
    Views
    2,870

    Re: Problem with Key listener to JComboBox

    Wow, you are right. I put the class file in an html page and it worked fine as an applet. But it does not run as a standalone application.
    Thanks
  6. Replies
    6
    Views
    2,870

    Re: Problem with Key listener to JComboBox

    I added the focus listener but nothing happened so it is not getting focus. Here is my entire code.



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

    public class...
  7. Replies
    6
    Views
    2,870

    Re: Problem with Key listener to JComboBox

    I thought so. I thought jcboCountries.setFocusable(true) was supposed to do that. Am I using the wrong method?
  8. Replies
    6
    Views
    2,870

    Problem with Key listener to JComboBox

    Hi,
    I am trying to add a key Listener to a JComboBox so that when you hit the delete key, it deletes the item selected from the Combo box. Here is the code that registers the listener to the combo...
  9. Replies
    2
    Views
    616

    Re: Problem with border in program

    That was it. I had another class named in Border in the same directory as BorderDemo. Thanks.
  10. Replies
    2
    Views
    616

    Problem with border in program

    Hi,
    I am working on a program that is meant to demonstrate all the different borders that can be applied to a JComponent (a JLabel in this case). The program is an example from the text book I am...
  11. Replies
    12
    Views
    1,505

    Re: Trying to display Unicode characters

    Thanks to Norm and everyone else. Using Integer.parseInt(String s, int radix) worked. It allowed me to cast the int hexCode to a char :)
  12. Replies
    12
    Views
    1,505

    Re: Trying to display Unicode characters

    That could definetely be the problem with the NumberFormatException error. I think I will try taking the string from the user input and converting it to decimal first with my conversion program...
  13. Replies
    12
    Views
    1,505

    Re: Trying to display Unicode characters

    Unfortunately, I'm not at home right now, so I'll have to post it on Monday. But, if memory serves me correctly, I used int hexNumber = Integer.parseInt(hexCode) to convert the hexCode string to an...
  14. Replies
    12
    Views
    1,505

    Re: Trying to display Unicode characters

    I tried that and it worked with smaller values like 0077 but I got a NumberFormatException on larger values like 4F20.
  15. Replies
    12
    Views
    1,505

    Re: Trying to display Unicode characters

    hexCode is a String variable. The user enters a four digit hex code (ie 4F20) and the text area is supposed to display the Unicode character for that hexCode and the next 320 characters. But all it...
  16. Replies
    12
    Views
    1,505

    Re: Trying to display Unicode characters

    Sorry, no. HexToDecimalConversion is another program I wrote and that works fine. I just realized that I took out the bad code. This is the line that was causing me trouble

    jtaUnicode.append("\u"...
  17. Replies
    12
    Views
    1,505

    Trying to display Unicode characters

    Hello,

    I'm not sure where to post this. I'm trying to write a simple GUI Unicode Viewer. The user enters the Hex code in the JTextField and the program generates the Unicode character for that...
  18. Replies
    1
    Views
    413

    Re: Problem changing the image in a JLabel

    Never mind. I fixed it. Thanks.
  19. Replies
    1
    Views
    413

    Problem changing the image in a JLabel

    Hi,
    I am having a problem with the following program. The program is supposed load four random card images and put them in them on four JLabels. The user is supposed to enter an expression using the...
  20. Replies
    4
    Views
    882

    Re: Serializable compiler warning

    Gotcha!! Thank you.
  21. Replies
    4
    Views
    882

    Re: Serializable compiler warning

    That worked. Thanks!! is this a common problem with Seriallizable objects?
  22. Replies
    4
    Views
    882

    Serializable compiler warning

    Hi,
    I hope posted this is in the right area. My program is not dealing with File I/O but I got a warning message from the compiler indicating a serailVersionUID definition problem. Here is the...
  23. Replies
    4
    Views
    1,458

    Re: Map compiler error

    That is the problem. There is Map.java file in the source directory (completely different program). I got rid of that file and that fixed it.


    Thank you
    Casey
  24. Replies
    4
    Views
    1,458

    Re: Map compiler error

    I've repeatedly saved the source file. I am using jdk1.6.0_01
  25. Replies
    4
    Views
    1,458

    Map compiler error

    Hi I am working on an example problem from the book that is not compiling correctly.

    Here is the compiler error:

    TestMap.java:6: type Map does not take parameters
    Map<String, Integer>...
Results 1 to 25 of 33
Page 1 of 2 1 2