Thomas Enquist

Greenhorn
+ Follow
since Aug 11, 2003
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 Thomas Enquist

that explains a lot i think i must have found teh solution to my problem
thanks every one
shall get to make it work and get back to you on the result
Thomas
20 years ago
its Different Class RemindDialog.java with its own constructor and methods.
i am declaring RemindDialog rd ;
in the TimerTask and then checking in the if condition as follows
if (rd== null){
rd = new RemindDialog();
}
else{
rd.update()
}
for some reason rd is always null even tough the timer task has instantiated the RemindDialog before .......
20 years ago
hi joe
i using java.util.Timer i.e
Timer t = new Timer();
t.schedule(TimerTask tt, Date d);
TimerTask tt has to implement a run method
and it is in this run method i am checking if the jdialog is instatiated or not and the jdialog Displays the current time it popped and a certain other time which is determined at run time .jdialog is its own class TimerDialog and has it owns gui components (buttons,comboboxes) which have actions associated with them.. hope this helps you if you need anything more holla at me
Thomas
20 years ago
the problem in detail
i have a timer which pops a jdialog at a certain intervals , the issue is i donot want to create different jdialogs for each and every timer task instead i would want to use thesame jdialog for all the timer tasks,
in the timertask run method iwant to find out if there was jdialog class has been initialised if yes perform the update of teh gui components else create a new jdialog.
for some reason even if the timer task just created a jdialog the next timer task still creates a new jdialog which i donot want
the if condition always seems to be true i.e m ==null .......
it doesnt go to the else part at point of time
please advice and thanks in advance
Thomas
20 years ago
Hi,
i have a problem with my code, i am trying to find out if a particular class has been instantiated or not if it is not i create an object else i have to use a method in that class
what is the way i should approach to implement the above said logic any help would be greatly appreciated
thank you in advance
Thomas
20 years ago