Srivatsan santhanam

Greenhorn
+ Follow
since Jan 04, 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 Srivatsan santhanam

Making the OPTION disabled gives you the same effect as ReadOnly in Select.

Else, you might have to build your own Select Control

like [inputField][Image]

and on clicking the image, display a floating menu below the inputfield.
Inside the floating menu, you have have full control over each items visualization.

-Srivats
I guess, the below code should suffice..

<link rel="stylesheet" type="text/css" media="print" href="print.css" />

print.css:
@media print{
body{font-family: arial; font-size: 6pt; border-width: 1px; border-style: dashed;}

// Your other Defs which you want to include for Pretty Print
}
Yes Ernest... JPDA is the only way....

But the problem here is its too low level of development...

Gues.. if you need something, you should go to any depth...
17 years ago
Hi folks,

is there a way to find the number of References for a given Object at Runtime.

At runtime, the program would be given the ClassName, from which can we query the JVM Runtime to find how many instances and/or references have been created for this ?

-Srivats
17 years ago
yes.. provide your own unique implementation of
hashCode and equals(..) for Inner class.
17 years ago
Also use W3C standard way of writing HTML.

Even though IE will excuse you.... Mozilla based browsers will not...

This is not a sign of weakness on Mozilla part, but sign of deviation from standards from IE.

Refer to Gecko Reference of Mozilla
http://developer.mozilla.org/en/docs/Gecko_DOM_Reference
Yes you can....

simply put a 1x1 image as a placeholder like

<img class="bgimg" src="1x1.gif">

and now for the CSS Definition value

.bgimg{background-image:url(../YourImage.gif?7.1.0.0.0)}

Bingo..... Your image cannot be copied by the client using right click > save image As...


Cheers,
Srivats
refer:

http://java.sun.com/docs/books/tutorial/essential/io/providing.html


PS: you would be better off if you try to do some search of your own before demanding a sample code...


-Srivats
17 years ago
Why don't you use XML data representation?

Using XML is not trying to use all *Hi-Tech* methodologies in you program, but trying to be flexible and manipulate the info in a efficient manner

When you parse the XML, you automatically get the DOM tree representation. From there on its very easy to do any kind of query/manipulation like variable Bonus, and other operation you might want to introduce later�


Any day, I would vouch for XML data representation rather than flat files using string delimiters. (Not because the data storage looks neat and orderly, but because the kind of operations I can do with XML data representation. Also Java+XML work really well together.!!)

-Srivats
18 years ago
Sorry a small typo

and pass reference of this Object/Bean and do the same swapping
18 years ago
Make Str1 and Str2 attributes of a Bean.

and pass reference to this Object and do the same swapping.
As only Object references are passed by value, you achieve the same.

(But no good programmer would do it this way...!!, unless there is a pressing need to do so)
18 years ago
Do this:

interface A{
void meth1();
int a=5;
}

interface B{
void meth2();
int b=9;
}

public class MI implements A,B{

public void meth1(){
System.out.println("Method of A and a is:" + a);
}
public void meth2(){
System.out.println("Method of B and b is:" + b);
}

public static void main(String args[]){



MI ob=new MI();
ob.meth1();
ob.meth2();
}
}
18 years ago
How about using Log4j from Apache project,

Its very very flexible and quiet easy to use.

The best part.. its OPEN SOURCE and also works excellently in Production enviroment too..!!
18 years ago
Wow.. Tony your reply was just too good.

To add to your reply...

Be careful with usage of Clone as it does only a Shalow Copy.!!
18 years ago