ivin jacob

Greenhorn
+ Follow
since Apr 05, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ivin jacob

Hi,

I have an appplication which needs to create and upddate RSS Xml at reglar intervals of time.

Creating the XML is done.

Now i need to run this bunch of code to create th XML at regular intervals of time. Can some one help me how to configure Tomcat to run it as a Thread
at tomcat start up and at regular intervals

I am using JDK6,tomcat6,JSF,ROME(for RSS).
15 years ago
I am getting the Following exception while trying to connect to the SQLSErver DB

I am using jtds-1.2.2.jar File.

I am using Windows Authentication and i am able to connect though the SQL SErver Client Application

I complete stack trace is pasted below

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (I/O Error: DB server closed connection.)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at sgstool.dbConnection.DBConnector.getSimpleConnection(DBConnector.java:43)

Can anybody tell me why this is occuring and tell me how this can be tackled

Regards,

Ivin
I have a JList bu the name organisationList and it contails many values
like ALL , US , UK, INDIA



The list allows multiple selection
I have a requirement in which the user should not be able to select ALL,
if he/she has already selected any other item

Can any body help me tackle this.

Regards,

Ivin.Jacob
16 years ago
Hi , first of all sorry for posting this in this topic. since i have not found any POI thread i am posting this question here.

I want to get the numeric value in a cell .

I am able to get the value from the cell if its a normal value from the code
pasted below.

but i am not able to get the value of the cell if a formulla is applied in the cell .

If a formulla is applied in a cell , i can identify it as HSSFCell.CELL_TYPE_FORMULA. but i am not able to get the actual value.

Please do help me if anyone has the solution.

If any one is aware of any poi thread , please do provide the url



Its a class from the library jcalendar.jar

jmonthchooser and jyearchooser areswing components available in the library used for selecting month and year.

i got it done by the following snippet

{code}

JSpinner spinner = (JSpinner)jYearChooser1.getSpinner();
((javax.swing.JTextField)spinner.getEditor()).setEditable(false);

{code}

Thanks,

Ivin
16 years ago
Hi ,

can anybody show me how to make the
jmonthchooser and jyearchoosr as non editable.

i could make the jdatechooser as non editable by
using the following statements

((JTextFieldDateEditor)jDateChooser3.getDateEditor()).setEditable(false);

but i could not find anything similar to this for month and year chooser

please help

regards,

Ivin
16 years ago
Hi,

I am using jtextarea to display status of each file i am tring to extract.
Based up on success or failure , i want the color of the status text displayed in the textarea to be changed like (black for success and red for failure).

Can this be done using Jtextarea , or are there any other alternative.
16 years ago
How do we proceed if we want to throw userdefined exceptions from the run method.

if we write a method called

public void run() throws UserDefinedException{


}


will this get invoked when the thread.start(); method is called


If not how can we handle this

Regards,

ivin

please respond.
I want to have a cancel feature in a jprogress bar .
The genericButton1 click invokes the progress bar and the jButton invokes the cancel button .
The code pasted below does not cancel the progress bar.

However i found out that if i invoke the updateBar method using a thread like this





Could any one explain me why it does not work without a thread and also
whether what i have followed with a thread to cancel the progress is a good approach else suggest the best practice


16 years ago
its actually a string
16 years ago
valid year in the sence a valid year in our era in yyyy format.
16 years ago
Hi ,

How can i validate whether a particulat integer is avalid year or not?

somthing like isValidYear(int)

please help
ivin
16 years ago