Chandhrasekar Saravanan

Ranch Hand
+ Follow
since Jun 16, 2002
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 Chandhrasekar Saravanan

Hi,

I would first explain, what I have done. I have a class called SessionCollectionDemo which holds the Main() method.

There are two classes SessionCollection and Session. I am creating instances of session and I am adding session objects. I wanted to change the values of session object using a method.

I am using updateSession method() in session collection. it is where I am getting problem. I need to update various variables so what is the best way to do i
t. I like to have the updateMethod() in SessionCollection class and I should be able to change all the variables of session like constructors.
(just to keep the code neat)

for testing I also created an UpdateSession class, but I am not satisfied with it.

basically what I want is a better way of doing updateSession() method in SessionCollection class.

19 years ago
Hi,
My system has an Intel Dialogic which is connected to two T1 lines. unfortunately these lines get hanged daily. currently, I am manually stopping and starting the service. Is there a way that I can automate it, i.e. write a code, which would stop and start the dialogic service again.
Dialogic is running in windows 2000. what scripting language should I use to write the code. will .wmi scripts will help me in solving the issue. please let me know
Thanks
Chandhrasekar Saravanan
19 years ago
Thanks for your suggestion. As you said I need to go with doLayout() method of ScrollPane. I added doLayout() method to my ScrollPane, but i couldnt find any difference. I did not make any other modifications to my previous code. The dimension remains the same.
I am adding only the modified code below.
20 years ago
I am using awt to display my files. I need to format the lines i need to display, so I am using ScrollPane to display the lines and not the text area.
The code is below. I am setting the dimension of the scrollpane using setDimension, in the PaneWriter class.
As I said before, I could display the files only for the dimension I have set. I need to set the scoll pane dimension according to the file size.
20 years ago
Hi,
I would like to read a file in Java ScrollPane. The problem I face is in setting up the ScrollPane size. I have set up the ScrollPane size initially. I dont have any problems, if the file is small and could be accomodated in the ScrollPane. if the file size is larger and exceeds the scrollpane size I couldnt display few Lines.
so how could i get through this problem. Is there a way that I can set Pane size depending on the file size i am going to display in the pane.
Thanks
Chandhra
20 years ago
I think i havent mentioned the problem clearly. I do have a scrollbars in my Textarea. the problem is i need to mention an initial size. if my file is too large, even though i have scrollbars, i am not able to display the files when it exceeds the Textarea size. how to overcome this problem
20 years ago
Hi,
I am having an AWT window with a TextArea and few buttons. i wanted to view text files in my TextArea box. as i dont know the file size before how can i set the size of the TextArea. is there an way that we can dynamically set the size of TextArea.
Thanks
Regards
Chandhrasekar Saravanan
20 years ago
Hi ,
I am trying to have an CheckboxGroup in Dialog,
but i couldnt .here is a sample of my code

what could be the error
20 years ago
Hi,
I am getting the following error,

Exception occured during Event Dispatching:
java.lang.NoSuchMethodError:java/net/URLEncoder.encode(Ljava/lang/String;Ljava/lang/String Ljava/lang/String;
at getURLPostString2.<init> (bytecode 552)
at getURL2.<init> (bytecode 200)
at testFrame.actionPerformed(bytecode 224)
at java.awt.Button.processActionEvent(bytecode 12)---- --
I initially had URLEncoder.encode() method in getURLPostString2.java then i removed that method from that class itself. i have the right method now in testFrame.java, there is an other class called fetchURL.java which uses the same method and it doesnot throw any exception. but the same exception is occuring in getURLPostString2.java even when i removed encode method from getURLPostString2.java. i have done all the necessary stuff like saving it and recompiling it but still the problem persists
i am using jeode evm to compile my java files
why is this weird problem occuring even when we have removed that method.
20 years ago
Hi,
I have an class which instantiates an object of another class.
i find that the object throws an exception, but i am not able to
catch that exception in my present class.
for ex
The TestClass test object throws an runtime exception, i am able to
print that exception in TestClass , but i couldnt
catch that same exception in getURL class.
[/CODE]
20 years ago
Hi,
I do face the same problem, could anyone suggest why we are not able to delete the files when we call an instance of a class
20 years ago
hi cindy,
I really couldnt get your answer. i am able to count the charecters of the string. but i couldnt find any method to find the memeory it would occupy.
please help me with a little more detailed answer
Thanks
Chandhrasekar Saravanan
20 years ago
Hi ,
I would like to check the memory the string occupies using java.
is there also an way, i could find the memory a file would occupy
Thanks
Chandhrasekar Saravanan
20 years ago
Hi ,
I am using Insignia Jeode JVM to run my java application. Jeode Jvm is compatible with jdk1.1.
In my application I am using java.net.Authenticator class, which is availaible only in jdk1.2.
I have compiled in my Linux machine using
javac -target BasicReader.java
and this works fine in the linux machine which has jdk1.4 in it.
But when i transfer the .class file to Jeode and when i try to run the evm BasicReader i am getting the following error.
Exception in thread "main", java.lang.NoClassDefFoundError: java/net/Authenticator at BasicReader.main(bytecode 0)
could you please explain me why this happens and how to rectify it.
20 years ago
Hi,
I am submitting a form, and on submit i am also loading a page in the top frame, but i noticed that the frame is not the current one. it is the previous version. i wanted to know how to get a recent version of the web page in the top frame.
<script language="JavaScript">
var OutT="This is testing";
function changeFrame_a(){
parent.frame_a.document.location="http://ecelx00.eng.uab.edu/twiki/bin/view/Zaurus5000d/NewTestpage";
}
</script>
</head>
<form name="main" action="/twiki/bin/save/Zaurus5000d/NewTestpage" method="post">
<input type="hidden" name="text" value="" />
<input type="submit" value=" Save Changes " CLICK="main.text.value=OutT;return changeFrame_a()" />
</form>
whenever i submit the form , a new version of webpage is created , i want that version of webpage to load in my top frame.
:roll: