Ulf Dittmer wrote:Make sure you set the Content-Disposition header to "inline", not "attachment".
But ultimately, it's up the client - if the browser is configured to open the dialog box for such files, then there's nothing the web app can do about that.
Ulf Dittmer wrote:OK, so the NumberFormat is only used if lower bound != upper bound, but I'm guessing you already knew that.
But this is a problem:
(itr.next()).getCategoryPlot().getRangeAxis(0).setRangeWithMargins(dLowerBoundRange, dUpperBoundRange);
NumberAxis naxis =((NumberAxis)(itr.next()).getCategoryPlot().getRangeAxis(0));
itr.next() retrieves a new element from the iterator each time it is called, so these two statements work on different objects. This ensures that the NumberFormat is only used for every other iterator element - most likely not what you want.
Ulf Dittmer wrote:Post the code that does that for all range axes.
Ulf Dittmer wrote:
Anup Hege wrote:The format(double) is a final function in NumberFormat Class.
Oh, right, I forgot about that. But a look at the source code of the NumberFormat class shows that it calls one of the overridden methods. Where and how are you using this class?
Ulf Dittmer wrote:
The Charts use the format() function for converting the double number into String.
How can we make the charts use our NumberFormat's Overloaded format (long number, StringBuffer toAppendTo, FieldPosition pos) function.
Why don't you override format(double) instead, since that's what's being used?
Ulf Dittmer wrote:Where did you insert print statements? How are you using this code? Post the actual code.
Ulf Dittmer wrote:You'd "override" the NumberFormat by calling the method I mentioned. Did you find it in the javadocs?
Or are you asking about what a NumberFormat is, and how to create your own? I'm sure searching for something like "java extend numberformat" will find examples.