Shikha Upadhyaya

Ranch Hand
+ Follow
since Aug 17, 2011
Shikha likes ...
Chrome
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shikha Upadhyaya

I am developing an application which has to dynamically plot a graph by reading the values in a log file which is refreshed every hour and which resides in a remote machine. I am using JChart2D library for the same. I am unable to find how to start off.

As of now, I am reading all the log files and storing it in the local system. But that would not serve the purpose as the values keep changing every hour. Kindly guide.
10 years ago
I am learning how to create dynamic charts using JChart2D. Can anyone let me know what is this itrace in the following code?

Digen Mahara wrote:Shikha as Michael Dunn said use the dispose() method
eg : if your parent frame is Form1 then it works like this





I am not able to do this because my code is something like this:
10 years ago
I tried this code and it worked fine.

I now want to know how to close the parent frame automatically when the OK button is clicked.
10 years ago
Hi,
I have a form which takes username and password and authenticates the user. I need to open a new form once OK is clicked. How to I do it?
10 years ago

Shahzad Latif wrote:If you want to open multiple files at the same time and extract data from those files then you will have to try multithreading. In this way, you'll be able to read one file per thread. Please see the following two help topics on multithreading in Java:

http://www.roseindia.net/java/thread/Java-Multithreading.shtml (Conceptual)
http://www.tutorialspoint.com/java/java_multithreading.htm (Code Example)


Ok thanks. I will try this.
10 years ago
I have a couple of log files containing CPU usage data, memory usage data etc in a remote system. I have to consolidate them and display them as a dynamic data which will refresh every hour. My question is how to extract only the data what we need from these files (selective extraction) at a time with one click.

I have been able to retrieve one file at a time but not multiple files.
10 years ago

Riaan Nel wrote:Look at line 108. You want to close the frame, but all you do is to make the components on your frame invisible. You need to dispose of the frame.

Something like this.


The PmtGui.this is used to tell your anonymous inner class (MouseAdapter) that you are referring to the outer class (PmtGui).

On a side note, don't use MouseListeners on buttons. If you disable the button, the MouseListener will still register events. Rather use an ActionListener.


Ok. Thanks It's working now
10 years ago
I am trying to write the mouseClicked event for the "Cancel button" where the entire window has to close on pressing the Cancel button. I wrote the following code:

But, when I run this code, only the contents of the window get erased and the window remains unclosed. Please let me know what has to be written between lines 104 and 110.
10 years ago
Hi, it is working now. I followed this link. But I am not able to figure out what exactly has been done so that my code is working fine now.
10 years ago

Tim Moores wrote:Correct. Is that host name resolvable on the machine where you're running the code? It sure is not on mine.


Yes, the hostname is resolvable. When I tried out this out it is working fine. But when I tried to write something on my own, I is not working out.
10 years ago

Tim Moores wrote:Well, what do you think the error message is trying to tell you?


I guess it is not able to locate the host. Is it right?
10 years ago

Tim Moores wrote:So the problem is solved now?


No. It's not solved.
10 years ago

Tim Moores wrote:Are you going to tell us what exception that was, and in which line of code it happened, or are we supposed to guess?


Oh sorry. Here's the exception:
10 years ago