FW: [Advanced-java] OT window refresh question

Alvin Wang xwang at qtechservices.com
Tue Apr 15 17:00:35 2003


Peter gave me a very good article. It has a concrete solution to this kind
of problem. Thank you very much again, Peter!

Also many thx to Steve and Kurt. You have good insights to this problem.

I really learned a lot from all of you!


-----Original Message-----
From: NORELL, Peter [mailto:Peter.NORELL@london.sema.slb.com]
Sent: Tuesday, April 15, 2003 3:15 AM
To: 'Alvin Wang'; nikolaos@solmar.ca
Cc: jesper.berglund@dataductus.se
Subject: RE: [Advanced-java] OT window refresh question





Have a peek at:
http://java.sun.com/products/jfc/tsc/articles/ChristmasTree/

It might be the reading you are looking for.

/Peter

-----Original Message-----
From: Alvin Wang [mailto:xwang@qtechservices.com]
Sent: 14 April 2003 21:14
To: nikolaos@solmar.ca
Cc: advanced-java@lists.xcf.berkeley.edu; NORELL, Peter;
jesper.berglund@dataductus.se
Subject: RE: [Advanced-java] OT window refresh question


ok, here is the situation. it is a trading GUI. the trader wants to open 4+
windows each of which displays the quotes of for different stocks and their
options. you may know that each stock can have hundreds of options. this is
real time. also, i need to subscribe various real-time analytical data from
server. Whenever there are any changes, I need to update a cell (one option,
including bid/ask/last, their size/exchange, theoretical fair value,
greeks....), a row (all the options for a strike), a column (all the options
for the an expiry) or the whole table(all the options for a stock). the
trader insists to see them all and as fast as possible.

i use separate threads from the event dispatch thread to handle the realtime
quotes and analytical data.

i believe there is no a general design guideline for all the applications in
all the industries in the universe. i have to display all the quotes for one
stock in one table and i cannot miss a single data(quote) from network, not
becase this is a good design, because this is the biz requirement from the
traders. maybe java is not a good tool to do it.

Jesper and Peter, thank you very much for your answers. They are very
enlightening. I really appreciate them :)



> -----Original Message-----
> From: advanced-java-bounces@lists.xcf.berkeley.edu
> [mailto:advanced-java-bounces@lists.xcf.berkeley.edu]On Behalf Of
> Nikolaos Giannopoulos
> Sent: Monday, April 14, 2003 3:27 PM
> To: Alvin Wang
> Cc: advanced-java@lists.xcf.berkeley.edu
> Subject: RE: [Advanced-java] OT window refresh question
>
>
> Alvin,
>
>
> > -----Original Message-----
> > From: advanced-java-bounces@lists.xcf.berkeley.edu
> > [mailto:advanced-java-bounces@lists.xcf.berkeley.edu]On Behalf Of Alvin
> >
> >
> > Expert/Guru Nikolaos :
>
> It doesn't take a GUI guru to understand that there are major issues with
> the design of an app that "(It) receives huge amount of data from network
> and displays in JTables".
>
> If my understanding of this statement is not that you are taking all the
> data and dumping into a JTable then you would need to clarify this point -
> as there is no need to muck around with event blocking if there
> are serious
> design issues.
>
>
> > 1. I am not a designer of the app. it is out of my hand.
>
> That is unfortunate.  Hopefully you didn't pay for it ;-)
>
>
> > 2. without knowing the details of the biz requirement and the
> > design, pls do not assume yourself the one that can teach others
> > regarding their app design
>
> You apparently are looking for a *guru*.
>
> I didn't reply because I think that I am one but rather because in my
> experience *from what you describe* you are heading down a path that will
> only get worse.  BTW I don't think anyone here is trying to *teach* anyone
> anything - You asked a question and I answered.  If you don't
> like my answer
> then you are free to ignore it.  Maybe you prefer Jesper's similar reply -
> it's your choice.
>
> If there are any details that could justify what you have described so far
> then I would encourage you to mention them as it can only be to your
> benefit.
>
> --Nikolaos
>
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java@lists.xcf.berkeley.edu
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java


_________________________________________________________
This email is confidential and intended solely for the use of the
individual to whom it is addressed. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
SchlumbergerSema.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or copying of this email is strictly prohibited.

If you have received this email in error please notify the
SchlumbergerSema Helpdesk by telephone on +44 (0) 121 627 5600.
_________________________________________________________