FontChooser/0000755000175000017500000000000011467162464012066 5ustar tonytonyFontChooser/dist/0000755000175000017500000000000011467162464013031 5ustar tonytonyFontChooser/dist/README.TXT0000644000175000017500000000265111174137770014370 0ustar tonytony======================== BUILD OUTPUT DESCRIPTION ======================== When you build an Java application project that has a main class, the IDE automatically copies all of the JAR files on the projects classpath to your projects dist/lib folder. The IDE also adds each of the JAR files to the Class-Path element in the application JAR files manifest file (MANIFEST.MF). To run the project from the command line, go to the dist folder and type the following: java -jar "FontChooser.jar" To distribute this project, zip up the dist folder (including the lib folder) and distribute the ZIP file. Notes: * If two JAR files on the project classpath have the same name, only the first JAR file is copied to the lib folder. * Only JAR files are copied to the lib folder. If the classpath contains other types of files or folders, none of the classpath elements are copied to the lib folder. In such a case, you need to copy the classpath elements to the lib folder manually after the build. * If a library on the projects classpath also has a Class-Path element specified in the manifest,the content of the Class-Path element has to be on the projects runtime path. * To set a main class in a standard Java project, right-click the project node in the Projects window and choose Properties. Then click Run and enter the class name in the Main Class field. Alternatively, you can manually type the class name in the manifest Main-Class element. FontChooser/src/0000755000175000017500000000000011163003132012630 5ustar tonytonyFontChooser/src/com/0000755000175000017500000000000011163003132013406 5ustar tonytonyFontChooser/src/com/connectina/0000755000175000017500000000000011163003132015527 5ustar tonytonyFontChooser/src/com/connectina/swing/0000755000175000017500000000000011163003132016656 5ustar tonytonyFontChooser/src/com/connectina/swing/fontchooser/0000755000175000017500000000000011163003132021207 5ustar tonytonyFontChooser/src/com/connectina/swing/fontchooser/FontChooserDialog.java0000644000175000017500000001241511163004006025427 0ustar tonytony/* * A font chooser JavaBean component. * Copyright (C) 2009 Dr Christos Bohoris * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 3 as published by the Free Software Foundation; * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * swing@connectina.com */ package com.connectina.swing.fontchooser; import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.ResourceBundle; import javax.swing.JDialog; import javax.swing.JFrame; /** * A dialog containing a JFontChooser as well as OK and * Cancel buttons. * * @author Christos Bohoris */ class FontChooserDialog extends javax.swing.JDialog { private static final long serialVersionUID = -953666562985797384L; private ResourceBundle bundle = ResourceBundle.getBundle("com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog"); private JFontChooser chooserPane; FontChooserDialog(JFrame owner, boolean modal, JFontChooser chooserPane, ActionListener selectionListener) throws HeadlessException { super(owner, modal); initDialog(chooserPane, selectionListener); } FontChooserDialog(JDialog owner, boolean modal, JFontChooser chooserPane, ActionListener selectionListener) throws HeadlessException { super(owner, modal); initDialog(chooserPane, selectionListener); } private void initDialog(JFontChooser chooserPane, ActionListener selectionListener) { this.chooserPane = chooserPane; initComponents(); okButton.addActionListener(selectionListener); okButton.addActionListener(new OKActionListener()); cancelButton.addActionListener(new CancelActionListener()); addWindowListener(new FontChooserDialogAdapter()); getRootPane().setDefaultButton(okButton); okButton.requestFocusInWindow(); } private class FontChooserDialogAdapter extends WindowAdapter { @Override public void windowClosing(WindowEvent event) { dispose(); } } private class OKActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { dispose(); } } private class CancelActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { dispose(); } } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // //GEN-BEGIN:initComponents private void initComponents() { basePanel = new javax.swing.JPanel(); chooserPanel = new javax.swing.JPanel(); chooserSeparator = new javax.swing.JSeparator(); controlPanel = new javax.swing.JPanel(); okButton = new javax.swing.JButton(); cancelButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle(bundle.getString("window.title")); basePanel.setLayout(new java.awt.BorderLayout()); chooserPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(12, 12, 0, 11)); chooserPanel.setLayout(new java.awt.BorderLayout(0, 12)); chooserPanel.add(chooserSeparator, java.awt.BorderLayout.PAGE_END); basePanel.add(chooserPanel, java.awt.BorderLayout.CENTER); chooserPanel.add(chooserPane, java.awt.BorderLayout.CENTER); controlPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 7, 6, 6)); controlPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); okButton.setMnemonic(bundle.getString("action.ok.mnemonic").charAt(0)); okButton.setText(bundle.getString("action.ok")); controlPanel.add(okButton); cancelButton.setMnemonic(bundle.getString("action.cancel.mnemonic").charAt(0)); cancelButton.setText(bundle.getString("action.cancel")); controlPanel.add(cancelButton); basePanel.add(controlPanel, java.awt.BorderLayout.SOUTH); getContentPane().add(basePanel, java.awt.BorderLayout.CENTER); pack(); }// //GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel basePanel; private javax.swing.JButton cancelButton; private javax.swing.JPanel chooserPanel; private javax.swing.JSeparator chooserSeparator; private javax.swing.JPanel controlPanel; private javax.swing.JButton okButton; // End of variables declaration//GEN-END:variables } FontChooser/src/com/connectina/swing/fontchooser/JFontChooserBeanInfo.java0000644000175000017500000000447411142413330026032 0ustar tonytony/* * A font chooser JavaBean component. * Copyright (C) 2009 Dr Christos Bohoris * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 3 as published by the Free Software Foundation; * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * swing@connectina.com */ package com.connectina.swing.fontchooser; import java.awt.Image; import java.beans.*; /** * The bean information for the JFontChooser JavaBean. * * @author Christos Bohoris * @see JFontChooser */ public class JFontChooserBeanInfo extends SimpleBeanInfo { /* 16x16 color icon. */ private final Image iconColor16 = loadImage("resources/image/FontChooser16Color.png"); /* 32x32 color icon. */ private final Image iconColor32 = loadImage("resources/image/FontChooser32Color.png"); /* 16x16 mono icon. */ private final Image iconMono16 = loadImage("resources/image/FontChooser16Mono.png"); /* 32x32 mono icon. */ private final Image iconMono32 = loadImage("resources/image/FontChooser32Mono.png"); /* The bean descriptor. */ private JFontChooserBeanDescriptor descriptor = new JFontChooserBeanDescriptor(); /** * Get the bean descriptor. * * @return the bean descriptor */ @Override public BeanDescriptor getBeanDescriptor() { return descriptor; } /** * Get the appropriate icon. * * @param iconKind the icon kind * @return the image */ @Override public Image getIcon(int iconKind) { switch (iconKind) { case ICON_COLOR_16x16: return iconColor16; case ICON_COLOR_32x32: return iconColor32; case ICON_MONO_16x16: return iconMono16; case ICON_MONO_32x32: return iconMono32; } return null; } }FontChooser/src/com/connectina/swing/fontchooser/JFontChooserBeanDescriptor.java0000644000175000017500000000245611142413322027254 0ustar tonytony/* * A font chooser JavaBean component. * Copyright (C) 2009 Dr Christos Bohoris * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 3 as published by the Free Software Foundation; * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * swing@connectina.com */ package com.connectina.swing.fontchooser; import java.beans.BeanDescriptor; /** * The bean descriptor for the JFontChooser JavaBean. * * @author Christos Bohoris * @see JFontChooser */ public class JFontChooserBeanDescriptor extends BeanDescriptor { public JFontChooserBeanDescriptor() { super(JFontChooser.class); setShortDescription("com.connectina.fontchooser.JFontChooser
A font selection pane."); setDisplayName("Font Chooser"); setPreferred(true); } } FontChooser/src/com/connectina/swing/fontchooser/JFontChooser.form0000644000175000017500000003265011174136643024465 0ustar tonytony
FontChooser/src/com/connectina/swing/fontchooser/JFontChooser.java0000644000175000017500000005170111174136643024441 0ustar tonytony/* * A font chooser JavaBean component. * Copyright (C) 2009 Dr Christos Bohoris * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 3 as published by the Free Software Foundation; * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * swing@connectina.com */ package com.connectina.swing.fontchooser; import java.awt.Dimension; import java.awt.Font; import java.awt.HeadlessException; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.Serializable; import java.util.ResourceBundle; import javax.swing.DefaultListModel; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.ListSelectionModel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; /** * Provides a pane of controls designed to allow a user to * select a Font. * * @author Christos Bohoris * @see java.awt.Font */ public class JFontChooser extends JPanel { private static final long serialVersionUID = 5157499702004637097L; private final static ResourceBundle bundle = ResourceBundle.getBundle("com/connectina/swing/fontchooser/resources/i18n/JFontChooser"); private FontSelectionModel selectionModel; /** * The selection model property name. */ public static final String SELECTION_MODEL_PROPERTY = "selectionModel"; /** * Creates a FontChooser pane with an initial default Font * (Sans Serif, Plain, 12). */ public JFontChooser() { this(new Font(Font.SANS_SERIF, Font.PLAIN, 12)); } /** * Creates a FontChooser pane with the specified initial Font. * * @param initialFont the initial Font set in the chooser */ public JFontChooser(Font initialFont) { this(new DefaultFontSelectionModel(initialFont)); } /** * Creates a FontChooser pane with the specified * FontSelectionModel. * * @param model the FontSelectionModel to be used */ public JFontChooser(FontSelectionModel model) { this.selectionModel = model; initComponents(); initPanel(); } /** * Gets the current Font value from the FontChooser. * By default, this delegates to the model. * * @return the current Font value of the FontChooser */ public Font getSelectedFont() { return selectionModel.getSelectedFont(); } /** * Sets the current Font of the FontChooser to the specified Font. * The FontSelectionModel will fire a ChangeEvent * @param Font the Font to be set in the Font chooser * @see JComponent#addPropertyChangeListener */ public void setSelectedFont(Font Font) { selectionModel.setSelectedFont(Font); } /** * Returns the data model that handles Font selections. * * @return a FontSelectionModel object */ public FontSelectionModel getSelectionModel() { return selectionModel; } /** * Sets the model containing the selected Font. * * @param newModel the new FontSelectionModel object */ public void setSelectionModel(FontSelectionModel newModel) { FontSelectionModel oldModel = selectionModel; selectionModel = newModel; firePropertyChange(JFontChooser.SELECTION_MODEL_PROPERTY, oldModel, newModel); } /** * Shows a modal FontChooser dialog and blocks until the * dialog is hidden. If the user presses the "OK" button, then * this method hides/disposes the dialog and returns the selected Font. * If the user presses the "Cancel" button or closes the dialog without * pressing "OK", then this method hides/disposes the dialog and returns * null. * * @param parent the parent JFrame for the dialog * @param initialFont the initial Font set when the FontChooser is shown * @return the selected Font or null if the user opted out * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless */ public static Font showDialog(Window parent, Font initialFont) throws HeadlessException { final JFontChooser pane = new JFontChooser(initialFont != null ? initialFont : new Font(Font.SANS_SERIF, Font.PLAIN, 12)); FontSelectionActionListener selectionListener = new FontSelectionActionListener(pane); JDialog dialog = createDialog(parent, true, pane, selectionListener); dialog.setLocationRelativeTo(parent); dialog.setVisible(true); return selectionListener.getFont(); } /** * Shows a modal FontChooser dialog and blocks until the * dialog is hidden. If the user presses the "OK" button, then * this method hides/disposes the dialog and returns the selected Font. * If the user presses the "Cancel" button or closes the dialog without * pressing "OK", then this method hides/disposes the dialog and returns * null. * * @param parent the parent JFrame for the dialog * @param fontChooser the FontChooser to be use in this dialog * @param initialFont the initial Font set when the FontChooser is shown * @return the selected Font or null if the user opted out * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless */ public static Font showDialog(Window parent, JFontChooser fontChooser, Font initialFont) throws HeadlessException { fontChooser.setSelectedFont(initialFont != null ? initialFont : new Font(Font.SANS_SERIF, Font.PLAIN, 12)); FontSelectionActionListener selectionListener = new FontSelectionActionListener(fontChooser); JDialog dialog = createDialog(parent, true, fontChooser, selectionListener); dialog.setLocationRelativeTo(parent); dialog.setVisible(true); return selectionListener.getFont(); } /** * Creates and returns a new dialog containing the specified * FontChooser pane along with "OK" and "Cancel" * buttons. If the "OK" or "Cancel" buttons are pressed, the dialog is * automatically hidden (but not disposed). * * @param parent the parent component for the dialog * @param modal a boolean. When true, the remainder of the program * is inactive until the dialog is closed. * @param chooserPane the Font-chooser to be placed inside the dialog * @param okListener the ActionListener invoked when "OK" is pressed * @return a new dialog containing the FontChooser pane * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. * @see java.awt.GraphicsEnvironment#isHeadless */ public static JDialog createDialog(Window parent, boolean modal, JFontChooser chooserPane, ActionListener okListener) throws HeadlessException { if (parent instanceof JDialog) { return new FontChooserDialog((JDialog) parent, modal, chooserPane, okListener); } else if (parent instanceof JFrame) { return new FontChooserDialog((JFrame) parent, modal, chooserPane, okListener); } else { throw new IllegalArgumentException("JFrame or JDialog parent is required."); } } /** * Adds a ChangeListener to the model. * * @param l the ChangeListener to be added */ public void addChangeListener(ChangeListener l) { selectionModel.addChangeListener(l); } /** * Removes a ChangeListener from the model. * @param l the ChangeListener to be removed */ public void removeChangeListener(ChangeListener l) { selectionModel.removeChangeListener(l); } private void initPanel() { // Set the font family names DefaultListModel listModel = new DefaultListModel(); for (String fontName : selectionModel.getAvailableFontNames()) { listModel.addElement(fontName); } familyList.setModel(listModel); familyList.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); familyList.setSelectedValue(selectionModel.getSelectedFont().getName(), true); familyList.addListSelectionListener(new FamilyListSelectionListener()); // Set the font styles listModel = new DefaultListModel(); listModel.addElement(getFontStyleName(Font.PLAIN)); listModel.addElement(getFontStyleName(Font.BOLD)); listModel.addElement(getFontStyleName(Font.ITALIC)); listModel.addElement(getFontStyleName(Font.BOLD + Font.ITALIC)); styleList.setModel(listModel); styleList.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); styleList.setSelectedIndex(selectionModel.getSelectedFont().getStyle()); styleList.addListSelectionListener(new StyleListSelectionListener()); // Set the font sizes listModel = new DefaultListModel(); int size = 6; int step = 1; int ceil = 14; do { listModel.addElement(size); if (size == ceil) { ceil += ceil; step += step; } size = size + step; } while (size <= 128); sizeList.setModel(listModel); sizeList.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); if (listModel.contains(selectionModel.getSelectedFont().getSize())) { sizeList.setSelectedValue(selectionModel.getSelectedFont().getSize(), true); } sizeList.addListSelectionListener(new SizeListSelectionListener()); sizeSpinner.addChangeListener(new SizeSpinnerListener()); sizeSpinner.setValue(selectionModel.getSelectedFont().getSize()); previewAreaLabel.setFont(selectionModel.getSelectedFont()); previewAreaLabel.setText(bundle.getString("font.preview.text")); } private String getFontStyleName(int index) { String result = null; switch (index) { case 0: result = bundle.getString("style.plain"); break; case 1: result = bundle.getString("style.bold"); break; case 2: result = bundle.getString("style.italic"); break; case 3: result = bundle.getString("style.bolditalic"); break; default: result = bundle.getString("style.plain"); } return result; } private class FamilyListSelectionListener implements ListSelectionListener { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { selectionModel.setSelectedFont(new Font(familyList.getSelectedValue().toString(), styleList.getSelectedIndex(), Integer.valueOf(sizeSpinner.getValue().toString()))); previewAreaLabel.setFont(selectionModel.getSelectedFont()); } } } private class StyleListSelectionListener implements ListSelectionListener { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { selectionModel.setSelectedFont(selectionModel.getSelectedFont().deriveFont(styleList.getSelectedIndex())); previewAreaLabel.setFont(selectionModel.getSelectedFont()); } } } private class SizeListSelectionListener implements ListSelectionListener { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { int index = ((DefaultListModel) sizeList.getModel()).indexOf(sizeList.getSelectedValue()); if (index > -1) { sizeSpinner.setValue((Integer) sizeList.getSelectedValue()); } selectionModel.setSelectedFont(selectionModel.getSelectedFont().deriveFont(Float.valueOf(sizeSpinner.getValue().toString()))); previewAreaLabel.setFont(selectionModel.getSelectedFont()); } } } private class SizeSpinnerListener implements ChangeListener { public void stateChanged(ChangeEvent e) { int value = (Integer) sizeSpinner.getValue(); int index = ((DefaultListModel) sizeList.getModel()).indexOf(value); if (index > -1) { sizeList.setSelectedValue(value, true); } else { sizeList.clearSelection(); } } } private static class FontSelectionActionListener implements ActionListener, Serializable { private static final long serialVersionUID = 8141913945783951693L; private JFontChooser chooser; private Font font; public FontSelectionActionListener(JFontChooser c) { chooser = c; } public void actionPerformed(ActionEvent e) { font = chooser.getSelectedFont(); } public Font getFont() { return font; } } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // //GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; fontPanel = new javax.swing.JPanel(); familyLabel = new javax.swing.JLabel(); styleLabel = new javax.swing.JLabel(); sizeLabel = new javax.swing.JLabel(); familyScrollPane = new javax.swing.JScrollPane(); familyList = new javax.swing.JList(); styleScrollPane = new javax.swing.JScrollPane(); styleList = new javax.swing.JList(); sizeSpinner = new javax.swing.JSpinner(); int spinnerHeight = (int)sizeSpinner.getPreferredSize().getHeight(); sizeSpinner.setPreferredSize(new Dimension(60, spinnerHeight)); sizeScrollPane = new javax.swing.JScrollPane(); sizeList = new javax.swing.JList(); previewPanel = new javax.swing.JPanel(); previewLabel = new javax.swing.JLabel(); previewAreaPanel = new javax.swing.JPanel(); previewAreaLabel = new javax.swing.JLabel(); setLayout(new java.awt.BorderLayout()); fontPanel.setLayout(new java.awt.GridBagLayout()); familyLabel.setLabelFor(familyList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 11); fontPanel.add(familyLabel, gridBagConstraints); styleLabel.setLabelFor(styleList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 11); fontPanel.add(styleLabel, gridBagConstraints); sizeLabel.setLabelFor(sizeList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0); fontPanel.add(sizeLabel, gridBagConstraints); familyScrollPane.setMinimumSize(new java.awt.Dimension(80, 50)); familyScrollPane.setPreferredSize(new java.awt.Dimension(240, 150)); familyScrollPane.setViewportView(familyList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 1; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 11, 11); fontPanel.add(familyScrollPane, gridBagConstraints); styleScrollPane.setMinimumSize(new java.awt.Dimension(60, 120)); styleScrollPane.setPreferredSize(new java.awt.Dimension(80, 150)); styleScrollPane.setViewportView(styleList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 1; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 11, 11); fontPanel.add(styleScrollPane, gridBagConstraints); sizeSpinner.setModel(new javax.swing.SpinnerNumberModel(12, 6, 128, 1)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0); fontPanel.add(sizeSpinner, gridBagConstraints); sizeScrollPane.setMinimumSize(new java.awt.Dimension(50, 120)); sizeScrollPane.setPreferredSize(new java.awt.Dimension(60, 150)); sizeScrollPane.setViewportView(sizeList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 0, 11, 0); fontPanel.add(sizeScrollPane, gridBagConstraints); add(fontPanel, java.awt.BorderLayout.CENTER); familyLabel.setDisplayedMnemonic(bundle.getString("font.family.mnemonic").charAt(0)); familyLabel.setText(bundle.getString("font.family")); styleLabel.setDisplayedMnemonic(bundle.getString("font.style.mnemonic").charAt(0)); styleLabel.setText(bundle.getString("font.style")); sizeLabel.setDisplayedMnemonic(bundle.getString("font.size.mnemonic").charAt(0)); sizeLabel.setText(bundle.getString("font.size")); previewLabel.setDisplayedMnemonic(bundle.getString("font.preview.mnemonic").charAt(0)); previewLabel.setText(bundle.getString("font.preview")); previewPanel.setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0); previewPanel.add(previewLabel, gridBagConstraints); previewAreaPanel.setBackground(new java.awt.Color(255, 255, 255)); previewAreaPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); previewAreaPanel.setPreferredSize(new java.awt.Dimension(200, 80)); previewAreaPanel.setLayout(new java.awt.BorderLayout()); previewAreaLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); previewAreaPanel.add(previewAreaLabel, java.awt.BorderLayout.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; previewPanel.add(previewAreaPanel, gridBagConstraints); add(previewPanel, java.awt.BorderLayout.SOUTH); }// //GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel familyLabel; private javax.swing.JList familyList; private javax.swing.JScrollPane familyScrollPane; private javax.swing.JPanel fontPanel; private javax.swing.JLabel previewAreaLabel; private javax.swing.JPanel previewAreaPanel; private javax.swing.JLabel previewLabel; private javax.swing.JPanel previewPanel; private javax.swing.JLabel sizeLabel; private javax.swing.JList sizeList; private javax.swing.JScrollPane sizeScrollPane; private javax.swing.JSpinner sizeSpinner; private javax.swing.JLabel styleLabel; private javax.swing.JList styleList; private javax.swing.JScrollPane styleScrollPane; // End of variables declaration//GEN-END:variables } FontChooser/src/com/connectina/swing/fontchooser/DefaultFontSelectionModel.java0000644000175000017500000001301011163003256027116 0ustar tonytony/* * A font chooser JavaBean component. * Copyright (C) 2009 Dr Christos Bohoris * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 3 as published by the Free Software Foundation; * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * swing@connectina.com */ package com.connectina.swing.fontchooser; import java.awt.Font; import java.awt.GraphicsEnvironment; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import javax.swing.event.EventListenerList; /** * A generic implementation of FontSelectionModel. * * @author Christos Bohoris * @see java.awt.Font */ public class DefaultFontSelectionModel implements FontSelectionModel { /** * Only one ChangeEvent is needed per model instance * since the event's only (read-only) state is the source property. * The source of events generated here is always "this". */ protected transient ChangeEvent changeEvent = null; /** * A list of registered event listeners. */ protected EventListenerList listenerList = new EventListenerList(); private Font selectedFont; private List availableFontNames = new ArrayList(); /** * Creates a DefaultFontSelectionModel with the * current font set to new Font(Font.SANS_SERIF, Font.PLAIN, 12) * . This is the default constructor. */ public DefaultFontSelectionModel() { this(new Font(Font.SANS_SERIF, Font.PLAIN, 12)); } /** * Creates a DefaultFontSelectionModel with the * current font set to font, which should be * non-null. Note that setting the font to * null is undefined and may have unpredictable * results. * * @param font the new Font */ public DefaultFontSelectionModel(Font font) { selectedFont = font; GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Collections.addAll(availableFontNames, ge.getAvailableFontFamilyNames()); } /** * Returns the selected Font which should be * non-null. * * @return the selected Font */ public Font getSelectedFont() { return selectedFont; } /** * Sets the selected font to font. * Note that setting the font to null * is undefined and may have unpredictable results. * This method fires a state changed event if it sets the * current font to a new non-null font; * if the new font is the same as the current font, * no event is fired. * * @param font the new Font */ public void setSelectedFont(Font font) { if (font != null && !selectedFont.equals(font)) { selectedFont = font; fireStateChanged(); } } /** * Gets the available font names. * Returns a list containing the names of all font families in this * GraphicsEnvironment localized for the default locale, * as returned by Locale.getDefault(). * * @return a list of String containing font family names localized for the * default locale, or a suitable alternative name if no name exists * for this locale */ public List getAvailableFontNames() { return availableFontNames; } /** * Adds a ChangeListener to the model. * * @param l the ChangeListener to be added */ public void addChangeListener(ChangeListener l) { listenerList.add(ChangeListener.class, l); } /** * Removes a ChangeListener from the model. * @param l the ChangeListener to be removed */ public void removeChangeListener(ChangeListener l) { listenerList.remove(ChangeListener.class, l); } /** * Returns an array of all the ChangeListeners added * to this DefaultFontSelectionModel with * addChangeListener. * * @return all of the ChangeListeners added, or an empty * array if no listeners have been added */ public ChangeListener[] getChangeListeners() { return (ChangeListener[]) listenerList.getListeners( ChangeListener.class); } /** * Runs each ChangeListener's * stateChanged method. */ protected void fireStateChanged() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ChangeListener.class) { if (changeEvent == null) { changeEvent = new ChangeEvent(this); } ((ChangeListener) listeners[i + 1]).stateChanged(changeEvent); } } } } FontChooser/src/com/connectina/swing/fontchooser/FontSelectionModel.java0000644000175000017500000000520011142413306025611 0ustar tonytony/* * A font chooser JavaBean component. * Copyright (C) 2009 Dr Christos Bohoris * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 3 as published by the Free Software Foundation; * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * swing@connectina.com */ package com.connectina.swing.fontchooser; import java.awt.Font; import java.util.List; import javax.swing.event.ChangeListener; /** * A model that supports selecting a Font. * * @author Christos Bohoris * @see java.awt.Font */ public interface FontSelectionModel { /** * Returns the selected Font which should be * non-null. * * @return the selected Font * @see #setSelectedFont */ Font getSelectedFont(); /** * Sets the selected font to font. * Note that setting the font to null * is undefined and may have unpredictable results. * This method fires a state changed event if it sets the * current font to a new non-null font. * * @param font the new Font * @see #getSelectedFont * @see #addChangeListener */ void setSelectedFont(Font font); /** * Gets the available font names. * Returns a list containing the names of all font families in this * GraphicsEnvironment localized for the default locale, * as returned by Locale.getDefault(). * * @return a list of String containing font family names localized for the * default locale, or a suitable alternative name if no name exists * for this locale */ List getAvailableFontNames(); /** * Adds listener as a listener to changes in the model. * * @param listener the ChangeListener to be added */ void addChangeListener(ChangeListener listener); /** * Removes listener as a listener to changes in the model. * * @param listener the ChangeListener to be removed */ void removeChangeListener(ChangeListener listener); } FontChooser/src/com/connectina/swing/fontchooser/package-info.java0000644000175000017500000000154011142413340024401 0ustar tonytony/** *
 Provides a Swing font chooser JavaBean component.
 * 
 * Copyright (C) 2009 Dr Christos Bohoris
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 3 as published by the Free Software Foundation;
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * swing@connectina.com
*/ package com.connectina.swing.fontchooser; FontChooser/src/com/connectina/swing/fontchooser/resources/0000755000175000017500000000000011163003132023221 5ustar tonytonyFontChooser/src/com/connectina/swing/fontchooser/resources/i18n/0000755000175000017500000000000011163003132024000 5ustar tonytonyFontChooser/src/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_de.properties0000644000175000017500000000045111141672744031152 0ustar tonytony# German style.plain=Normal style.bold=Fett style.italic=Kursiv font.family=Familie font.style=Stil font.size=Gr\u00F6\u00DFe font.preview=Vorschau font.family.mnemonic=F font.style.mnemonic=S font.size.mnemonic=G font.preview.mnemonic=V font.preview.text=Aa Bb Yy Zz style.bolditalic=Fett Kursiv FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_es.properties0000644000175000017500000000017311141672100032162 0ustar tonytony# Spanish action.ok=Aceptar action.cancel=Cancelar action.ok.mnemonic=T action.cancel.mnemonic=C window.title=Tipo de letraFontChooser/src/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_fr.properties0000644000175000017500000000015511141666602032174 0ustar tonytony# French action.ok=OK action.cancel=Annuler action.ok.mnemonic=O action.cancel.mnemonic=L window.title=PoliceFontChooser/src/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_de.properties0000644000175000017500000000016311141671350032150 0ustar tonytony# German action.ok=OK action.cancel=Abbrechen action.ok.mnemonic=O action.cancel.mnemonic=A window.title=SchriftartFontChooser/src/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog.properties0000644000175000017500000000015311140537512031477 0ustar tonytony# English action.ok=OK action.cancel=Cancel action.ok.mnemonic=O action.cancel.mnemonic=C window.title=FontFontChooser/src/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_el.properties0000644000175000017500000000041211140537512032155 0ustar tonytony# Greek action.ok=\u0395\u03BD\u03C4\u03AC\u03BE\u03B5\u03B9 action.cancel=\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 action.ok.mnemonic=\u0395 action.cancel.mnemonic=\u0391 window.title=\u0393\u03C1\u03B1\u03BC\u03BC\u03B1\u03C4\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_ru.properties0000644000175000017500000000025011445525014032205 0ustar tonytony# English action.ok=OK action.cancel=\u041e\u0442\u043c\u0435\u043d\u0430 action.ok.mnemonic=O action.cancel.mnemonic=\u0422 window.title=\u0428\u0440\u0438\u0444\u0442FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_el.properties0000644000175000017500000000121411141672736031161 0ustar tonytony# Greek style.plain=\u039A\u03B1\u03BD\u03BF\u03BD\u03B9\u03BA\u03AC style.bold=\u0388\u03BD\u03C4\u03BF\u03BD\u03B1 style.italic=\u03A0\u03BB\u03AC\u03B3\u03B9\u03B1 font.family=\u039F\u03B9\u03BA\u03BF\u03B3\u03AD\u03BD\u03B5\u03B9\u03B1 font.style=\u03A3\u03C4\u03CD\u03BB font.size=\u039C\u03AD\u03B3\u03B5\u03B8\u03BF\u03C2 font.preview=\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 font.family.mnemonic=\u039F font.style.mnemonic=\u03A3 font.size.mnemonic=\u039C font.preview.mnemonic=\u03A0 font.preview.text=Aa Bb Yy Zz style.bolditalic=\u0388\u03BD\u03C4\u03BF\u03BD\u03B1 \u03A0\u03BB\u03AC\u03B3\u03B9\u03B1 FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_es.properties0000644000175000017500000000047611141672756031203 0ustar tonytony# Spanish style.plain=Regular style.bold=Negrita style.italic=Italica font.family=Familia font.style=Estilo font.size=Tama\u00F1o font.preview=Previsualizaci\u00F3n font.family.mnemonic=F font.style.mnemonic=E font.size.mnemonic=T font.preview.mnemonic=P font.preview.text=Aa Bb Yy Zz style.bolditalic=Negrita Italica FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_fr.properties0000644000175000017500000000045011141672716031167 0ustar tonytony# French style.plain=Normal style.bold=Gras style.italic=Italique font.family=Famille font.style=Style font.size=Taille font.preview=Aper\u00E7u font.family.mnemonic=F font.style.mnemonic=S font.size.mnemonic=T font.preview.mnemonic=P font.preview.text=Aa Bb Yy Zz style.bolditalic=Gras Italique FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_ru.properties0000644000175000017500000000136211445525014031204 0ustar tonytony# English style.plain=\u041e\u0431\u044b\u0447\u043d\u044b\u0439 style.bold=\u041f\u043e\u043b\u0443\u0436\u0438\u0440\u043d\u044b\u0439 style.italic=\u041a\u0443\u0440\u0441\u0438\u0432 font.family=\u0413\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 font.style=\u041d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u0435 font.size=\u0420\u0430\u0437\u043c\u0435\u0440 font.preview=\u041f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 font.family.mnemonic=\u0413 font.style.mnemonic=\u0421 font.size.mnemonic=\u0420 font.preview.mnemonic=\u041f font.preview.text=\u0410\u0430 \u0411\u0431 \u0423\u0443 \u042f\u044f style.bolditalic=\u041f\u043e\u043b\u0443\u0436\u0438\u0440\u043d\u044b\u0439 \u043a\u0443\u0440\u0441\u0438\u0432 FontChooser/src/com/connectina/swing/fontchooser/resources/i18n/JFontChooser.properties0000644000175000017500000000043711141672754030507 0ustar tonytony# English style.plain=Regular style.bold=Bold style.italic=Italic font.family=Family font.style=Style font.size=Size font.preview=Preview font.family.mnemonic=F font.style.mnemonic=S font.size.mnemonic=Z font.preview.mnemonic=P font.preview.text=Aa Bb Yy Zz style.bolditalic=Bold Italic FontChooser/src/com/connectina/swing/fontchooser/resources/image/0000755000175000017500000000000011163003132024303 5ustar tonytonyFontChooser/src/com/connectina/swing/fontchooser/resources/image/FontChooser32Color.png0000644000175000017500000000060211142134112030404 0ustar tonytony‰PNG  IHDR D¤ŠÆ¥PLTEzˆ–y‡•óóóx†”òòóx…“ññòalw¬Èåw…’ñññuƒ‘ðððu‚ïïïs€ŽîîîqŒììíp}Šëëìo|‰êêëm{ˆééély†èèèjw„çççiv‚ææçgtååæeq~ääåcp|bnzããä`lxââã_kw]iuááâ\ht[frYepààáWcoWbnUalT`kT_jèèéS^iª¦ 4ÑR˜IDATxÚÝ“Ë Ã0 CIVI)кÿ %öP£ð±s詾<È"(C Á!Ùí;Ä­¸Ž aN¥‡WL¼~Êp÷Ê!aK –CÕ#{YR)HõƒJ´óœã‚ÿ ×È ÞÇyuú‡¼œ{ ª7áf©j‰ƒÔ‹Ñë1b ¢Yuù5ŸÃU_Ñ=on¼(uBnäQIEND®B`‚FontChooser/src/com/connectina/swing/fontchooser/resources/image/FontChooser16Mono.png0000644000175000017500000000013611142134112030242 0ustar tonytony‰PNG  IHDR7ˆÂÌ%IDAThÞc```¨ÿÇàp‹! ¹ A&†ø_ d¹@ðÿ?‡°ÀÜžáQIEND®B`‚FontChooser/src/com/connectina/swing/fontchooser/resources/image/FontChooser16Color.png0000644000175000017500000000037311142134112030413 0ustar tonytony‰PNG  IHDR(-SWPLTEzˆ–x†”óóóv„’ññò¨Æätïïðeq}qŒííín{‰êêëkx…ççèhuææædq}ääåamyããã^jvááâ[frààáXdpVamT_jª¦ !¯Ž_IDATxÚ]Q À0CqcŸìþ'Ü:×VZɇy%"Ë(Þ…›mSÄ´îéï”+ †¨ª4¤¦(À`¸–·=ñ$p´ß3n¤À…™ü,Ý ¬m KýüªÃòÜoßIEND®B`‚FontChooser/src/com/connectina/swing/fontchooser/resources/image/FontChooser32Mono.png0000644000175000017500000000015711142134112030243 0ustar tonytony‰PNG  IHDR [GY6IDAThÞc`úÿÿÿ180lbˆÿw÷ˆ³v‘K€‚ÊÀÄÿÿÿ/b°b°60ø}íVÙë™…IEND®B`‚FontChooser/src/com/connectina/swing/fontchooser/FontChooserDialog.form0000644000175000017500000001435111141622270025457 0ustar tonytony
FontChooser/lgpl-3.0.txt0000644000175000017500000001672711142413426014063 0ustar tonytony GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. FontChooser/.classpath0000644000175000017500000000045511163003176014040 0ustar tonytony FontChooser/catalog.xml0000644000175000017500000000033511142075764014217 0ustar tonytony FontChooser/build.xml0000644000175000017500000000710611140376132013676 0ustar tonytony Builds, tests, and runs the project FontChooser. FontChooser/.project0000644000175000017500000000060311163003176013517 0ustar tonytony FontChooser org.eclipse.jdt.core.javabuilder org.eclipse.jdt.core.javanature FontChooser/manifest.mf0000644000175000017500000000012511140306062014174 0ustar tonytonyManifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build FontChooser/build/0000755000175000017500000000000011174137767013170 5ustar tonytonyFontChooser/build/classes/0000755000175000017500000000000011174137770014617 5ustar tonytonyFontChooser/build/classes/com/0000755000175000017500000000000011174137770015375 5ustar tonytonyFontChooser/build/classes/com/connectina/0000755000175000017500000000000011174137770017516 5ustar tonytonyFontChooser/build/classes/com/connectina/swing/0000755000175000017500000000000011174137770020645 5ustar tonytonyFontChooser/build/classes/com/connectina/swing/fontchooser/0000755000175000017500000000000011467162464023201 5ustar tonytonyFontChooser/build/classes/com/connectina/swing/fontchooser/resources/0000755000175000017500000000000011174137770025210 5ustar tonytonyFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/0000755000175000017500000000000011174137770025767 5ustar tonytony././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_de.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_de.properties0000644000175000017500000000045111174137770033120 0ustar tonytony# German style.plain=Normal style.bold=Fett style.italic=Kursiv font.family=Familie font.style=Stil font.size=Gr\u00F6\u00DFe font.preview=Vorschau font.family.mnemonic=F font.style.mnemonic=S font.size.mnemonic=G font.preview.mnemonic=V font.preview.text=Aa Bb Yy Zz style.bolditalic=Fett Kursiv ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_es.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_es.prope0000644000175000017500000000017311174137770033077 0ustar tonytony# Spanish action.ok=Aceptar action.cancel=Cancelar action.ok.mnemonic=T action.cancel.mnemonic=C window.title=Tipo de letra././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_fr.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_fr.prope0000644000175000017500000000015511174137770033077 0ustar tonytony# French action.ok=OK action.cancel=Annuler action.ok.mnemonic=O action.cancel.mnemonic=L window.title=Police././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_de.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_de.prope0000644000175000017500000000016311174137770033057 0ustar tonytony# German action.ok=OK action.cancel=Abbrechen action.ok.mnemonic=O action.cancel.mnemonic=A window.title=Schriftart././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog.properti0000644000175000017500000000015311174137770033125 0ustar tonytony# English action.ok=OK action.cancel=Cancel action.ok.mnemonic=O action.cancel.mnemonic=C window.title=Font././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_el.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/FontChooserDialog_el.prope0000644000175000017500000000041211174137770033064 0ustar tonytony# Greek action.ok=\u0395\u03BD\u03C4\u03AC\u03BE\u03B5\u03B9 action.cancel=\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 action.ok.mnemonic=\u0395 action.cancel.mnemonic=\u0391 window.title=\u0393\u03C1\u03B1\u03BC\u03BC\u03B1\u03C4\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_el.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_el.properties0000644000175000017500000000121411174137770033126 0ustar tonytony# Greek style.plain=\u039A\u03B1\u03BD\u03BF\u03BD\u03B9\u03BA\u03AC style.bold=\u0388\u03BD\u03C4\u03BF\u03BD\u03B1 style.italic=\u03A0\u03BB\u03AC\u03B3\u03B9\u03B1 font.family=\u039F\u03B9\u03BA\u03BF\u03B3\u03AD\u03BD\u03B5\u03B9\u03B1 font.style=\u03A3\u03C4\u03CD\u03BB font.size=\u039C\u03AD\u03B3\u03B5\u03B8\u03BF\u03C2 font.preview=\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 font.family.mnemonic=\u039F font.style.mnemonic=\u03A3 font.size.mnemonic=\u039C font.preview.mnemonic=\u03A0 font.preview.text=Aa Bb Yy Zz style.bolditalic=\u0388\u03BD\u03C4\u03BF\u03BD\u03B1 \u03A0\u03BB\u03AC\u03B3\u03B9\u03B1 ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_es.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_es.properties0000644000175000017500000000047611174137770033146 0ustar tonytony# Spanish style.plain=Regular style.bold=Negrita style.italic=Italica font.family=Familia font.style=Estilo font.size=Tama\u00F1o font.preview=Previsualizaci\u00F3n font.family.mnemonic=F font.style.mnemonic=E font.size.mnemonic=T font.preview.mnemonic=P font.preview.text=Aa Bb Yy Zz style.bolditalic=Negrita Italica ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_fr.propertiesFontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser_fr.properties0000644000175000017500000000045011174137770033136 0ustar tonytony# French style.plain=Normal style.bold=Gras style.italic=Italique font.family=Famille font.style=Style font.size=Taille font.preview=Aper\u00E7u font.family.mnemonic=F font.style.mnemonic=S font.size.mnemonic=T font.preview.mnemonic=P font.preview.text=Aa Bb Yy Zz style.bolditalic=Gras Italique FontChooser/build/classes/com/connectina/swing/fontchooser/resources/i18n/JFontChooser.properties0000644000175000017500000000043711174137770032454 0ustar tonytony# English style.plain=Regular style.bold=Bold style.italic=Italic font.family=Family font.style=Style font.size=Size font.preview=Preview font.family.mnemonic=F font.style.mnemonic=S font.size.mnemonic=Z font.preview.mnemonic=P font.preview.text=Aa Bb Yy Zz style.bolditalic=Bold Italic FontChooser/build/classes/com/connectina/swing/fontchooser/resources/image/0000755000175000017500000000000011174137770026272 5ustar tonytonyFontChooser/build/classes/com/connectina/swing/fontchooser/resources/image/FontChooser32Color.png0000644000175000017500000000060211174137770032373 0ustar tonytony‰PNG  IHDR D¤ŠÆ¥PLTEzˆ–y‡•óóóx†”òòóx…“ññòalw¬Èåw…’ñññuƒ‘ðððu‚ïïïs€ŽîîîqŒììíp}Šëëìo|‰êêëm{ˆééély†èèèjw„çççiv‚ææçgtååæeq~ääåcp|bnzããä`lxââã_kw]iuááâ\ht[frYepààáWcoWbnUalT`kT_jèèéS^iª¦ 4ÑR˜IDATxÚÝ“Ë Ã0 CIVI)кÿ %öP£ð±s詾<È"(C Á!Ùí;Ä­¸Ž aN¥‡WL¼~Êp÷Ê!aK –CÕ#{YR)HõƒJ´óœã‚ÿ ×È ÞÇyuú‡¼œ{ ª7áf©j‰ƒÔ‹Ñë1b ¢Yuù5ŸÃU_Ñ=on¼(uBnäQIEND®B`‚FontChooser/build/classes/com/connectina/swing/fontchooser/resources/image/FontChooser16Mono.png0000644000175000017500000000013611174137770032231 0ustar tonytony‰PNG  IHDR7ˆÂÌ%IDAThÞc```¨ÿÇàp‹! ¹ A&†ø_ d¹@ðÿ?‡°ÀÜžáQIEND®B`‚FontChooser/build/classes/com/connectina/swing/fontchooser/resources/image/FontChooser16Color.png0000644000175000017500000000037311174137770032402 0ustar tonytony‰PNG  IHDR(-SWPLTEzˆ–x†”óóóv„’ññò¨Æätïïðeq}qŒííín{‰êêëkx…ççèhuææædq}ääåamyããã^jvááâ[frààáXdpVamT_jª¦ !¯Ž_IDATxÚ]Q À0CqcŸìþ'Ü:×VZɇy%"Ë(Þ…›mSÄ´îéï”+ †¨ª4¤¦(À`¸–·=ñ$p´ß3n¤À…™ü,Ý ¬m KýüªÃòÜoßIEND®B`‚FontChooser/build/classes/com/connectina/swing/fontchooser/resources/image/FontChooser32Mono.png0000644000175000017500000000015711174137770032232 0ustar tonytony‰PNG  IHDR [GY6IDAThÞc`úÿÿÿ180lbˆÿw÷ˆ³v‘K€‚ÊÀÄÿÿÿ/b°b°60ø}íVÙë™…IEND®B`‚FontChooser/nbproject/0000755000175000017500000000000011163003132014027 5ustar tonytonyFontChooser/nbproject/project.xml0000644000175000017500000000106511140376132016231 0ustar tonytony org.netbeans.modules.java.j2seproject FontChooser 1.6.5 FontChooser/nbproject/private/0000755000175000017500000000000011163003132015501 5ustar tonytonyFontChooser/nbproject/private/config.properties0000644000175000017500000000000011140376132021062 0ustar tonytonyFontChooser/nbproject/private/private.xml0000644000175000017500000000031711174136712017713 0ustar tonytony FontChooser/nbproject/private/private.properties0000644000175000017500000000027611174134622021311 0ustar tonytonycompile.on.save=true jaxws.endorsed.dir=/opt/netbeans/java2/modules/ext/jaxws21/api:/opt/netbeans/ide10/modules/ext/jaxb/api user.properties.file=/home/sirius/.netbeans/6.5/build.properties FontChooser/nbproject/private/cache/0000755000175000017500000000000011163003132016544 5ustar tonytonyFontChooser/nbproject/private/cache/retriever/0000755000175000017500000000000011163003132020553 5ustar tonytonyFontChooser/nbproject/private/cache/retriever/catalog.xml0000644000175000017500000000053711142075762022733 0ustar tonytony FontChooser/nbproject/private/cache/retriever/pear.php.net/0000755000175000017500000000000011163003132023055 5ustar tonytonyFontChooser/nbproject/private/cache/retriever/pear.php.net/dtd/0000755000175000017500000000000011163003132023630 5ustar tonytonyFontChooser/nbproject/private/cache/retriever/pear.php.net/dtd/package-2.0.xsd0000644000175000017500000004636111142075762026271 0ustar tonytony uri of the package that contains the source of this extension this is ignored if the release type is bundle for php script releases for extension source releases for compiled extension source releases for bundling several releases together in one release tells the installer not to install the default dependency group absolute required dependencies all other optional dependency groups simple optional dependencies version string regex name of the package that contains the source of this extension (can be the same if the source and binaries are in the same package) if a package can provide one or more compatible extensions (dblib/sybase/mssql for instance) FontChooser/nbproject/private/cache/retriever/pear.php.net/dtd/tasks-1.0.xsd0000644000175000017500000000657511142075760026023 0ustar tonytony standard PEAR str_replace() in-file replacement standard PEAR post-installation script - must be used in a role="php" file parameter condition name, passed to install script standard PEAR unix line endings package-time replacement standard PEAR windows line ending package-time replacement FontChooser/nbproject/project.properties0000644000175000017500000000371111140540116017620 0ustar tonytonyapplication.title=FontChooser application.vendor=bohoris build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results # Uncomment to specify the preferred debugger connection transport: #debug.transport=dt_socket debug.classpath=\ ${run.classpath} debug.test.classpath=\ ${run.test.classpath} # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/FontChooser.jar dist.javadoc.dir=${dist.dir}/javadoc excludes= includes=** jar.compress=false javac.classpath= # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false javac.source=1.5 javac.target=1.5 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ ${libs.junit.classpath}:\ ${libs.junit_4.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding=${source.encoding} javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=false javadoc.splitindex=true javadoc.use=true javadoc.version=false javadoc.windowtitle= main.class=com.connectina.swing.fontchooser.Main manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF platform.active=default_platform run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value # or test-sys-prop.name=value to set system properties for unit tests): run.jvmargs= run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} source.encoding=UTF-8 src.dir=src test.src.dir=test FontChooser/nbproject/build-impl.xml0000644000175000017500000010123211174134622016621 0ustar tonytony Must set src.dir Must set test.src.dir Must set build.dir Must set dist.dir Must set build.classes.dir Must set dist.javadoc.dir Must set build.test.classes.dir Must set build.test.results.dir Must set build.classes.excludes Must set dist.jar Must set javac.includes Must select some files in the IDE or set javac.includes To run this application from the command line without Ant, try: java -cp "${run.classpath.with.dist.jar}" ${main.class} To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}" Must select one file in the IDE or set run.class Must select one file in the IDE or set debug.class Must set fix.includes Must select some files in the IDE or set javac.includes Some tests failed; see details above. Must select some files in the IDE or set test.includes Some tests failed; see details above. Must select one file in the IDE or set test.class Must select one file in the IDE or set applet.url Must select one file in the IDE or set applet.url FontChooser/nbproject/genfiles.properties0000644000175000017500000000067711174134622017766 0ustar tonytonybuild.xml.data.CRC32=e72e33dc build.xml.script.CRC32=a2473fce build.xml.stylesheet.CRC32=958a1d3e # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=e72e33dc nbproject/build-impl.xml.script.CRC32=743dfa87 nbproject/build-impl.xml.stylesheet.CRC32=65b8de21