Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

lahiru nanayakkara

Greenhorn
+ Follow
since Jun 18, 2013
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 lahiru nanayakkara

i have created swingworker instance and scheduled it in worker thread(tAccess = new TimeAccess()).execute()) this instance to access the time. but i need another swing worker instance to continuously access database.how to do this?

// when execute both instances ,sometimes GUI become unresponsive
tAccess = new TimeAccess()).execute()
dAccess = new DataAccess()).execute();

think now time is 12:23:01 then it shows 12:23:04 but you know it must be 12::23:02.
i know that cause ,when other threads are at running state but is their any solution ?


this time i've created 3 threads and remove connection with jlabel instead for jlabel it shows through Sys.out.println(); ,All threads are running but time is skipping.




so how can i set time to j label?
i've created two threads and first one for clock(it shows current time),second thread continuously access the database(it continuously shows data which updated by users).if we do not insert thread.sleep() one thread run longer time therefor other thread can't run. so how can i manage this two threads.






8 years ago
No,I mean we cannot assign thread object to "t1" variable.why is that?

Thread t1=new Thread();
8 years ago

When considering the inner classes .we must modify variables using "final" keyword .why is that?
8 years ago
why we cant assign thread object address to reference variable?explain
8 years ago

Above programe prints "myMethod class A" I created object from class B but it execute method in class(template) A.please explain
8 years ago


In here "a1" also keeps address of B object.so why can't assign "a1" to "b1" directly(without casting)
8 years ago
What is DefaultTableModel class.what can we do from it .please explain
9 years ago
i heard that java class works as template and also a data type . is this correct or wrong?
9 years ago