Chinese fonts in html not showing up properly sometimes

I have the following lines in my program :
JLabel A_Label=new JLabel("<Html><Font Size=3>\u8F93\u5165</Font></Html>");
JPanel A_Panel=new Jpanel();
A_Panel.add(A_Label);
Sometimes the Chinese shows up correctly, but sometimes it shows up as blank rectangles, if I change the font size to 5, it will always show up, why ? How can I make it always show up in size 3 font ?
Frank

Hi, thanks for replying.
I know it works for JLabel without html, but I need to display a lot of information in the label, there are formatted tables, different size fonts, html input fields, etc. , so my only choice is to use html to format them.
I found it has something to do with the power of the PC running it, isn't it strange ? When the program starts, it needs to initialize, takes a while, from a few seconds to half a minute, sometimes if it didn't have a lot of data to load, the fonts shows up correctly, other times when it takes a while to load a lot of data before it displays the html formatted JLabel, the fonts may not all show up correctly. Size 5 always shows up correctly, the size 3 & 4 font sometimes could show up as blank rectangles.
I wonder if there is anything I can do in my program to stabilize this when I use html in JLabel ?
Frank

Similar Messages

  • Chinese fonts not showing up properly sometimes

    I have the following lines in my program :
    JLabel A_Label=new JLabel("<Html><Font Size=3>\u8F93\u5165</Font></Html>");
    JPanel A_Panel=new Jpanel();
    A_Panel.add(A_Label);Sometimes the Chinese shows up correctly, but sometimes it shows up as blank rectangles, if I change the font size to 5, it will always show up, why ? How can I make it always show up in size 3 font ?
    Frank

    Hi, thanks for replying.
    I know it works for JLabel without html, but I need to display a lot of information in the label, there are formatted tables, different size fonts, html input fields, etc. , so my only choice is to use html to format them.
    I found it has something to do with the power of the PC running it, isn't it strange ? When the program starts, it needs to initialize, takes a while, from a few seconds to half a minute, sometimes if it didn't have a lot of data to load, the fonts shows up correctly, other times when it takes a while to load a lot of data before it displays the html formatted JLabel, the fonts may not all show up correctly. Size 5 always shows up correctly, the size 3 & 4 font sometimes could show up as blank rectangles.
    I wonder if there is anything I can do in my program to stabilize this when I use html in JLabel ?
    Frank

  • ScrollBars not showing up properly

    I am displaying a JTree in a JScrollPane with default settings ie. both horizontal and vertical scroll bars will show up when the contents can not fit in to the scroll pane.In this case when i expand the tree nodes the scroll bars are not showing up properly.It looks like the foreground is not painted properly.The background color is white here.We are using custom look and feel, not the standard one. Any idea why it is so?
    Thanx in advance
    Ashok

    This is the MetalTheme i am using.
    public class SSBCMetalTheme extends javax.swing.plaf.metal.MetalTheme
    //     private final ColorUIResource primary1 = new ColorUIResource(102,102,153);
         private final ColorUIResource primary1 = new ColorUIResource(0,0,0);
    //     private final ColorUIResource primary2 = new ColorUIResource(153,153,204);
         private final ColorUIResource primary2 = new ColorUIResource(153,153,153);
    //     private final ColorUIResource primary3 = new ColorUIResource(204,204,255);
         private final ColorUIResource primary3 = new ColorUIResource(204,204,204);
    private final ColorUIResource windowBackground = new ColorUIResource(Color.white);
    private final ColorUIResource textHighlight = new ColorUIResource(Color.blue);
         private final ColorUIResource secondary1 = new ColorUIResource(102,102,102);
         private final ColorUIResource secondary2 = new ColorUIResource(153,153,153);
         private final ColorUIResource secondary3 = new ColorUIResource(204,204,204);
    //     private FontUIResource controlFont = new FontUIResource("Dialog",Font.BOLD,12);
         private FontUIResource controlFont = new FontUIResource("Dialog",Font.BOLD,11);
    //     private FontUIResource systemFont = new FontUIResource("Dialog",Font.PLAIN,12);
         private FontUIResource systemFont = new FontUIResource("Dialog",Font.PLAIN,11);
    //     private FontUIResource userFont = new FontUIResource("Dialog",Font.PLAIN,12);
         private FontUIResource userFont = new FontUIResource("Dialog",Font.PLAIN,11);
         private FontUIResource smallFont = new FontUIResource("Dialog",Font.PLAIN,10);
         public String getName() { return "SSBC"; }
         protected ColorUIResource getPrimary1() { return primary1; }
         protected ColorUIResource getPrimary2() { return primary2; }
         protected ColorUIResource getPrimary3() { return primary3; }
         protected ColorUIResource getSecondary1() { return secondary1; }
         protected ColorUIResource getSecondary2() { return secondary2; }
         protected ColorUIResource getSecondary3() { return secondary3; }
         //public ColorUIResource getWindowBackground() { return (primary3); };
         public ColorUIResource getWindowBackground() { return windowBackground; };
         public ColorUIResource getDesktopColor() { return (primary3); };
         public ColorUIResource getTextHighlightColor(){ return primary3;}
    //public ColorUIResource getControlDisabled(){ return primary3;}
    //public ColorUIResource getControlHighlight(){ return windowBackground;}
         public FontUIResource getControlTextFont() { return controlFont;}
         public FontUIResource getSystemTextFont() { return systemFont;}
         public FontUIResource getUserTextFont() { return userFont;}
         public FontUIResource getMenuTextFont() { return controlFont;}
         public FontUIResource getWindowTitleFont() { return controlFont;}
         public FontUIResource getSubTextFont() { return smallFont;}
    I can't use windows look and feel as i am using the above look and feel.Any idea what is the problem?
    Thanx
    Ashok

  • When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the test and change the font, it does not change it properly?

    When I convert my pdf doc to word, the fonts go really weird and it also puts some text into boxes. when I try to select the text and change the font, it does not change it properly? This is making it impossible to amend.

    Hi Janedance1,
    If the PDF that you converted already has searchable text, please try disabling OCR as described in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel. (If the PDF was created from a scanned document and doesn't already have searchable text, disabling OCR isn't a great option, as the text won't be searchable/editable in the converted Word doc.)
    Please let us know how it goes.
    Best,
    Sara

  • My fonts that are installed in Font Book are not showing up in Microsoft Word. Can someone help me fix this problem?

    Hello!
    I am needing some help. I own a Mac Book Air with OS X 10.7.5. This computer belongs to the school district I teach for, so I do not have permission to do a huge wipe that would uninstall programs such as Word. When I first got my computer, I added all my fonts. I did this by putting them into a fonts folder. The fonts were not all showing up in Microsoft Word, so I was told to use Font Book. All of my fonts show up and are installed in Font Book; however, they do not show up in Word. I have restarted my computer. All the fonts are validated. I have tried almost everything I could think of after researching answers online. Another problem--my bullet points are messed up. When I click the bullet button, instead of an open circle it's an open rectangle. This doesn't concern me as much, but I thought it might help as a clue as to what is wrong. The fonts also do not show up in the Format > Font box.
    Also, I want to point out that my colleagues, using the exact same computer, network, etc, are able to download and use all the fonts. They have tried to fix mine, also.
    Any help is much appreciated! Maybe there is some way to wipe out my fonts and start clean?
    Thanks so much!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Pdf file in simply Chinese can not be displayed properly sometimes, how to solve it?

    pdf file in simply Chinese can not be displayed properly sometimes, how to solve it?

    Try a different pdf reader, like GoodReader.
    Try switching your OS to Chinese (or English, if it is already in Chinese).
    Verify that the pdf does display correctly on a full computer.

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • Why are my fonts and graphics not showing up on some computers?

    Help for a newbie?
    I just published my first website! It's pretty basic, but I
    learned a lot.... But some of the colors and fonts show up
    differently on different computers. Also, I created an image that
    had gray and white marbling and it showed up as just gray on the
    website.
    Can you tell me what I need to do to make my graphics show up
    properly?

    > Colours are subjective which is why there are "web safe"
    colours, these
    are
    > alleged to look the same on every PC
    Sorry, but that is NOT what web-safe colors refer to. In the
    old days many
    users had 8-bit graphics cards capable of displaying only 256
    colors.
    Web-safe colors were those included in the most common 256
    color palette.
    Today hardly anybody uses 8-bit graphics cards so designers
    are safe using
    full-color (24- or 32-bit) palettes. Your comment that colors
    are subjective
    is correct if you mean that colors will often display
    somewhat differently
    computer to computer. This is because of the wide variation
    of graphic
    cards, monitors, room lighting, etc. What looks like dark red
    on my screen
    might look brown on another. This is unavoidable.
    Walt
    "Ian" <[email protected]> wrote in message
    news:e4t54o$n2p$[email protected]..
    > Hi
    >
    > Colours are subjective which is why there are "web safe"
    colours, these
    are
    > alleged to look the same on every PC
    >
    > Fonts as has been said if you are using a non standard
    ie not installed by
    > both windows and apple then the viewer will not see
    them. In which case
    the
    > page will default to a basic font. which of course ruins
    your layout.
    >
    > Embed them as flash or graphics
    >
    > cheers
    >
    > Ian
    >
    >
    > "Haaga" <[email protected]> wrote in
    message
    > news:e4t3b1$ks6$[email protected]..
    > > Help for a newbie?
    > >
    > > I just published my first website! It's pretty
    basic, but I learned a
    > > lot....
    > > But some of the colors and fonts show up
    differently on different
    > > computers.
    > > Also, I created an image that had gray and white
    marbling and it showed
    up
    > > as
    > > just gray on the website.
    > >
    > > Can you tell me what I need to do to make my
    graphics show up properly?
    > >
    >
    >

  • How do I fix a problem with .eps files not showing up properly in icon view

    Actually my .eps files are not showing properly in any of the views but icon view is most important to me.  I am using OSX.8.5 on a mac mini and mac book air.  Almost all of my .eps files are conversions of .wmf files converted to .eps by WMF Converter software.  All of these files used to be on a PC running windows Vista using ST Thumbnails explorer to be able to view thumbnails.  For background info: I had to use a program to view the WMF files becasue hackers could put viruses into the thumbnail for WMF fies so instead of fixing the problem Microsoft disabled the thumbnail view for all WMF files. 
    A few of my .eps files are conversions of files created in CorelDraw 3x and converted to .eps in CorelDraw 3x.  Both types of .eps files misbehave the same.
    I downloaded one .eps file today from the internet to see if it would misbehave the same way (it does).
    Here is the problem: After a reboot when I first view a folder that contains .eps files in icon view I can see the file contents fine.  If I use the resize slider at the bottom of the window or resize the window itself then some or all of my .eps files revert to displaying the "generic icon" of a Loupe with a picture behind it.  If i can manage to put the resize slider to exactly where it was then my icons display the file contents as they did before I messed with the slider.  There seems to be no rhyme or reason as to when an icon will display as the file contents or when the generic icon comes up.  In some folders all the icons display correctly at the smallest icon size and in other folders the icons may display correctly or as only generic or a mix of generic and file contents.  Icons to files that came from the same source will not necessarily display the same way.  Icons to files that came from the same source and were converted by WMF Converter at the same minute do not necessarily display the same way.  If I display "info" for the files sometimes the previev pane of the info box will display the generic icon or sometimes it will show the file contents.  If I take an .eps icon that displays properly and drop it into a folder where all .eps icons are displayed as generic then that icon displays generic.  When I move that same icon out of that folder then it will display properly.  Icon view, list view, column view and cover flow view all display differently with no discernable pattern.  Sometimes I can see file contents in column view and not icon view.  Sometimes in cover flow and not in icon view.  It makes no difference if I have a handful of .eps files in a folder or hundereds of files in a folder.  After an undetermined amount of time the icons might display properly again or maybe not.
    What I have done so far:  exhaustive search of the internet did not find anyone else with the same issue.  I checked and fixed all disk permission errors that disk utilities would fix.  I know that icon view and quick look are two different things, but, I did however, download and install an eps quicklook plugin that did not seem to make a difference for my issue.  BTW Quick look sometimes works and sometimes not (no discernable pattern to this behavior either).  I tried the cnet download fix for quicklook just for grins.  It had me force QL to reload plugins and it's cache then I cleared out the QL configuration files.  This did not seem to make a difference in the behavior of icon view or Quicklook.  The only two things I have found to be consistant are 1)  The "open with preview" always works but I know this is different because this preview actually generates a pdf view of the file. 2) When the icon does display the file contents it always displays correctly.
    When you read this please be mindful of:  I am a Microsoft refugee not yet familiar with the Apple world so you may have to tell me how to do "simple" things.  I have no idea what is the difference between a "thumbnail" or a "preview" or the behind the scenes way that apple generates the icon appearance for the 4 different views. 
    Any assistance would be greatly appreciated.  I tried to insert a screen shot but got an error message when I did it.

    Was the error number really 0XE8....
    iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting

  • Inserted html not showing in Internet Explorer

    Inserted html code does not show in internet Explorer 8. Is OK with Firefox, Safari and Chrome. Site is munroestudios.com. Also made a a test page with just the html on munroestudios.com/test.html. This is a iframe code received from another company to link to another site.

    I'm not sure what they did but the company supplying the html code fixed something on their end. Works now.

  • Yosemite Mail not showing recipients properly

    Another problem has shown itself in Yosemite Mail - I just replied to an email that involved the reply going to a list of people.
    But in the compose window, I can see only the first recipient in the Cc: window, and the cut-off tops of a second line of recipients only. There is no way to scroll down, and no way of enlarging that Cc: window. I'm only seeing one recipient in the Cc:, but can see that there are others even though I can't see them.
    Anyone else seeing the same thing? I'm on an iMac, but the same thing happens on my MacBook Pro.
    And I STILL can't find a list of contacts and their email addresses that will allow me to multi-select (Cmd-click) and then pop them into one of the address windows, like the old Address Panel used to do. The Panel that is now missing. Clicking the blue plus sign at the far right does NOT let you multi-select.  It's one at a time - a real PITA.
    If this problem of not showing at least two lines of addresses properly in the address windows on a new email is not just me, then that's another issue that needs to be submitted to
    http://www.apple.com/feedback/macosx.html

    Thanks for the rapid response
    No extensions (I used to use Mail Tags, but it's long gone) - plain vanilla Mail.app
    The primary recipient (in the To: field) showed OK, but in the Cc: field, I could just see the first recipient, and then there was obviously a second line of addresses - I could see the cut-off tops only - and I couldn't see the usual "...and 3 more" thing - it would have been at the end of that second line that I couldn't see.
    Just to clarify - the problem does NOT seem to be when I initiate a new email. It was when I was replying to an email, and I clicked on "Reply All".
    Also, somewhat disconcertingly, while Mail will find my Exchange contacts when I initiate an email, I tried to add an extra recipient to my Reply All email - and it wouldn't find that address and wouldn't let me add it from the blue plus sign. I couldn't add it to the Cc: field - I couldn't see the end of that field as described above. So I tried to add it to the To: field. No go...!
    Something in the land of Yosemite Mail.app seems to be right royally screwed. Loads of problems by many people across this and several other forums. Amazing how it got through beta testing...!

  • ExtendScript ToolKit not showing syntax properly

    Hi all,
    My ExtendScript was not showing the Indesign Syntax, what will be the issue.
    In the dropdown list I have selected "Adobe Indesign CS4" and "main".
    Is there is any tool showing properly the syntax of Indesign scripting.
    I am using MAC.
    Thanks in advance.

    Hi Shaji,
    Please see the attachment and select the appropriate object model version in the corner of dropdown list. Then try.
    Reg
    Peru

  • Songs added to iTunes not showing up properly.

    I recently added an entire album to my itunes library, but they do not show up anywhere but in the Songs list.
    The artist does not display under Artist, nor under Recently Added Playlist either. Also, the album does not show up under Albums.
    When I sync the songs to my iPod, they do not even show up in my songs playlist. The only place the songs show up is in my Albums menu, not in Songs, Recently Added Playlist, or Artists.
    What the **** is going on here? I've deleted and re-added the files with no luck. All of the songs play back perfectly, they just don't show up where they're supposed to.

    In iTunes, select all the tracks for an album that you are having problems with on the iPod and make sure, when you do a Get Info, they are NOT checked as "Part of a Compilation" (even if it is a greatest hits album, it is still the same artist, right?).
    Next, select the first track, Get Info and check the two fields Artist and Album Artist. Hit next to go to the next one and the next. Are they all the same? Do some have Artist Album filled in buy not all of them?
    Patrick

  • Tool Selection Not Showing Up Properly????

    Hey Guys,
    i really need your advice. For some reason the tools in my photoshop are not showing up correctly on the cursor when they are selected. For example, normally when you click the brush tool, the cursor changes into a circle which shows you the size of your brush, but for some reason, all i am getting is a little " + "
    Have i changed a setting somewhere? Does anybody know how i can get the cursor to go back to the way it should be. I just want it to be a circle when the brush is selected so i can see the size of my brush.
    Your help will be very much appreciated.
    Andy MacDonald

    Thank you Dave, that sorted it.
    Just shows there really are simple explanations for things doesnt it. i cant beleive i didnt notice that. Thanks anyways mate, ive learnt something new today!!!
    Andy

  • "Making multicam sequence from 3 other sequences" not showing video properly

    Well, problem in a nutshell. I created a multicam sequence, using 3 other sequences. But somehow, it's not showing it 100% correctly. Like, the main window shows the video, like it should be, and the smaller windows, are just off sync for some reason (except the only sequence that doesn't have any empty caps on it). Any explanation & fix for this?
    Instant workaround that I just invented. I put some empty title on the empty caps, and now It shows it, like it should be in the smaller windows. But if anybody knows why it did it in the first place, would be clad to know.

    OK, maybe I should clarify...
    Only A2 is coming through, NOT A1 -- so that's inconsistent with what you're saying. I have not checked Audio Follows Video, because that's not the bahvior I want. I'd like to be able to choose from any of the video tracks. Is that not possible in Premiere Pro?
    Also, do you think it makes a difference that I'm 'multicam editing' from a regular sequence (with multicam enabled) as opposed to an actual multicam sequence?
    thanks for the help.

Maybe you are looking for

  • Backup Apple Mail

    Hello! Lately I have been going through quite some trouble while I was trying to set up rules for my 3 IMAP mail accounts in Mail.app. I'm still not sure everything works as it's supposed to, so I'd like to create a full backup of all my emails. Does

  • Customer master currency issue

    When I try load  customer master from LSMW program and I am getting the Currency "ITL" is expiring; from 06/30/2002, use currency "EUR". Could anyone help me out this problem.

  • Repeating a field in a query region

    I have a htmldb_item generated query region with an editable text field. In a after submit process, I want to take some action if the value of the text field has changed. The only way I could think of to determine if the field changed was to fetch it

  • Freehand crashes when printing

    I am running a site liscence of Freehand 10 on a variety of Macs from iBookG4's to Mac Minis, all running OS 10.4. On some computers I experience a problem printing Freehand documents. All coomputers are loaded with the same copy of Macromedia Suite

  • How to pass the return value?

    when i call another procedure in a different vi file(xxx.sql), how am i going to pass the return value that the end user key in? how to Promt the message and accept the value that keyed in? Please help... this is urgent! Thank you.