Solved

Save Load line in a canvas

Posted on 1998-06-16
2
162 Views
Last Modified: 2006-11-17
How can I save/load my drawing. I have a program to draw chart but I would like to save the chart in a file
0
Comment
Question by:carlfortin
2 Comments
 

Author Comment

by:carlfortin
ID: 1223286
Edited text of question
0
 
LVL 5

Accepted Solution

by:
msmolyak earned 50 total points
ID: 1223287
What exactly is your chart? Or rather what do you mean by saving the chart? If the chart is produced by the code in your class then you can always recreate it by using the same code. If the chart is a GIF file you can save it on disk by writing a file and then reading it back. If there is some data for a chart which a stored in some object you can serialize the object and then restore it. Or you can print a chart to a file (but then you won't be able to load it back).

Pick your choice.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
create a gui in perl 3 69
eclipse package explorer vs project explorer view 2 73
JUnit 4 @Before and @BeforeClass differences 3 48
varialbe initialization 11 30
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now