Problem in using Font class

In this code i try to make font preview on the word "Test" by selecting font name , style and size
but when i select font name and style the word " Test" disappear
why ??
please say to me the correct way to do this .
my code :
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
class FontClass extends JDialog {
    Box mainComBoxPanel = Box.createHorizontalBox();
    JPanel comfontpanel, comfontstaylePanel, comsizeFontpanel, mainSamplePanel, samplePanel, mainPanel, applayPanel, mainApplayPanel;
    JLabel labelFont, labelFontstyle, labelSize, sampleLabel;
    TitledBorder titleSample, fontProperties;
    JComboBox comboBoxFont, comboBoxFontstyle, comboBoxFontSize;
    JButton applayButton, canelButton;
    String[] font;
    int[] fontStyle = {Font.BOLD, Font.ITALIC, Font.BOLD | Font.ITALIC};
    String[] fontNames = {"Bold", "Italic", "BoldItalic"};
    String[] sizeFont = {"20", "22", "24", "26", " 28", "36", "48", "72"};
    public FontClass() {
        font = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
        comboBoxFont = new JComboBox(font);
        IntializePanel();
        IntializeLapel();
        //applay panel contain ok & applay buttons
        applayPanel.setLayout(new GridLayout(2, 1));
        applayButton = new JButton("applay");
        canelButton = new JButton("cancel");
        applayPanel.add(applayButton);
        applayPanel.add(canelButton);
        mainApplayPanel.setBackground(Color.BLUE);
        mainApplayPanel.add(applayPanel);
        // panels for comboBox
        comfontpanel.setLayout(new GridLayout(2, 1));
        comfontstaylePanel.setLayout(new GridLayout(2, 1));
        comsizeFontpanel.setLayout(new GridLayout(2, 1));
        // sampel panel for previewing font properties
        titleSample = BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLACK, 3), "sample");
        samplePanel.setBorder(titleSample);
        sampleLabel.setText("Test");
        samplePanel.setBackground(Color.BLUE);
        samplePanel.add(sampleLabel);
        comboBoxFontstyle = new JComboBox();
        for (int i = 0; i < fontStyle.length; ++i) {
            comboBoxFontstyle.addItem(fontNames);
comboBoxFontSize = new JComboBox();
for (int i = 0; i < sizeFont.length; ++i) {
comboBoxFontSize.addItem(sizeFont[i]);
comfontpanel.add(labelFont);
comfontpanel.add(comboBoxFont);
comfontstaylePanel.add(labelFontstyle);
comfontstaylePanel.add(comboBoxFontstyle);
comsizeFontpanel.add(labelSize);
comsizeFontpanel.add(comboBoxFontSize);
comfontpanel.setPreferredSize(new Dimension(40, 40));
comfontstaylePanel.setPreferredSize(new Dimension(40, 40));
comsizeFontpanel.setPreferredSize(new Dimension(40, 40));
fontProperties = BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLACK, 5), "Font properties");
mainComBoxPanel.setBorder(fontProperties);
mainComBoxPanel.add(comfontpanel);
mainComBoxPanel.add(Box.createHorizontalStrut(10));
mainComBoxPanel.add(comfontstaylePanel);
mainComBoxPanel.add(Box.createHorizontalStrut(10));
mainComBoxPanel.add(comsizeFontpanel);
mainComBoxPanel.add(Box.createHorizontalGlue());
samplePanel.setPreferredSize(new Dimension(200, 100));
mainSamplePanel.add(samplePanel);
mainPanel.setLayout(new BorderLayout());
mainPanel.add(mainComBoxPanel, BorderLayout.NORTH);
mainPanel.add(mainSamplePanel, BorderLayout.SOUTH);
mainPanel.add(mainApplayPanel, BorderLayout.EAST);
getContentPane().add(mainPanel);
comboBoxFont.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
String newFontName = (String) comboBoxFont.getSelectedItem();
sampleLabel.setFont(new Font(newFontName, WIDTH, WIDTH));
comboBoxFontstyle.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
int newFontStyle = fontStyle[comboBoxFontstyle.getSelectedIndex()];
sampleLabel.setFont(new Font(null, newFontStyle, WIDTH));
comboBoxFontSize.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
int newFontSize = Integer.parseInt((String) comboBoxFontSize.getSelectedItem());
sampleLabel.setFont(new Font(null, WIDTH, newFontSize));
private void IntializePanel() {
mainPanel = new JPanel();
comfontpanel = new JPanel();
comfontstaylePanel = new JPanel();
comsizeFontpanel = new JPanel();
mainSamplePanel = new JPanel();
samplePanel = new JPanel();
mainApplayPanel = new JPanel();
applayPanel = new JPanel();
private void IntializeLapel() {
labelFont = new JLabel("Font:");
labelFontstyle = new JLabel("Font Style:");
labelSize = new JLabel("Size:");
sampleLabel = new JLabel("Test");
public static void main(String[] args) {
FontClass fontClass = new FontClass();
fontClass.setSize(new Dimension(500, 400));
fontClass.setLocationRelativeTo(null);
fontClass.setVisible(true);
fontClass.setResizable(false);

Add a single item listener to all your combo boxes:
        ItemListener itemListener=new ItemListener() {
            public void itemStateChanged(ItemEvent e) {
                String selectedFontName = (String) comboBoxFont.getSelectedItem();
                int selectedfontStyle = fontStyle[comboBoxFontstyle.getSelectedIndex()];
                int selectedfontSize = Integer.parseInt((String) comboBoxFontSize.getSelectedItem());
                sampleLabel.setFont(new Font(selectedFontName, selectedfontStyle, selectedfontSize));
        comboBoxFont.addItemListener(itemListener);
        comboBoxFontstyle.addItemListener(itemListener);
        comboBoxFontSize.addItemListener(itemListener);By the way, have tried searching for 'Swing Font Chooser' on Google?
Thanks!

Similar Messages

  • Problem when used InetAddress class in Applet

    Hi all.
    I'DongPG from Vietnam.
    I have a question'How to get IP that different from IP default "127.0.0.1" address'.
    I've built an applet where i used InetAddress class to get browser'IP follow:
    InetAddress localIP = InetAddress.getLocalHost();
    String strIP=localIP.getHostAddress();
    I used JBuilder to build applet. It's gotten IP right. Ex:strIP='192.168.100.1'
    But when i used browser link to my Applet in WebServer, it only return strIP='127.0.0.1'
    Thank a lot!

    Wrong forum and cross posted as well.

  • Class casting problem when using two class loaders

    Hi, I have a problem with class casting using two different ClassLoader...
    I created an instance of Test class, which is a subclass of AbstractTest and stored it for later use to ArrayList<AsbtractTest>. The instance was created with a custom class loader which extends URLClassLoader. Later when I got the stored instance from the ArrayList<AbstractTest> in default ClassLoader context and cast it to Test, it failed saying "java.lang.ClassCastException: com.test.Test cannot be cast to com.test.Test".
    Does anybody have an idea why this happens?

    Yes - a class is identified by it's package, it's name and it's class loader so the same class code loaded with two different class loaders are two different classes.
    An approach to dealing with your problem is to have the class implement an interface that is loaded by the parent class (assuming, of course, that the two class loaders have the same parent) then you can cast to the interface.

  • Problem to use SAPServer Class with load balancing

    Hello,
    We use the SAPServer Class from SAP .Net Connector 1.0.
    On our system, we want to start the RFC Server to use the logon group.
    I didn't find how to use ServerMessage and LogonGroup with one of constructors.
    When we start the SAPServer with the command line -aUSER -gBEAUSR201 -xsapgw10 from the DB server (BEAUSR201) it's Ok,
    but when we start from one of our application Server (for example -aUSER -gBEAUSR213 -xsapgw13 ) it's KO
    we have this message on the trc file.
    ERROR file opened at 20041125 084739 Paris, Madrid, SAP-REL 620,0,1622 RFC-VER 3 683864 MT-SL
    T:13188 ======> Connect to SAP gateway failed
    Connect_PM  TPNAME=USER, GWHOST=BEAUSR214, GWSERV=3314
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname 'BEAUSR214' unknown
    TIME        Thu Nov 25 08:47:39 2004
    RELEASE     620
    COMPONENT   NI (network interface)
    VERSION     36
    RC          -2
    MODULE      ninti.c
    LINE        385
    DETAIL      NiPHostToAddr
    SYSTEM CALL gethostbyname
    COUNTER     1
    What is the solution ?
    Thanks

    Hi,
    The message server and Logon group are there for balancing the load among application servers within a SAP system. You are using the SAPServer class to implement an external RFC server that usually serves the request from SAP servers. So using message server and logon group with an external server doesn't make sense.
    I understand that both your DB server and the application server in question are Windows machine with .NET runtime installed and you started the SAPServer programs directly from Windows command line. If so, the error message for the KO case says that the hostname BEAUSR214 could not be resolved from the application server. I also noticed that the hostname BEAUSR214 in error message doesn't match the hostname BEAUSR213 given in command line.
    Can you ping BEAUSR213 or BEAUSR214 from the application server in concern?
    Regards,
    Guangwei Li

  • Problem While using Applet Reqd classes using Weblogic 5.1

    Hi All,
    Here is my problem while using other classes from the Applet gives an error:NoClassDefFound,
    I have also put the applet reqd. classes in a jar file and placed this jar along with the applet
    in weblogic/myserver/serverclases,
    my tag in the html file is as follows:
    <applet code="MyApplet.class" archive="voucher.jar"
         codebase="/classes/" >
    </applet>
    is there any problem with my tag or directory structure,
    It would be great ful and thanks for helping in solving this problem.
    sai.

    Is this an issue with the "T-engine" or the "J-engine"? Are you using a
    ubbconfig file or weblogic.properties file? Can you post the stack trace?
    This may be an known issue and simply require you to install the latest
    service pack for WLS 5.1 (aka. J-engine)...
    Mary Ann Slavin wrote:
    Accordning to the Software Product Information (SPI) for WLE 5.1 it is
    available on the following Linux versions so this could be a problem
    with the version you are running.
    "BEA WebLogic Enterprise 5.1 software for Red Hat Linux 6.2 and Reliant
    Unix 5.45 is available separately. "
    MAS
    yajneesh Sabharwal wrote:
    hello friends,
    I have a Problem in Using Weblogic 5.1
    I am using weblogic 5.1 Enterprise on Linux 2.2.16 SuSE (7.0) with
    Dual Celeron 550MHz and 1GB RAM. The server runs our web application
    which uses the servelt, JSP and XSQL technology. The problem is
    that often i receive ASSERTION FAILURES where after the jsp's stop
    displaying content. Is this a Weblogic administration problem or
    the underlying OS problem. Kindly advice.
    Thankx in Advance
    Yajneesh sabharwal

  • Creating a triangle using polygon class problem, URGENT??

    Hi i am creating a triangle using polygon class which will eventually be used in a game where by a user clicks on the screen and triangles appear.
    class MainWindow extends Frame
         private Polygon[] m_polyTriangleArr;
                       MainWindow()
                              m_nTrianglesToDraw = 0;
             m_nTrianglesDrawn = 0;
                             m_polyTriangleArr = new Polygon[15];
                             addMouseListener(new MouseCatcher() );
            setVisible(true);
                         class MouseCatcher extends MouseAdapter
                             public void mousePressed(MouseEvent evt)
                  Point ptMouse = new Point();
                  ptMouse = evt.getPoint();
                if(m_nTrianglesDrawn < m_nTrianglesToDraw)
                                int npoints = 3;
                        m_polyTriangleArr[m_nTrianglesDrawn]
                      = new Polygon( ptMouse[].x, ptMouse[].y, npoints);
    }When i compile my code i get the following error message:
    Class Expected
    ')' expectedThe two error messages are refering to the section new Polygon(....)
    line. Please help

    Cannot find symbol constructor Polygon(int, int, int)
    Can some one tell me where this needs to go and what i should generally
    look like pleaseI don't think it is a good idea to try and add the constructor that the compiler
    can't find. Instead you should use the constructor that already exists
    in the Polygon class: ie the one that looks like Polygon(int[], int[], int).
    But this requires you to pass two int arrays and not two ints as you
    are doing at the moment. As you have seen, evt.getPoint() only supplies
    you with a single pair of ints: the x- and y-coordinates of where the mouse
    button was pressed.
    And this is the root of the problem. To draw a triangle you need three
    points. From these three points you can build up two arrays: one containing
    the x-coordinates and one containing the y-coordinates. It is these two
    arrays that will be used as the first two arguments to the Polygon constructor.
    So your task is to figure out how you can respond to mouse presses
    correctly, and only try and add a new triangle when you have all three of its
    vertices.
    [Edit] This assumes that you expect the user to specify all three vertices of the
    triangle. If this isn't the case, say what you do expect.

  • Problem with constructors and using public classes

    Hi, I'm totally new to Java and I'm having a lot of problems with my program :(
    I have to create constructor which creates bool's array of adequate size to create a sieve of Eratosthenes (for 2 ->n).
    Then it has to create public method boolean prime(m) which returs true if the given number is prime and false if it's not prime.
    And then I have to create class with main function which chooses from the given arguments the maximum and creates for it the sieve
    (using the class which was created before) and returns if the arguments are prime or not.
    This is what I've written but of course it's messy and it doesn't work. Can anyone help with that?
    //part with a constructor
    public class ESieve {
      ESieve(int n) {
    boolean[] isPrime = new boolean[n+1];
    for (int i=2; i<=n; i++)
    isPrime=true;
    for(int i=2;i*i<n;i++){
    if(isPrime[i]){
    for(int j=i;i*j<=n;j++){
    isPrime[i*j]=false;}}}
    public static boolean Prime(int m)
    for(int i=0; i<=m; i++)
    if (isPrime[i]<2) return false;
    try
    m=Integer.parseInt(args[i]);
    catch (NumberFormatException ex)
    System.out.println(args[i] + " is not an integer");
    continue;
    if (isPrime[i]=true)
    System.out.println (isPrime[i] + " is prime");
    else
    System.out.println (isPrime[i] + " is not prime");
    //main
    public class ESieveTest{
    public static void main (String args[])
    public static int max(int[] args) {
    int maximum = args[0];
    for (int i=1; i<args.length; i++) {
    if (args[i] > maximum) {
    maximum = args[i];
    return maximum;
    new ESieve(maximum);
    for(int i=0; i<args.length; i++)
    Prime(i);}

    I've made changes and now my code looks like this:
    public class ESieve {
      ESieve(int n) {
       sieve(n);
    public static boolean sieve(int n)
         boolean[] s = new boolean[n+1];
         for (int i=2; i<=n; i++)
    s=true;
    for(int i=2;i*i<n;i++){
    if(s[i]){
    for(int j=i;i*j<=n;j++){
    s[i*j]=false;}}}
    return s[n];}
    public static boolean prime(int m)
    if (m<2) return false;
    boolean x = sieve(m);
    if (x=true)
    System.out.println (m + " is prime");
    else
    System.out.println (m + " is not prime");
    return x;}
    //main
    public class ESieveTest{
    public static int max(int[] args) {
    int maximum = args[0];
    for (int i=1; i<args.length; i++) {
    if (args[i] > maximum) {
    maximum = args[i];
    return maximum;
    public static void main (String[] args)
    int n; int i, j;
    for(i=0;i<=args.length;i++)
    n=Integer.parseInt(args[i]);
    int maximum=max(args[]);
    ESieve S = new ESieve(maximum);
    for(i=0; i<args.length; i++)
    S.prime(i);}
    It shows an error for main:
    {quote} ESieveTest.java:21: '.class' expected
    int maximum=max(args[]); {quote}
    Any suggestions how to fix it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • Problem in database fields creation using default class of B1DE Wizard

    Hi Experts
    In an AddOn I am creating database fields in default class "Project_DB'. It does not give any message weather it creates fields or not. My code for database creation is given below
    Namespace FormARE
        Public Class FormARE_Db
            Inherits B1Db
            Public Sub New()
                MyBase.New
                B1Connections.theAppl.StatusBar.SetText("Please wait. AddOn is updating database", BoMessageTime.bmt_Long, BoStatusBarMessageType.smt_None)
                Columns = New B1DbColumn() {New B1DbColumn("OCRD", "BondNo", "Bond No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OCRD", "BFrDate", "Bond From Date", BoFieldTypes.db_Date, BoFldSubTypes.st_None, 10, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OCRD", "BTDate", "Bond To Date", BoFieldTypes.db_Date, BoFldSubTypes.st_None, 10, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cntner_no", "Container No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cntnr_Seal", "Container Seal No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cust_Seal", "Custom Seal No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "ctryOrgn", "Country of Origin", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1)}
                GC.Collect()
                B1Connections.theAppl.StatusBar.SetText("Successfully updated database", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
            End Sub
        End Class
    End Namespace
    It does not give first message. and second message come properly and immediately when I start the AddOn. I checked it makes all fields accuratly. But when I open the related form it gives error message "Data Source not found". I checked fields name are same as used in form and database .What can the reason? Should I use a simple function for creation of database fields which will run when a button is pressed? Is it fine to using default class for database fields creation?
    Thanks
    Best Regards
    Jitender

    I solved the problem.
    Procedure I followed :
    UNINSTALL ORACLE WRAEHOUSE BUILDER SOFTAWARE.
    'GLOBAL_NAMES = FALSE' in init.ora file.
    RESTARTED MY MACHINE.
    INSTALL THE ORACLE WRAEHOUSE BUILDER SOFTAWARE.

  • Problem Using Custom Classes in UCCX8.5.1 SU3

    Dear All,
    My team is facing problem in using Java custom classes for UCCX 8.5.1 SU3
    The problem is that we have created some conditional prompts for currency in different languages, our custom java class contains two mathods GetEnglishString(parameter set) and GetUrduString(parameter set). We are able to use/call both methods one by one and both at same time in CCX Editor and validate the script successfully but when we set the script as application it failed.
    We tried to use both methods one by one and found that script with GetEnglishString is working ok but when we place GetUrduString (alone as well) MIVR logs say that method is unknown altough CCX Editor does not give us any error. We triend to restard Administration and Engine Services several time but to no avail. If somebody know the reason and solution kindly share it ASAP.
    Regards
    Kashif Surhio

    Hi
    In that case I would double check you have uploaded the file, and restart the server completely. In testing we found that restarting the engine didn't always reload the classes.
    Aaron

  • I'm using firefox 4. It's making problem with Bangla font such as on facebook. It shows Bangla font in a very disordered way! what can i do?

    I'm using firefox 4. It's making problem with Bangla font such as on facebook. It shows Bangla font in a very disordered way! what can I do?

    While I was having the problem, I was already using Ovro and had the font "Siyam Rupali" selected. I changed the font to "SolaimanLipi" provided by Prothom Alo and my problems with Facebook, Gmail and Bangla blogs are gone now.

  • I'm using firefox 6.0.2 It's making problem with Bangla font ONLY on FACEBOOK others bangli website FORNT SIZE are OK. On the FACEBOOK it shows Bangla font in a very / Too small! I change font SIZE in firefox setting but i can't solve. Pls HELP me

    I'm using firefox 6.0.2 It's making problem with Bangla font ONLY on FACEBOOK others bangli website FORNT SIZE are OK. On the FACEBOOK it shows Bangla font in a very / Too small! I change font SIZE in firefox setting but i can't solve. Pls HELP me ..

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • After installing Snow Leopard problems with using any of my Helvetica fonts

    I've never really have a problem with any of apple's products until now.
    After installing Snow Leopard I've found problems with using any of my Helvetica fonts,
    which is a BIG problem if you work in DTP or print. You CAN'T remove the system version of Helvetica, and replace it with your own anymore.
    Also Flash CS4 seems to be a dead duck, as after about 5-6 seconds of loading the program it crashes with a "KERNPROTECTIONFAILURE".
    <title edited by host>

    Thanks Tom but the original post title was "Work in DTP, don't install snow leopard", but of course apple were unhappy with the title. I know the issue/problem has been discussed for months, the real problem is that it shouldn't be a problem which everyone has to find work arounds for.
    After 4 days of playing about, I've finally got flash CS4 working and Quarkxpress was also a big problem for a few months. Printer description (PPD) files which snow leopard doesn't like, but worked in tiger & leopard.....means I can't use my two A3 inkjets for proofing anymore.
    I'm just disappointed by snow leopard

  • CS6 problems with using Zapf Dingbats font

    The same font file works perfectly in QXpress (9.5.3) but not in Illustrator (16.0.0) and even less signs show in InDesign (8.0).
    I work in Mac OS 10.6.8.
    My old ITC Zapf Dingbats was a PS Type 1 font from the last century, version 001.001. (I have not used Dingbats in InDesign yet. I dug up QuarkXPress again today to check and all dingbats work fine there while) InDesign only displays half of them. Then I bought an OTF (Version 2.066;PS 005.000;hotconv 1.0.67;makeotf.lib2.5.33168) of this font today and installed it – with worse results: next to none display in ID.
    (I test with a font size of 18 pt.)
    I can reach all dingbats via the Glyphs command though, but that's not the idea, is it? They should be under the keys for quick access!
    Might have something to do with InDesign's font substitution settings but I don't know where to access them.
    (There was a similar question – https://forums.adobe.com/message/1280829#1280829 – but that was over six years ago. I hope there is a smarter solution by now…)
    Fred

    I never even knew there was a Dingbat fix, as I never had a problem with the font and Frame before.
    In Frame 8 all the characters disappeared. When I print to a pdf, I get an error message thusly:
    %%[ ProductName: Distiller ]%%
    %%[ Error: ZapfDingbats not found. Font cannot be embedded. ]%%
    %%[ Error: invalidfont; OffendingCommand: findfont ]%%
    Stack:
    /Font
    (ZapfDingbats)
    false
    /2
    0
    /F0
    false
    /ZapfDingbats
    I get no such error message with Frame 7.
    Now, I took my elderly Zapf Dingbats font and ran it through Fontographer--I didn't change a thing, I just generated a new Type 1 font. Frame 8 was happy with that one, but Frame 7 displayed some other font instead. I have no idea what the font is, it kinda looks like Arial.
    Scratching head...

  • How to use Underline feature in Font Class

    I am making an applet to test the Bold, Italic and Underline feature of any Font but there is no such Font Constant to Underline the Text. Can you help me to get Underlined Text through Font class or any such alternative to achieve my goal?
    Thanks.
    Arjun Thadani
    email: [email protected]

    A type of underline is the character '\u0332',
    Try for example.
    char[] chs = new char[]{(char)0x30,(char)0x0332,(char)0x41,(char)0x0332};
    str = new String(chs);

Maybe you are looking for