Howto Install SwingX in NetBeans 6.7

Dev Experience: Howto Install SwingX in NetBeans 6.7

Howto Install SwingX in NetBeans 6.7
Today I feel like doing some graphic stuff in my pet application. Even when Swing is really nice, I usually miss a lot of more cool effects. Just thinking in all the needed code to create an usable JTable gives me a headache.

So I’ve decided to use SwingX. For those of you that doesn’t know about SwingX, please check their website, but as a resume I will simple say that are a collections of advanced Swing components and that some of them will become part of the default Swing set in JDK 7.

Let’s start the party:

3.6.1 and the JRFontNotFoundException

JasperForge: JasperReports JasperReports 的討論區

This exception was introduced in JR 3.6.1 so that is more obvious to our users that they are creating reports using fonts that are not available on the machines that run those reports.

Very many problems that are reported on these forums are related to misuse of fonts in reports.

 

You get this error because you are using fontName="BlairITC TT" in your reports and this particular font is not available to the JVM that renders your report.

 

You have two options here:

1. configure JR to ingnore missing fonts and continue using what is basically an invalid report template, which is missing an important resource: the font.

You can do this by setting the net.sf.jasperreports.awt.ignore.missing.font=true in the jasperreports.properties file or as a custom property in that particular report template.

Note that this is not recomended as unpredictable results will be obtained when the JVM will use some other font to calculate your report layout.

 

2. Package the TTF files that make up the BlairTC TT font into a JAR that represents a JR font extension and add it to your application classpath. This will make the font available to the JVM and thus the report will work properly on all machines.

The easiest way to do so is to rely on a few Spring JARs and package your fonts the same way we did with the DejaVu fonts that we ship under the /demo/fonts sample. Note the fonts.xml file in the folder hierachy. If you don’t want to use Spring, you would need to implement some JR extensions interfaces. You could do so by looking into the implementations that are already shipped as part of JR, and follow the Javadoc.

 

Note that exception is related to fonts being used with AWT, at report fill time and they do not have to do with PDF. What you have tried are some PDF-related settings that are nowadays deprecated, as PDF font mappings are done in the font extensions as well.

 

The easiest way to create font extensions is by using iReport 3.6.1, which comes with a TTF install wizard and a font export tool, in the Tools/Options/iReport/Fonts menu.

 

Codecs for Windows

Microsoft Professional Photography: Codecs

Codecs for Windows

Many photographers—especially those with digital SLRs—shoot in ‘RAW’ mode, which outputs a file format that is proprietary to their camera make and model (for example, .CR2, .NEF). These RAW formats preserve more of the original information from the camera than the JPG file that most other cameras output. This extra information provides greater quality, but it comes at a price of convenience. JPG is a universally supported image file format, but as anyone who has used RAW files can tell you, they are anything but universally supported.

In the past, RAW shooters had to either rely on RAW conversion software provided by their camera manufacturer, or put their fate in the hands of the myriad of software makers who have attempted to reverse-engineer these formats for support in their software applications. This led to a number of problems: compatibility issues, varying quality or inconsistent results from one application to another, and holes in the user workflow where RAW support is lacking.

Windows Vista attempts to solve these problems by providing an extensible platform that allows support for these (and other) new file formats to be added to Windows by the owner of the file format. This support comes in the form of a codec, which users will get from their camera manufacturer, either by downloading it, or provided with a new camera body. The Photo Gallery will even detect the presence of these files and help you download a codec when it exists.

Microsoft has been working with the major camera manufacturers so that they can provide codecs for their various RAW formats to their customers. Once these codecs are installed, users will find that they can view their RAW files and thumbnails throughout Windows Vista.

Out of video memory

java.net Forums : Out of video memory …

Hi all,
I’m stuck at the following problem:

I developed a swing app, in which on some button click I opened a new JFrame window which contained a JPanel with Canvas3D object, i.e that frame shows some 3D objects (basically all 3D object are instance of class Box). Now I’m creating the instance of Java 3D container repeatedly and when I create the same frame (JFrame for 3D objects) again for 9th time then, then I got the following error box:

“SISGL:
Can’t create new srface.
Out of video memory.
This progrma will exit"