Click here to Skip to main content
15,888,175 members
Home / Discussions / Java
   

Java

 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
Richard MacCutchan9-Oct-13 4:24
mveRichard MacCutchan9-Oct-13 4:24 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
chdboy9-Oct-13 19:03
chdboy9-Oct-13 19:03 
QuestionProblem On SQL Server driver Configuration in JDeveloper Pin
AMADIAR3-Oct-13 5:38
AMADIAR3-Oct-13 5:38 
SuggestionRe: Problem On SQL Server driver Configuration in JDeveloper Pin
Richard MacCutchan3-Oct-13 21:26
mveRichard MacCutchan3-Oct-13 21:26 
SuggestionRe: Problem On SQL Server driver Configuration in JDeveloper Pin
Prasad Khandekar8-Oct-13 4:07
professionalPrasad Khandekar8-Oct-13 4:07 
QuestionUsing the Observer and Observable Class Pin
Ryan Little30-Sep-13 16:26
Ryan Little30-Sep-13 16:26 
AnswerRe: Using the Observer and Observable Class Pin
Shubhashish_Mandal30-Sep-13 22:31
professionalShubhashish_Mandal30-Sep-13 22:31 
QuestionRe: Using the Observer and Observable Class Pin
Ryan Little1-Oct-13 3:11
Ryan Little1-Oct-13 3:11 
Shubhashish, thank you for taking the time to analyze and reply to my original message. I am learning new concepts in Java to become a better programmer.

I have taken you comments into serious consideration and updated the code. The class headers for CValue and CData are as follows:
Java
public class CValue extends Observable
public class CData implements Observer

I would execute the test program for a minute to two minutes before its crashes out. What I am observing during execution is this:

CMain.doAction()
CValue.setItsValue(double)
CValue.notifyObservers()
CData.update(Observerable,Object)
CMain.doAction
...
Repeat until thread crash

It seems the events are not being closed completely after the servicing of the observer. I know I am creating a lot of events being generated quickly but isn't there a mechanism which would close these events or am I not closing them down properly myself?

Ryan
AnswerRe: Using the Observer and Observable Class Pin
Shubhashish_Mandal1-Oct-13 3:38
professionalShubhashish_Mandal1-Oct-13 3:38 
GeneralRe: Using the Observer and Observable Class Pin
Ryan Little1-Oct-13 7:29
Ryan Little1-Oct-13 7:29 
GeneralRe: Using the Observer and Observable Class Pin
Shubhashish_Mandal2-Oct-13 22:26
professionalShubhashish_Mandal2-Oct-13 22:26 
GeneralRe: Using the Observer and Observable Class Pin
angrybobcat7-Oct-13 20:55
angrybobcat7-Oct-13 20:55 
QuestionSVM implementation in JAVA Pin
Member 1030559829-Sep-13 18:07
Member 1030559829-Sep-13 18:07 
AnswerRe: SVM implementation in JAVA Pin
jschell30-Sep-13 8:33
jschell30-Sep-13 8:33 
QuestionGet & Set Pin
Shuvo Sarker29-Sep-13 10:32
professionalShuvo Sarker29-Sep-13 10:32 
AnswerRe: Get & Set Pin
bryce29-Sep-13 13:14
bryce29-Sep-13 13:14 
AnswerRe: Get & Set Pin
Richard MacCutchan29-Sep-13 21:18
mveRichard MacCutchan29-Sep-13 21:18 
AnswerRe: Get & Set Pin
Logical9416-Oct-13 19:07
professionalLogical9416-Oct-13 19:07 
QuestionGetting value from an eventListener? Pin
KatsuneShinsengumi28-Sep-13 3:31
KatsuneShinsengumi28-Sep-13 3:31 
AnswerRe: Getting value from an eventListener? Pin
Richard MacCutchan28-Sep-13 6:46
mveRichard MacCutchan28-Sep-13 6:46 
GeneralRe: Getting value from an eventListener? Pin
KatsuneShinsengumi28-Sep-13 18:47
KatsuneShinsengumi28-Sep-13 18:47 
GeneralRe: Getting value from an eventListener? Pin
Richard MacCutchan28-Sep-13 21:19
mveRichard MacCutchan28-Sep-13 21:19 
GeneralRe: Getting value from an eventListener? Pin
KatsuneShinsengumi28-Sep-13 21:26
KatsuneShinsengumi28-Sep-13 21:26 
Questiontell me java code Pin
Member 1030137427-Sep-13 9:30
Member 1030137427-Sep-13 9:30 
AnswerRe: tell me java code Pin
NotPolitcallyCorrect27-Sep-13 9:36
NotPolitcallyCorrect27-Sep-13 9:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.