I see what you are saying. Thank you for the information and explaining the security issue.
Type: Posts; User: kc120us
I see what you are saying. Thank you for the information and explaining the security issue.
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...
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:...
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...
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
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...
I thought so. I thought jcboCountries.setFocusable(true) was supposed to do that. Am I using the wrong method?
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...
That was it. I had another class named in Border in the same directory as BorderDemo. Thanks.
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...
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 :)
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...
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...
I tried that and it worked with smaller values like 0077 but I got a NumberFormatException on larger values like 4F20.
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...
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"...
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...
Never mind. I fixed it. Thanks.
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...
Gotcha!! Thank you.
That worked. Thanks!! is this a common problem with Seriallizable objects?
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...
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
I've repeatedly saved the source file. I am using jdk1.6.0_01
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>...