Hi. I am using ptplot5.2 package. I use a JTabbedPane to arrange my plots by pages: I use the JTabbedPane to move from one page to another. Each plot is updated continuously by a Thread which get data from a database.
The problem: when a plot is refreshed in a hidden Tab, the plot appears also in the selected Tab. Only the data points appear, not the axes or the background. Result: I have a superposition of "undesired plots" on the selected Tab. Please some one help me to solve this problem ? To reproduce the problem, make a copy of PlotLiveDemo.java and replace in the main() block : frame.getContentPane().add("Center", plotLiveDemo); by JTabbedPane jtb = new JTabbedPane(); jtb.addTab("plotLiveDemo", plotLiveDemo); JPanel jp = new JPanel(); jtb.addTab("EmptyTab", jp); frame.getContentPane().add("Center", jtb); When "EmptyTab" is selected, the points of "plotLiveDemo" Tab will appear when "refreshed". N.B.: I don't have a real experience with Java 2D. Christophe. *** Christophe DIARRA Institut de Physique Nucleaire 15, Rue Georges Clemenceau Bat 102 - S2I 91406 ORSAY Cedex Tel: (33) 1 69 15 65 60 Fax: (33) 1 69 15 64 70 E-mail: [EMAIL PROTECTED] *** ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]