the best way to transfer data?# Java - 爪哇娇娃
q*c
1 楼
basically have two parts.
One is a window, having buttons etc. and also loading data,
which is extended from frame.
The other is a 'Plot', to plot data depending on the types,
which is extended from canvas.
The thing is I want to make this Plot more independent, so
what's the best way to communicate between the window and
the Plot?
have checked some examples by googling. however most are
very small programs with Plot itself dealing with I/O data.
One is a window, having buttons etc. and also loading data,
which is extended from frame.
The other is a 'Plot', to plot data depending on the types,
which is extended from canvas.
The thing is I want to make this Plot more independent, so
what's the best way to communicate between the window and
the Plot?
have checked some examples by googling. however most are
very small programs with Plot itself dealing with I/O data.