9 Topics

Member Avatar for
Member Avatar for Violet_82

HI guys, as I was playing with observers today I came across something interesting. I have a program which keeps a list of users (Observers) and products (Observables) and the idea is that whenever the availability (that's a property of a product) changes the Observers are notified of this change. …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

hi guys, I've come across observers while working ona very very large project, and I didn't quite understand how they were structured and I suppose this had something to do with the huge size of the project itself. Anyway, I then decided to delve a little more into that, I …

Member Avatar for JamesCherrill
0
352
Member Avatar for sk8ergirl

Hi, I'm working on my assignment there are two parts of the assignment first part was to create class (ClassOne,ClassTwo,ClassThree,ClassFour,ClassFive) ClassFive extends ClassTwo and ClassTwo is abstract the secod part is to add the iobserver and iSubject , but I don't know how to implemet this part in the UML …

Member Avatar for sk8ergirl
0
160
Member Avatar for anisha.silva

Hi I have a scenario that i need to implement. the scenario is below. I have a class handler and a class Healthmonitor. every 10 seconds i have to send a msg to HealthMonitor to update a variable. in one point if it didnt send a msg in a multiple …

Member Avatar for tinstaafl
0
256
Member Avatar for solomon_13000

The problem with my code is that the update method doesn't get invoked even after I notify the observers. Did I miss something in my code? package com.observer3; import java.awt.FlowLayout; import java.util.Observable; import java.util.Observer; import javax.swing.JLabel; import javax.swing.JPanel; public class A extends JPanel implements Observer{ JLabel lbl; public A(){ setLayout(new …

Member Avatar for solomon_13000
0
422
Member Avatar for anisha.silva

HI Part 1: I have 4 classes Handler, ResultE, QueryE and the HealthMonitor. The Handler, ResultE, QueryE classes have to send a message every 1 min (for example, the time is defined in each class) to the HealthMonitor. So i implemented the Observer patter. The Handler, ResultE, QueryE as Subjects …

Member Avatar for anisha.silva
0
200
Member Avatar for anisha.silva

HI, how do i draw the observer pattern in a component diagram? appreciate if someone could point me to a link thanks,

Member Avatar for TnTinMN
0
122
Member Avatar for blackmagic01021

Hello, I have a observer pattern based JTable. With time it is poulated with new data packets. I use addRow functionalities to add my rows. But I want to put always the last coming datapackets at the top. How to do it??

0
127
Member Avatar for deucalion0

Hi there, I have been studying he Observer pattern among other design patterns, and I am having difficulty understanding how it works. I have read the design patterns book by Head First where applicable and researched it like crazy on the internet. I was wondering if anyone can point out …

0
85

The End.