Click here to Skip to main content
       

Java

 
QuestionData Structures - ArrayDeque <T> extends AbstractList <T> PinmemberMember 94884535-Oct-12 16:29 
AnswerRe: Data Structures - ArrayDeque extends AbstractList PinmemberTorstenH.5-Oct-12 21:36 
QuestionCreating a class that extends more than one class. PinmemberBill.Moo4-Oct-12 2:43 
AnswerRe: Creating a class that extends more than one class. PinmemberNagy Vilmos4-Oct-12 3:00 
GeneralRe: Creating a class that extends more than one class. PinmemberBill.Moo4-Oct-12 3:48 
AnswerRe: Creating a class that extends more than one class. PinmemberPeter_in_27804-Oct-12 3:03 
GeneralRe: Creating a class that extends more than one class. PinmemberBill.Moo4-Oct-12 3:59 
GeneralRe: Creating a class that extends more than one class. PinmemberPeter_in_27804-Oct-12 11: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. Pinmemberpasztorpisti4-Oct-12 12:14 
QuestionRe: Creating a class that extends more than one class. PinmemberMonster Maker21-Oct-12 21:08 
AnswerRe: Creating a class that extends more than one class. PinmemberGowtham Gutha15-Nov-12 6:59 
QuestionThread names PinmemberCsTreval4-Oct-12 1:19 
AnswerRe: Thread names PinmemberNagy Vilmos4-Oct-12 2:54 
AnswerRe: Thread names PinmemberGowtham Gutha15-Nov-12 7:11 
Questionget ethernet IP address Pinmemberhari3013-Oct-12 19:30 
AnswerRe: get ethernet IP address PinmemberTorstenH.3-Oct-12 19:58 
AnswerRe: get ethernet IP address Pinmemberjschell4-Oct-12 11:44 
QuestionJava Based Websevice Pingroupashish121693-Oct-12 1:55 
AnswerRe: Java Based Websevice PinmvpRichard MacCutchan3-Oct-12 2:34 
AnswerRe: Java Based Websevice PinmemberTorstenH.3-Oct-12 2:36 
QuestionHow can I change a 8-bit bitmap into a 4-bit/1-bit bitmap? PinmemberKangvampire2-Oct-12 22:11 
QuestionCreating a Thread PinmemberCsTreval2-Oct-12 8:17 
AnswerRe: Creating a Thread Pinmemberjschell2-Oct-12 8:46 
AnswerRe: Creating a Thread PinmvpRichard MacCutchan2-Oct-12 9:32 
GeneralRe: Creating a Thread PinmemberCsTreval2-Oct-12 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.140721.1 | Last Updated 26 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid