[Advanced-java] OT window refresh question

Alvin Wang xwang at qtechservices.com
Mon Apr 14 21:13:30 2003


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