This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Adding a file to a program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Adding a file to a program" Watch "Adding a file to a program" New topic
Author

Adding a file to a program

Manny Ruiz
Ranch Hand

Joined: Dec 01, 2010
Posts: 40
I have to create a program that will use a chart to show some information. I have the program and I created a chart as a XML file. Is it possible to create a link on the java program that will call the chart when used, for example a button. Where would I start looking for help getting this done.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3615
    
  14

If you click a button, you could load the file and draw the chart on a JPanel, sure. You have to be more specific in what you want though.
Manny Ruiz
Ranch Hand

Joined: Dec 01, 2010
Posts: 40
i want to load a file
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You might want to fill out your description a bit. And it would help if you used real terminology instead of vague words. For example it isn't clear what you mean when you say you want to "load" a file. What does that mean? (Hint: that isn't standard terminology, it's something you made up.)

So: you have one vague and unclear statement, and nothing else. Not very helpful if you want help.

If you don't know the real words for what you want to do, then you could provide a description of what you want to happen. Don't use technical-sounding words in your description unless they are the right technical-sounding words. Instead just use ordinary words to describe what you want.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Adding a file to a program