Hamsagayathri Palanisamy

Ranch Hand
+ Follow
since Mar 10, 2008
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 Hamsagayathri Palanisamy

Hi,
I'm having a java class in jar file.. from java class i'm connecting to oracle..
For that i need to set the classpath for driver..
can anyone please say me how to set the class path in jar file..
Thanks in Advance.

-Thanks & Regards,
Hamsa
14 years ago
Hi,
Why there are no global variables in Java?
please explain

-Thanks & Regards,
Hamsa
Hi,
can anyone please say me how to add html tags inside JTextarea?
Thanks in Advance.

-Thanks & Regards,
Hamsa
14 years ago


for data[n][1] i'm getting values from resultset as "value1 value2 value3" in horizontal. i need to format that to vertical as

value1
value2
value3

for data[n][1] where 'n' may be any value.

-Thanks & Regards,
Hamsa
14 years ago

Originally posted by Maneesh Godbole:


Do I understand you correctly, if I say, currently you are getting this:


whereas what you want to achieve is this:


where x and y are some other values?






No Maneesh,i didnt mean that way. As for my code,I'm getting as follows


But what i want is



Hope now you got it.please help me out.

-Thanks & Regards,
Hamsa
14 years ago
Thanks for your reply.But, what i meant is,
I have created JTable as follows.
String fields[] = {"column 1", "column 2","column 3"};
int i=0;

ResultSet rs = preparedStmt.executeQuery();

while(rs.next())
{
for(int j=0;j<3;j++)
{
data[i][j] = rs.getString(j+1);
i++;
}
}

In data[n][1] where 'n' may be any value ..
i'm having value as "Apple Orange Mango" but i want as
Apple
Orange
Mango
JTable jt = new JTable( data, fields );
where 'fields' represents columns.
please help me out.

-Thanks & Regards,
Hamsa
14 years ago
hi,
can any one please say me the equivalent for "\n" in Swings.
because i'm having the data in JTable like
For Example

Apple Mango orange

i need the output format like
Apple
mango
orange
please help me out..

-Thanks & Regards,
Hamsa
14 years ago
is main() in java is final by default?
or else do we need to specify public static final void main(String args[])
correct if i'm wrong.

-Thanks & Regards,
Hamsa
Hi,
I have created JTable in Swings.I would like to make the contents in that JTable as "hyperlink". I have generated JTable as follows.

I want all the values in the JTable as "Hyperlink" text..
How this can be achieved?



-Thanks & Regards,
Hamsa
14 years ago
Hi All,
can anyone please say me the difference between the inheritence and delegation in java? Thanks in Advance.

-Thanks & Regards,
Hamsa
14 years ago
Hi,
can anyone please say how to insert values in JTable dynamically.
I need to create JTable(n,2) where values needed to fill dynamically.
please help me out. Thanks in Advance.

-Thanks & Regards,
Hamsa


-Thanks & regards,
Hamsa
14 years ago
Hi,
As of me,swing is a desktop application and not the browser application.
is it rite? or is it possible to run swing application in browser?
correct me if i'm wrong.

-Thanks & Regards,
Hamsa
14 years ago
one more doubt please
In my jar file named Myjar having the following contents..
under MyPackage

--> MyClass
--> Image file (bmp)

"MyClass" takes "Image file" as input and produce another "Image file" (bmp)as output.
I want to write that output of that "MyClass" to the "Myjar".
How can we do that?is there any possibility?

-Thanks & Regards,
Hamsa
14 years ago

Originally posted by Campbell Ritchie:
You need to put the name of your class with the main method in the jar's manifest file. Read this, particularly the bits about manifest files and setting the entry point.





Thank you campbell. It works fine.

-Thanks & Regards,
Hamsa
14 years ago
Hi all,
When i try to run the .jar file,the following error is thrown.
"Failed to load Main-Class manifest attribute from"
How could i correct the above error.
As i'm very much new to this jar file creation.I tired with
following sample
jar cf sample1.jar GetIP.class
and just i run the .jar as
java -jar sample1.jar

is that rite are something else need to follow?
correct me if i'm wrong.

-Thanks & Regards,
Hamsa
14 years ago