RAVI Kollepara

Greenhorn
+ Follow
since Feb 05, 2004
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 RAVI Kollepara

Hi preuss,
But the example says abt win 32 application. Can u give me the JNI example for Linux O/s . Is there any possiblity to give a solution which has to work independant of platform?
Anyway Thanx for showing a window to my problem.
Ravi Kollepara
19 years ago
Hi coffeebeans,
I am having the requirement to get the CPU usage of the machine where my java application is running. Not only that, i need to show the memory usage etc., statistics. Is there any solution for this problem.
I can issue a TOP command on linux and get the output but it should be platform independant.
Any help???
Thanx
Ravi Kollepara
19 years ago
Hi Jeanne ,
I am doing the same. Here the repaint manager is taking time to repaint. Is there any possiblity to make JDialog double buffered?
Thanx,
Ravi
19 years ago
Hi ,
I am developing a GUI application for embedded board which is have less resources. While i am showing a JDialog from a Frame it display a gray color screen and then painting the Dialog(Contains some components like JButton, JLabels etc..)
Is there anyway to make JDialog double buffered. Will it work for my problem?
Thanx,
Ravi Kollepara
19 years ago
HI,
How to handle Day light savings in Gregorian Calendar. Do we need to set any properties or GC itself will take care the things. I am passing milliseconds and Timezone to the GC. I am passing "Asia/Almaty". But the updation is not proper.
Can any one give the suggestion.
Ravi
20 years ago
even if we use invokeandwait the inner thread reference will be kept in eventdispatcher thread.
CurrentThread in the sense there is no necessity that we will get the handler of EventDispatcher thread.
Anyway let me ask one question that i have faced in my project.
/**
*Class to blink the sub title lable
*/
private class BlinkingThread
implements Runnable
{
private boolean stopTheThread = false;
private Thread currentThread = null;
public BlinkingThread()
{
currentThread = new Thread(this);
currentThread.setPriority(Thread.MAX_PRIORITY);
}
public void run()
{
try
{
while(!stopTheThread)
{
currentThread.sleep(1000);
lblSubInfo.setVisible(false);
currentThread.sleep(1000);
lblSubInfo.setVisible(true);
}
}
catch(Exception ex)
{
System.out.println("Error blinking the sub title:"+ex.getMessage());
}
}
public void startTheThread()
{
currentThread.start();
}

public void stopTheThread()
{
stopTheThread =true;
}
}
This is the code segment the lable has to blink at the rate 1Hz. The thread is running properly. But the updation of lable is not proper. sometimes it will be fast and sometimes it will be slow. What could be the reason. What i am suspecting is the repaint events is getting queuedup. Any suggestions. There are one more High priority thread is running on the machine that is timer thread.
Any ideas?
20 years ago
Hi,

Thatz not the way to increase the priority. Do u know what is the priority of Event Dispatcher thread in JVM? We have a timer threads in our project which are always should be in HIGH priority. Now tell me the solution.
Priority of the Event Dispatchter thread is 7
Thanx,
Ravi
20 years ago
Hi ,
I am doing a project with JDK1.4 and RH Linux. with the embedded processors. Here i am having the problem with the EventDispatcherThread. Itz responding very late. so , i want to incrase its priority. Is there any way to increase itz priority.
Thanx
Ravi Kollepara
20 years ago
This core dump is because of memory leakages. When ever u are referencing a pointer out of scope jvm will crash. That time this core dump will happen in linux or solaris.
As of my knowledge this is observed when i did coding with my project. A swing application is a front end and a C is backend. I am referring this C structures through JNI. It used to happen whenever i refer a wrong structure. Since C is native code.
Thanx
20 years ago