[Japi-cvs] SF.net SVN: japi: [189] libs/swing-font/trunk
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2006-10-16 10:00:34
|
Revision: 189 http://svn.sourceforge.net/japi/?rev=189&view=rev Author: christianhujer Date: 2006-10-16 02:59:59 -0700 (Mon, 16 Oct 2006) Log Message: ----------- Copied font classes from historic to swing-font subproject. Added Paths: ----------- libs/swing-font/trunk/src/ libs/swing-font/trunk/src/net/ libs/swing-font/trunk/src/net/sf/ libs/swing-font/trunk/src/net/sf/japi/ libs/swing-font/trunk/src/net/sf/japi/swing/ libs/swing-font/trunk/src/net/sf/japi/swing/font/ libs/swing-font/trunk/src/net/sf/japi/swing/font/FontChooser.java libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyComboBox.java libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyListCellRenderer.java libs/swing-font/trunk/src/net/sf/japi/swing/font/FontPreview.java libs/swing-font/trunk/src/net/sf/japi/swing/font/FontStyleListCellRenderer.java libs/swing-font/trunk/src/net/sf/japi/swing/font/action.properties libs/swing-font/trunk/src/net/sf/japi/swing/font/action_de.properties libs/swing-font/trunk/src/net/sf/japi/swing/font/package.html Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/FontChooser.java (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/FontChooser.java) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/FontChooser.java (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/FontChooser.java 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,217 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.swing.font; + +import java.awt.Component; +import java.awt.Font; +import static java.awt.Font.BOLD; +import static java.awt.Font.ITALIC; +import static java.awt.Font.PLAIN; +import java.awt.GraphicsEnvironment; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import static javax.swing.BorderFactory.createCompoundBorder; +import static javax.swing.BorderFactory.createEmptyBorder; +import static javax.swing.BorderFactory.createTitledBorder; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JList; +import static javax.swing.JOptionPane.OK_CANCEL_OPTION; +import static javax.swing.JOptionPane.OK_OPTION; +import static javax.swing.JOptionPane.PLAIN_MESSAGE; +import static javax.swing.JOptionPane.showConfirmDialog; +import javax.swing.JScrollPane; +import javax.swing.JSpinner; +import static javax.swing.ListSelectionModel.SINGLE_SELECTION; +import javax.swing.SpinnerNumberModel; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; +import org.jetbrains.annotations.Nullable; +import net.sf.japi.swing.ActionFactory; +import static net.sf.japi.swing.ActionFactory.getFactory; + +/** Class for letting the user choose a font. + * There are two possibilities to use this class: + * <ul> + * <li>You can use an instance of FontChooser as a Pane and add it to the desired Container.</li> + * <li>You can use this class' static methods to display a Dialog which lets the user choose a font.</li> + * </ul> + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class FontChooser extends JComponent implements ListSelectionListener, ChangeListener { + + /** Action Factory. */ + private static final ActionFactory ACTION_FACTORY = getFactory("net.sf.japi.swing.font"); + + /** JList for Font Family. + * @serial include + */ + private JList familyList; + + /** JList for Font Style. + * @serial include + */ + private JList styleList; + + /** JList for Font Size. + * @serial include + */ + private JList sizeList; + + /** JSpinner for Font Size. + * @serial include + */ + private JSpinner sizeSpinner; + + /** FontPreview for Font. + * @serial include + */ + private FontPreview preview; + + /** Selected Font. + * @serial include + */ + private Font selectedFont; + + /** Create a new FontChooser. */ + public FontChooser() { + setBorder(createCompoundBorder(createCompoundBorder(createEmptyBorder(8, 8, 8, 8), createTitledBorder(ACTION_FACTORY.getString("desiredFont_borderTitle"))), createEmptyBorder(8, 4, 4, 4))); + setLayout(new GridBagLayout()); + final GridBagConstraints gbc = new GridBagConstraints(); + gbc.insets = new Insets(2, 2, 2, 2); + final JLabel familyLabel = ACTION_FACTORY.createLabel("family.label"); + final JLabel styleLabel = ACTION_FACTORY.createLabel("style.label"); + final JLabel sizeLabel = ACTION_FACTORY.createLabel("size.label"); + familyList = new JList(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()); + styleList = new JList(new Integer[] { PLAIN, ITALIC, BOLD, BOLD|ITALIC }); + styleList.setCellRenderer(new FontStyleListCellRenderer()); + sizeList = new JList(new Integer[] { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 32, 48, 64 }); + preview = new FontPreview(); + sizeSpinner = new JSpinner(new SpinnerNumberModel(12, 4, 100, 1)); + gbc.weightx = 1.0; + gbc.fill = GridBagConstraints.BOTH; + add(familyLabel, gbc); + add(styleLabel, gbc); + gbc.gridwidth = GridBagConstraints.REMAINDER; + add(sizeLabel, gbc); + gbc.gridwidth = 1; + gbc.gridheight = 2; + gbc.weighty = 1.0; + add(new JScrollPane(familyList), gbc); + add(new JScrollPane(styleList), gbc); + gbc.gridheight = 1; + gbc.gridwidth = GridBagConstraints.REMAINDER; + gbc.weighty = 0.0; + add(sizeSpinner, gbc); + gbc.weighty = 1.0; + add(new JScrollPane(sizeList), gbc); + gbc.gridwidth = 3; + add(preview, gbc); + familyList.addListSelectionListener(this); + styleList.addListSelectionListener(this); + sizeList.addListSelectionListener(this); + sizeSpinner.addChangeListener(this); + familyList.setSelectionMode(SINGLE_SELECTION); + styleList.setSelectionMode(SINGLE_SELECTION); + sizeList.setSelectionMode(SINGLE_SELECTION); + } + + /** Set the selected font. */ + public void setSelectedFont(final Font selectedFont) { + this.selectedFont = selectedFont; + preview.setFont(selectedFont); + //lock = true; + sizeSpinner.setValue(selectedFont.getSize()); + sizeList.setSelectedValue(selectedFont.getSize(), true); + styleList.setSelectedValue(selectedFont.getStyle(), true); + familyList.setSelectedValue(selectedFont.getFamily(), true); + //lock = false; + } + + /** Set the selected family. */ + private void updateFont() { + //if (lock) { return; } + final String family = familyList.getSelectedValue() == null ? selectedFont.getFamily() : (String) familyList.getSelectedValue(); + final int style = styleList.getSelectedValue() == null ? selectedFont.getStyle() : (Integer) styleList.getSelectedValue(); + final int size = sizeList.getSelectedValue() == null ? selectedFont.getSize() : (Integer) sizeSpinner.getValue(); + selectedFont = new Font(family, style, size); + preview.setFont(selectedFont); + } + + /** {@inheritDoc} */ + public void valueChanged(final ListSelectionEvent e) { + final Object source = e.getSource(); + if (source == familyList) { + // No special action except updateFont() + } else if (source == styleList) { + // No special action except updateFont() + } else if (source == sizeList) { + final Object size = sizeList.getSelectedValue(); + if (!sizeSpinner.getValue().equals(size) && size != null) { + sizeSpinner.setValue(size); + } + } else { + assert false; + } + updateFont(); + } + + /** {@inheritDoc} */ + public void stateChanged(final ChangeEvent e) { + final Object source = e.getSource(); + if (source == sizeSpinner) { + final Object size = sizeSpinner.getValue(); + if (!size.equals(sizeList.getSelectedValue())) { + sizeList.setSelectedValue(size, true); + } + } else { + assert false; + } + updateFont(); + } + + /** Show a dialog. + * @param parent Parent component + * @return seleced font or null + */ + public static Font showChooseFontDialog(final Component parent) { + return showChooseFontDialog(parent, Font.decode(null)); + } + + /** Show a dialog. + * @param parent Parent compnent + * @param font Font to modify + * @return selected font or null + */ + @Nullable public static Font showChooseFontDialog(final Component parent, final Font font) { + final FontChooser chooser = new FontChooser(); + chooser.setSelectedFont(font); + if (showConfirmDialog(parent, chooser, ACTION_FACTORY.getString("chooser.title"), OK_CANCEL_OPTION, PLAIN_MESSAGE) == OK_OPTION) { + return chooser.selectedFont; + } else { + return null; + } + } + +} // class FontChooser Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyComboBox.java (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/FontFamilyComboBox.java) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyComboBox.java (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyComboBox.java 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,72 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.swing.font; + +import java.awt.Font; +import static java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment; +import java.util.HashMap; +import java.util.Map; +import javax.swing.JComboBox; + +/** ComboBox to choose the font family. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @version $Id: FontFamilyComboBox.java,v 1.1 2006/03/26 01:26:27 christianhujer Exp $ + */ +public class FontFamilyComboBox extends JComboBox { + + /** Serial Version. */ + private static final long serialVersionUID = 1L; + + /** The fonts to render. + * @serial include + */ + private Map<String,Font> fonts; + + /** Create a FontFamilyComboBox. */ + public FontFamilyComboBox() { + super(getLocalGraphicsEnvironment().getAvailableFontFamilyNames()); + // initFonts(); the super class construction invokes setFont and thus initFonts(); + } + + /** {@inheritDoc} */ + @Override public void setFont(final Font font) { + super.setFont(font); + initFonts(); + } + + /** Initialize fonts. */ + private void initFonts() { + if (fonts == null) { + final FontFamilyListCellRenderer cellRenderer = new FontFamilyListCellRenderer(); + setRenderer(cellRenderer); + fonts = new HashMap<String,Font>(); + cellRenderer.setFonts(fonts); + } + Font base = getFont(); + if (base == null) { base = Font.decode(null); } + final int style = base.getStyle(); + final int size = base.getSize(); + for (final String family : getLocalGraphicsEnvironment().getAvailableFontFamilyNames()) { + fonts.put(family, new Font(family, style, size)); + } + } + +} // class FontFamilyComboBox Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyListCellRenderer.java (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/FontFamilyListCellRenderer.java) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyListCellRenderer.java (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/FontFamilyListCellRenderer.java 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,61 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.swing.font; + +import java.awt.Component; +import java.awt.Font; +import java.util.Map; +import javax.swing.JList; +import javax.swing.DefaultListCellRenderer; + +/** List cell renderer for letting the user choose the font family. + * This list cell renderer displays each font in its font. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @version $Id: FontFamilyListCellRenderer.java,v 1.1 2006/03/26 01:26:27 christianhujer Exp $ + */ +public class FontFamilyListCellRenderer extends DefaultListCellRenderer { + + /** Serial Version. */ + private static final long serialVersionUID = 1L; + + /** The fonts to render. + * @serial include + */ + private Map<String,Font> fonts; + + /** Set the fonts to render. + * The key of the map is the family name, the value of the map is the font to render. + * @param fonts fonts to render + */ + public void setFonts(final Map<String,Font> fonts) { + this.fonts = fonts; + } + + /** {@inheritDoc} */ + @Override public Component getListCellRendererComponent(final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { + final Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); + //Font f = FontFamilyComboBox.this.getFont(); + //c.setFont(new Font((String)value, f.getStyle(), f.getSize())); + c.setFont(fonts.get((String)value)); + return c; + } + +} // class FontFamilyCellRenderer Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/FontPreview.java (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/FontPreview.java) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/FontPreview.java (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/FontPreview.java 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,58 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.swing.font; + +import java.awt.Dimension; +import javax.swing.JTextField; +import net.sf.japi.swing.ActionFactory; +import static net.sf.japi.swing.ActionFactory.getFactory; + +/** Font Preview. + * Uses a localized text to display the font, but the user may edit the text to try out the characters she's interested in. + * This class is derived from JTextField, but never ever depend on that inheritance. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class FontPreview extends JTextField { + + /** Serial Version. */ + private static final long serialVersionUID = 1L; + + /** Action Factory. */ + private static final ActionFactory ACTION_FACTORY = getFactory("net.sf.japi.swing.font"); + + /** Create a new FontPreview. */ + public FontPreview() { + super(getDefaultText()); + setHorizontalAlignment(CENTER); + final Dimension d = getMinimumSize(); + d.height = 64; + setMinimumSize(d); + setPreferredSize(d); + } + + /** Get the default text for previewing a font. + * @return default text + */ + public static String getDefaultText() { + return ACTION_FACTORY.getString("font_preview_text"); + } + +} // class FontPreview Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/FontStyleListCellRenderer.java (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/FontStyleListCellRenderer.java) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/FontStyleListCellRenderer.java (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/FontStyleListCellRenderer.java 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,82 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +package net.sf.japi.swing.font; + +import java.awt.Component; +import java.awt.Font; +import static java.awt.Font.BOLD; +import static java.awt.Font.ITALIC; +import static java.awt.Font.PLAIN; +import javax.swing.DefaultListCellRenderer; +import javax.swing.JList; +import net.sf.japi.swing.ActionFactory; + +/** ListCellRenderer for font styles. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * @todo improve performance + */ +public class FontStyleListCellRenderer extends DefaultListCellRenderer { + + /** Serial Version. */ + private static final long serialVersionUID = 1L; + + /** Action Factory. */ + private static final ActionFactory ACTION_FACTORY = ActionFactory.getFactory("net.sf.japi.swing.font"); + + /** {@inheritDoc} */ + @Override public Component getListCellRendererComponent(final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { + final Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); + final int style = (Integer) value; + setText(getTextFor(style)); + setFont(getFontFor(style)); + return c; + } + + /** Get the text representation of a style. + * @param style style to get text representation for + * @return text representation of style + * @todo store values + */ + private static String getTextFor(final int style) { + switch (style) { + case PLAIN: return ACTION_FACTORY.getString("font.style.plain"); + case BOLD: return ACTION_FACTORY.getString("font.style.bold"); + case ITALIC: return ACTION_FACTORY.getString("font.style.italic"); + case BOLD|ITALIC: return ACTION_FACTORY.getString("font.style.bolditalic"); + default: return ACTION_FACTORY.getString("font.style.unknown"); + } + } + + /** Get the font representation of a style. + * @param style style to get font representation for + * @return font representation of style + */ + private Font getFontFor(final int style) { + switch (style) { + case PLAIN: return getFont().deriveFont(PLAIN); + case BOLD: return getFont().deriveFont(BOLD); + case ITALIC: return getFont().deriveFont(ITALIC); + case BOLD|ITALIC: return getFont().deriveFont(BOLD|ITALIC); + default: return getFont().deriveFont(PLAIN); + } + } + +} // class FontStyleListCellRenderer Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/action.properties (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/action.properties) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/action.properties (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/action.properties 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,31 @@ +# +# JAPI - (Yet another (hopefully) useful) Java API +# +# Copyright (C) 2006 Christian Hujer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. +# +desiredFont.borderTitle=Desired font +family.label=Family: +style.label=Style: +size.label=Size: +chooser.title=Choose Font +font.style.plain=Plain +font.style.bold=Bold +font.style.italic=Italic +font.style.bolditalic=Bold Italic +font.style.unknown=Unknown +font.preview.text=Falsches Spielen von Xylophonmusik qu\xE4lt jeden gr\xF6\xDFeren Zwerg Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/action_de.properties (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/action_de.properties) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/action_de.properties (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/action_de.properties 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,31 @@ +# +# JAPI - (Yet another (hopefully) useful) Java API +# +# Copyright (C) 2006 Christian Hujer +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. +# +desiredFont.borderTitle=Gew\xFCnschte Schriftart +family.label=Schriftart: +style.label=Schriftstil: +size.label=Gr\xF6\xDFe: +chooser.title=Schriftart ausw\xE4hlen +font.style.plain=Normal +font.style.bold=Fett +font.style.italic=Kursiv +font.style.bolditalic=Fett Kursiv +font.style.unknown=Unbekannt +font.preview.text=Falsches Spielen von Xylophonmusik qu\xE4lt jeden gr\xF6\xDFeren Zwerg Copied: libs/swing-font/trunk/src/net/sf/japi/swing/font/package.html (from rev 188, historic/trunk/src/app/net/sf/japi/swing/font/package.html) =================================================================== --- libs/swing-font/trunk/src/net/sf/japi/swing/font/package.html (rev 0) +++ libs/swing-font/trunk/src/net/sf/japi/swing/font/package.html 2006-10-16 09:59:59 UTC (rev 189) @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- JAPI - (Yet another (hopefully) useful) Java API + - + - Copyright (C) 2006 Christian Hujer + - + - This program is free software; you can redistribute it and/or + - modify it under the terms of the GNU General Public License as + - published by the Free Software Foundation; either version 2 of the + - License, or (at your option) any later version. + - + - This program is distributed in the hope that it will be useful, but + - WITHOUT ANY WARRANTY; without even the implied warranty of + - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + - General Public License for more details. + - + - You should have received a copy of the GNU General Public License + - along with this program; if not, write to the Free Software + - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + - 02111-1307, USA. + --> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> + <head> + <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> + <meta name="Date" content="$Date: 2006-04-03 23:00:14 +0200 (Mon, 03 Apr 2006) $" /> + <title>net.sf.japi.swing.font</title> + </head> + <body> + <p> + The package net.sf.japi.swing.font contains a font chooser and related classes. + </p> + </body> +</html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |