Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have to write code for everything in Java - that's pretty much the point. What you write really depends on what you are trying to do, which you failed to adequately explain. What do you want to "skip blank spaces" in? What are you wanting to do with the "not blank spaces" remainder?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I seriously doubt it, since you didn't bother to post any code or even what language you are writing it in.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, now is a good time to learn about them (actually Lists): http://java.sun.com/docs/books/tutorial/collections/index.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, you're headed towards a "0" anyway if you haven't made any further effort on this in 5 days and can't find a single example of graphics in C as a starting point.

No one is going to write it for you.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

A recent Federal Circuit court ruling may be the end of software patents in the US. Of course, we'll have to wait to see how the patent lawyers and lobbyists fare in fighting it off.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I suggest that the control panel button is made like the forum buttons, i.e. click on it to go directly to the user control panel, and hover on it to bring up the new menu.

I agree, since that's the link I use more than any other on the site. It's only one more click to get there now, so not really a big deal, but given it's frequency of use it would be nice if it were a direct link like before.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Try calling startTask() before you set the dialog visible.

You may also want to glance at this article on a modal progress monitor: http://www.javalobby.org/java/forums/t53926.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

536

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That is what I was trying to determine as well. It sounds like you are just asking about communicating between 2 classes in the same application, which is no trouble at all. Post a little bit of the code and it would be much clearer what you are trying to do.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It would really help if you posted a little more information about the nature of the two "programs". Separate JVMs? Concurrently executing threads? You question is a little too unclear to give an answer.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

536

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You already have the basic part of that in place. Read each line of the file, use split() to separate the elements, then add that pair of values to your series for the chart.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is a bar chart demo file in the source\org\jfree\chart\demo directory of JFreeChart.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just drag your screen to the right :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I don't think you want an XYSeries for that. If you want it to be a line chart (bar chart seems more appropriate to me, but you seem to want the line chart), try this instead

private CategoryDataset createDataset() throws Exception {

    DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    dataset.addValue(255, "Errors", "error1");
    dataset.addValue(34, "Errors", "error2");
    dataset.addValue(111, "Errors", "error5");
    dataset.addValue(23, "Errors", "error3");

    return dataset;
}

private JFreeChart createChart(CategoryDataset dataset) {
    // create the chart...
    JFreeChart chart = ChartFactory.createLineChart(
            "Medida", // chart title
            "Error Code", // x axis label
            "Count", // y axis label
            dataset, // data
            PlotOrientation.VERTICAL,
            true, // include legend
            true, // tooltips
            false // urls
    );

    return chart;
}

All you have to do is build that category dataset with the first and second elements of your spilt() on the text file line.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No of course not. I don't have that file and you have it commented out. You said the graphic was not plotting.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The hate mail section is the best.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Typed pages or hand-written pages?

ddanbe commented: You have a mind as nauthy as I have +2
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Nice find. Will keep that handy :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The graph shows just fine for me.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Take a look at http://www.cokeandcode.com/ for Java game programming tutorials.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The new post listings on the "main page" for top-level forums no longer indicate which forum the post is in. Listing the forum is helpful to determine if the post is in one of the forums you participate in a lot.

peter_budo commented: Well spotted, I agree with that +12
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Mark the thread as solved if the issue is resolved.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Whether you use arrays, Lists, or whatever, the point is still the same. You'll need to read the file content into some structure and then use JDBC to update/insert your table values.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ah. I have sigs turned off, so I never see those.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

536
:)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

LOL, you are mourning for your country? What country are you from? Here in our country, we are mourning since the dawn of the republic.

Um, what? Is that supposed to make sense?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Anyways, as for streaming, there two sites are good as well:
http://www.pandora.com/ (US only, due to licensing issues)
http://www.last.fm/home

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

With a cigarette.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Poor Bob. That has to be very deflating to his huge swelling of pride. :(

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Congratulations.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

532

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps you should post in the Perl forum. This is the Java forum.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just open the file in a text editor.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you have a specific question, ask it. Otherwise, do your own homework.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Why are you trying to use both a FileWriter and a BufferedWriter against the same file? Just use the BufferedWriter.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Use the newLine() method to write the line separator, instead of appending '\n' to your text.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

526

+2 to correct Doctor Inferno's subtraction of 4
528

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Also note that directories will also be included and can be discerned with file.isDirectory(). If you need to include file counts from subdirectories, you'll need to do the recursion yourself.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Drive-by code snippet.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please have a look into the code.

Why? Is there something wrong with it? If so, what specifically?

Please also explain the function of

e.printstacktrace();

There is no such function as you have written it. There is, however, a printStackTrace() method on Throwable. Read that API link to see what it does.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Microsoft may continue to support them for quite awhile, but I think content providers (developers) will drop IE6 more quickly due to the standards-compliance issues.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This is the start of the class - is this going along the right lines? We do not know where to go from here. . .

class LectureTheatre {
    public static void main(String[] arguments) {
		
		private int maxOccupancy;
		private int layoutStyle;
		private String lectureTheatreName;
	
			
		}

		
	}
}

No. Take main() out altogether at this point. It has nothing at all to do with the class itself.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That pretty much sums up all of his posts to date.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The POI project page says they are working on Excel 2007 support, but I'm not sure how far along it is.

I haven't tried JExcel, so I can't really address the differences between them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

524