Re: Jar file with JDBC

1999-12-29 Thread ALPESH KOTHARI
in my jar file. My classes are all in the same directory. Thanking You, Alpesh ===== KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Talk to your friends online with Yahoo! Messe

Re: Jar file with JDBC

1999-12-27 Thread ALPESH KOTHARI
n("SQL");} try { String crt="create table xyz(sadd int4,tadd int4,pid int4,filen text,diff int2)"; st.executeUpdate(crt); //While executing this statement it gives nullpointer exception } catch(IOException e) { System.out.println("Error "+e

Jar file with JDBC

1999-12-27 Thread ALPESH KOTHARI
statement. The application works fine without making jar file. What can be possible cause of problem? Thanking You, With Regards Alpesh ===== KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA _ Do

Displaying text vertically

1999-12-20 Thread ALPESH KOTHARI
EditorPane it replaces tab(\t) by a square bracket. How can I do away with this problem? With Regards, Alpesh = KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Thousands of Stores

Painting dynamically

1999-10-22 Thread ALPESH KOTHARI
the paint method in comp() to plot the rectangle. I cannot shift my paint method to xyz as it dosen't work properly(i.e. the tooltips displayed by JComponenet are then not visible). Thanking You Alpesh = KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANG

JComponent

1999-10-18 Thread ALPESH KOTHARI
Hello Everybody, I have written a small piece of code for JComponent. But it doesn't paint the JComponent to the frame. When I set the backgnd and foregnd colors, they are not visible. Can you please run the code and point me what I am missing in it? THnaking You, Alpesh = KOTHARI A

Re: JDBC problem!

1999-09-30 Thread ALPESH KOTHARI
Hello, What you told is perfectly true. But in my case it is a different story! When I read only characters then also it create the problem. To rectify it I have modified my program and now I am reading only few characters from the file(i.e. not going till end of file). Then also the same proble

JDBC problem!

1999-09-28 Thread ALPESH KOTHARI
Hello Everybody, I have written one program in java2 to write the data in postgresql. I am storing one integer and one string in the database. When i read the string from the file it is proper. But when i store it, it gives the following exception: java.sql.SQLException: ERROR: parser: parse err

Postgresql and java Connectivity

1999-09-19 Thread ALPESH KOTHARI
tem.out.print(","); > > System.out.print(rsmd.getColumnLabel(i)); > } System.out.println(""); > boolean more = rs.next (); while (more) { > > for (i=1; i<=numCols; i++) > { > if (i > 1) System.o

Exception for Outof Memory

1999-09-10 Thread ALPESH KOTHARI
java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) I am not able to debug where the problem is? I am using P-III with 128 MB RAM. The program is similar to any commerical softwarewhich shows company name first and then the main window. Thanking You Alpesh

Testing whether executable or not

1999-09-09 Thread ALPESH KOTHARI
Hello, I want to test that a given file is executable or not using java. Can I do it? Running the executable is possible, but is there any explicit testing command? THanking You all, ALpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA

Destroying the object

1999-09-07 Thread ALPESH KOTHARI
.java i want to destroy it. } } Any Ideas?? Thanking You all, ALpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com

listining action from child frame

1999-09-02 Thread ALPESH KOTHARI
Hello all, I have got a main window and a child window. I want to listen the action of the button pressed from the child window and take necessary action in the main window. What should I do? Also, if some reference of Web, or book is available please let me know. With regards, alpesh

compiling files

1999-09-02 Thread ALPESH KOTHARI
the feature built in compiler like that or a bug? I have read in java books that we dont need to compile the program seperately. I would like to hear from you. Thanking All, WIth regards alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA

EventListener

1999-08-22 Thread ALPESH KOTHARI
thank if someone answers it. THanking YOU Alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com

Executing other Programs through java

1999-08-17 Thread ALPESH KOTHARI
va. In the book in which this program is given the command for String cmd[] is as: String cmd[]={"ls","/java/src/java/lang/Runtime.java"}; But, I am not able to locate Runtime.java anywhere on my machine.. Please point out the correct procedure to run the above code. Thanks Al

Failing to Prepare Postgres.jar file

1999-07-30 Thread ALPESH KOTHARI
with "-deprecation" for details. 1 error, 1 warning make: *** [postgresql/CallableStatement.class] Error 1 If any one of you have came across this error please help me. Thanking You, Alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALOR

Java and C programs Integration

1999-07-02 Thread ALPESH KOTHARI
inates. If any one of u have came across such error please help me. in /usr/lib crt1.o is present. Thanking You, Alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA _ Do You Yahoo!? Get

Changing heap size

1999-01-02 Thread ALPESH KOTHARI
heap size to some larger number? Thanking You, With Regards, Alpesh = KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com