Click here to Skip to main content
12,634,435 members (25,125 online)
   

Java

 
QuestionCreating a class that extends more than one class. Pin
Bill.Moo4-Oct-12 3:43
memberBill.Moo4-Oct-12 3:43 
AnswerRe: Creating a class that extends more than one class. Pin
Nagy Vilmos4-Oct-12 4:00
memberNagy Vilmos4-Oct-12 4:00 
GeneralRe: Creating a class that extends more than one class. Pin
Bill.Moo4-Oct-12 4:48
memberBill.Moo4-Oct-12 4:48 
AnswerRe: Creating a class that extends more than one class. Pin
Peter_in_27804-Oct-12 4:03
memberPeter_in_27804-Oct-12 4:03 
GeneralRe: Creating a class that extends more than one class. Pin
Bill.Moo4-Oct-12 4:59
memberBill.Moo4-Oct-12 4:59 
GeneralRe: Creating a class that extends more than one class. Pin
Peter_in_27804-Oct-12 12:36
memberPeter_in_27804-Oct-12 12:36 
Blush | :O That's what I get for trying to make sense at midnight. I use "Java in a Nutshell, 5th ed". Observable/Observer are since Java 1.0 and the comment is "The Observable class and Observer interface are not commonly used. Most applications prefer the event-based notification model defined by the JavaBeans componenent framework and by the EventObject class and EventListener interface of this package. [java.util]" So I misread preference as superceding... I do remember the Event model being introduced (in Java 1.1) in response to a perceived hole in functionality.
Looks like you want to make your UI implement EventListener and have the worker thread spit out (your subclass of) EventObjects as required.
I'm sure there are plenty of examples floating around the web. (Java's like that Smile | :) ) I'd start with Mr G and something like "Java EventObject".

Good hunting,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

AnswerRe: Creating a class that extends more than one class. Pin
pasztorpisti4-Oct-12 13:14
memberpasztorpisti4-Oct-12 13:14 
QuestionRe: Creating a class that extends more than one class. Pin
Monster Maker21-Oct-12 22:08
memberMonster Maker21-Oct-12 22:08 
AnswerRe: Creating a class that extends more than one class. Pin
Gowtham Gutha15-Nov-12 7:59
memberGowtham Gutha15-Nov-12 7:59 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 5 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid