Search found 565 matches

by Taqua
Mon Jun 30, 2003 8:32 pm
Forum: JFreeChart
Topic: X11
Replies: 8
Views: 13898

Hi, do you create frames or dialogs? Or one of the components listed here? http://java.sun.com/j2se/1.4.1/docs/api/java/awt/class-use/HeadlessException.html All of these methods throw headless exceptions, and you just crashed into one of them. To find the evil method, change try{ grafdata graf = new...
by Taqua
Mon Jun 30, 2003 7:26 pm
Forum: JFreeChart
Topic: X11
Replies: 8
Views: 13898

Hi, you can never set the awt.toolkit property from within an programm. This is impossible and will show no effect at all. The same applies to the headless property. These properties must be set outside when the VM is started. Use the commandline ("java -D ... ") to define the properties. Anything e...
by Taqua
Sun Jun 29, 2003 5:09 pm
Forum: JFreeChart
Topic: X11
Replies: 8
Views: 13898

Hi, the PJA and headless properties must be set before Java is started to be sure that they get used. So start your app with: /usr/java/j2sdk1.4.1_01/bin/java -Dawt.toolkit=com.eteks.awt.PJAToolkit ... to use the PJA. Replacing the AWT at runtime is not possible, it has to be done before the AWT get...
by Taqua
Fri Jun 27, 2003 6:53 pm
Forum: JFreeChart
Topic: Multi-chart, multi-page PDFs: how?
Replies: 4
Views: 4659

Hi,

once you are finished with the first page, you will have to call document.nextPage() to start the next page. If you now create a Graphics2D object, your charts will be drawn on the new page ..

Have more fun,
said Thomas
by Taqua
Fri Jun 27, 2003 3:39 pm
Forum: JFreeChart
Topic: Multi-chart, multi-page PDFs: how?
Replies: 4
Views: 4659

Hi, once you have an iText document and a reference to the iText PDFWriter, you can aquire a reference to an Graphics2D object by calling PDFWriter.getDirectContent().createGraphics(..) Now you can use this graphics2D to draw your charts as usual. The Graphics2D object will translate all calls into ...
by Taqua
Sun Jun 22, 2003 9:42 pm
Forum: JFreeChart
Topic: ObjectUtils
Replies: 3
Views: 2976

Hi,

it is available from our site:

http://www.jfree.org/jcommon/index.html

Have more fun,
said Thomas
by Taqua
Sun Jun 22, 2003 9:41 pm
Forum: JFreeChart
Topic: JFreeChart, JTable, and OutOfMemoryException
Replies: 1
Views: 2130

Hi, all JavaObjects are just object references (or pointers), Java is not able pass java object by value. If your tablemodel contains doubles, it containes java.lang.Double objects, not primitive double variables, so your memory consumption is much higher. The poor mans memory tool is to use Rumtime...
by Taqua
Sun Jun 22, 2003 9:22 pm
Forum: JFreeChart
Topic: funciona la libreria jfreechart en jsdk1.2
Replies: 1
Views: 1921

Hi,

the current CVS version of JFreeChart should work perfectly on JDK 1.2.2, all incompatible code was fixed in that version. All future JFreeChart versions will also support that JDK version.

Have more fun,
said Thomas
by Taqua
Sun Jun 22, 2003 9:19 pm
Forum: JFreeChart
Topic: My BarChart label in Chinese Character no work ...
Replies: 1
Views: 2448

Hi, If you want to use TrueType in Java, you will have to copy all needed TrueType fonts to the $JRE/lib/fonts directory. After copying the fonts, make sure that you update the font.dir file of that directory, so that the JRE can find these fonts. See also: (This should also work for JDK 1.2.2) http...
by Taqua
Sun Jun 22, 2003 9:15 pm
Forum: JFreeChart
Topic: Chart export to other format (like Word or Excel).
Replies: 1
Views: 2100

Hi, I guess, you won't have much luck with that topic, at least not without having to pay for it ... The Apache projects to read/write office documents are not yet able to include images in the generated documents. Maybe you can try the COM-Bridge contained in Java 1.2.2 and Java 1.3 (but no longer ...
by Taqua
Tue Jun 17, 2003 10:58 pm
Forum: JFreeChart
Topic: ObjectUtils
Replies: 3
Views: 2976

HI,

this class is in the JCommon library and was there since 25-March-2003 :)

Have more fun,
said Thomas
by Taqua
Sat Jun 07, 2003 2:09 pm
Forum: JFreeChart
Topic: how to use jfreechart-0.9.8
Replies: 1
Views: 2415

Hi, the IE uses MS-Java 1.1.6 by default. JFreeChart needs at least Java 1.2 to work, so you will have to install the Java-plugin from Sun and make sure, that you use the object-tag instead of the applet tag (as some IEs always use MS-Java instead of the real JDK for all applet-tags). Have more fun,...
by Taqua
Mon Jun 02, 2003 10:59 pm
Forum: JFreeChart
Topic: Simple explanation of GNU licensing of JFreeChart
Replies: 2
Views: 2831

Hi, you are right. Additionally, if you modified the library, you will have to give the purchaser all changes you made to the library. The JFreeChart sourcecode must contain a copy of the LGPL text together with the source code, so that the user of the sourcecode knows his rights. Have more fun, sai...
by Taqua
Thu May 15, 2003 8:37 pm
Forum: JFreeChart
Topic: createVerticalBarChart - Problem on Sun machine
Replies: 1
Views: 1943

HI,

do you have any exceptions in the logs? On unix in a server environment, the JDK usually has no AWT enabled (you'll see a "Cannot connect to XServer" message), so you may have to do this before charts can be created successfully.

Have more fun,
said Thomas
by Taqua
Thu May 15, 2003 8:35 pm
Forum: JFreeChart
Topic: how to display Chinese chart name?
Replies: 1
Views: 2151

Hi,

Java fully supports Unicode, so just create and set your string like any other string. If your string is not displayed correctly (Glyphs missing), then you should try a different font, as the font specified doesn't seem to support chinese characters.

Have more fun,
said Thomas