This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!

Jesse Walker

Ranch Hand
+ Follow
since Aug 18, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jesse Walker

I went to insert data from a table and then print the form without the user every seeing the form being open. If possible
I have been able to retrieve data from a tabel and insert data into a Table, I was wondering if I made a form inside Microsoft access, could I access that form and input data into the fields?
Is there a way to make Java print the contents of a JFrame to the default printer, which class hanles that if their is?

Also, I know of the frame.dispose() method but that doesn't seem to close a JFrame, I have a multiple JFrame application with a back button option, I would like to find the best way to close the current frame, I am usinge JFrame.dispose?
12 years ago
is their a way to convert a double to a BigDecimal?
12 years ago
I know round() will round to the nearest whole number but is there anything that will just round to 2 decimal places, the hundredth?
12 years ago
is the java.sql package part of the JRE or does it have to have a SDK installed on the computer?
I am just trying to learn the Java.sql class as well as odbcs, the following is my code, I have everything spelled correctly and all the cases match up, I will post my code below and the printStackTrace from the error as well
package quote;
import java.sql.*;
* @author tech
public class Connect {
public static void main(String[] args)
try {
String dataSourceName = "mdbTEST";
String dbURL = "jdbc:odbc:" + dataSourceName;
Connection con = DriverManager.getConnection(dbURL, "","");
Statement s = con.createStatement();
s.execute("INSERT INTO TEST12345 VALUES('1','2')"); // Line 25
s.close(); // close the Statement to let the database know we're done with it
catch (Exception e) {
System.out.println("Error: " + e);

/** Creates a new instance of Connect */
public Connect() {


error is the following:
java.sql.SQLException: General error

at sun.jdbc.odbc.JdbcOdbc.createSQLException(

at sun.jdbc.odbc.JdbcOdbc.standardError(

at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(

at sun.jdbc.odbc.JdbcOdbcStatement.execute(

at quote.Connect.main(\\where my error is

Any help would be greatly appreciated, I am using DSNs.
This is the error I am getting and below is my code, what am I doing wrong, I cannt find anything that I am not initilazing(sp). Any help would be greatly appreciated.


at wirelessWriter.toExcel.<init>(

at wirelessWriter.toExcel.main(

Exception in thread "main"

Java Result: 1

package wirelessWriter;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.poifs.filesystem.*;
import javax.swing.*;
* @author tech
public class toExcel {
File f = new File("C:\\Workbook.xls");
POIFSFileSystem fs;

public toExcel(){
fs = new POIFSFileSystem(new FileInputStream(f));
HSSFWorkbook wb = new HSSFWorkbook(fs);
HSSFSheet sheet = wb.getSheetAt(0);
HSSFRow row = sheet.getRow(2);
HSSFCell cell = row.createCell((short)0);
FileOutputStream fileOut = new FileOutputStream(f);
catch(FileNotFoundException fe){
}catch(IOException io){

public static void main(String[] args){
new toExcel();
12 years ago
Ok, do I need to include that in my classpath, with a reference to the extact file or just the directory where it is stored in
Anyone have any experience downloading and installing the Jakarta POI? I have download the poi-bin-2.5.1-final-20040804.tar.gz and extracted to. I know I need to look for the Jakarta-commons.jar file and include the path in my classpath enviroment variable, either I downloaded the wrong thing or I have missed a step, I cannot find the file anywhere in my PC. Any help would be appreciated.
I will try that I have been trying to use the repaint() but have been getting weird layouts, even using a layout manager.
12 years ago
I would like the window to add a component after someone presses a button, how do I go about doing that? is the pain/repaint() method the best approach?
12 years ago
I am attempting to take a String Array that was passed from another Class and insert the text into a JLabel Array to display on a JFrame. The length of the String Array will be different each time. I have used the following code in my attempts:
JLabel[] labels;//gives me a variable may not have been intialized
int y = Array.getLength(info)// where info is the name of the StringArray, JLabel[y] label; //it give me a cannot recognize complier error
JLabel[] labels = {};
JLabel[] labels = {new JLabel(info[0])};
When I use the code above and use a loop to try to add the rest of the variables from the STring array to this array I get an ArrayOutOFIndexException.
Any help would be appreciated at all
Thank you,
12 years ago
in my application I am trying to create I have:
ButtonGroup fulldesk = new ButtonGroup();
JRadioButton[] radio = {new JRadioButton("Partial"), new JRadioButton("Full")};
Container content = frame.getContentPane();

should it be
12 years ago
Looking at the Javadocs, I see that you can add JRadioButtons to a ButtonGroup using the method add(). When you want to display the buttons on a JFrame's ContentPane do you use the add method to add each Button in the Button Group or each buttongroup by themselves
ButtonGroup buttons;
JRadiobutton radio;
Container content = frame.getContentPane();

I have tried both ways and I can't get the buttons to show up at all.
Any help would be appreciated
Thank you,
12 years ago