JButton rendered with HTML text takes longer to load

I have a JButton that displays text rendered in HTML.
ie. JButton but1 = new JButton("<html><STYLE=\"font-family: Dialog; font-size: 12pt\"><center>Current<br>Date</center></STYLE></html>");
The reason for the STYLE tag is so that the font matches the rest of the application (instead of defaulting to Times New Roman).
As a result of including the HTML tags, the dialog containing the panel with my buttons takes noticeably longer to load (especially when it's my login dialog).
Does anyone know why this takes longer to render or if there is some way around it?
Interesting to note: One unexpected outcome of using the HTML tags is that it sets all my buttons to the same width (they are in a BoxLayout.Y_AXIS layout), whereas before, they refused to have their size set at all and were all different.

Okay, well I worked out a way around my problem - don't use HTML.
The only reason I was using HTML was to allow me to have multi-line buttons. Using HTML also had the added problem of the text not showing the enabled-state of the button (ie. the text did not appear disabled) or the Mnemonic.
I have created a subclass of JButton that creates multiple lines using JPanels instead of HTML.

Similar Messages

  • Recently switched from powermac to mac pro5 2x2.66GHz 6 -core xeon   running FCP 7 on OS 10.6.8  exporting qt files and rendering project files now takes longer than my old machine   looking at activity mon and % of user is aroun 6 and % of idle around 42

    recently switched from powermac to mac pro5 2x2.66GHz 6 -core xeon   running FCP 7 on OS 10.6.8  exporting qt files and rendering project files now takes longer than my old machine   looking at activity mon and % of user is aroun 6 and % of idle around 42  are all the cores being used with FCP7?

    johnnyapplesod wrote:
    exporting qt files and rendering project files now takes longer than my old machine
    It's because the PowerMac G5 had HUGE bandwidth with a fat BUS on each processsor so they could run hard, hot and heavy.
    It's not so with the Intel processors which are multi-core and share a common bus thus bottleneck.
    The newer Intel processors can do more work on the CPU, but when it comes to in/out they are s-l-o-w.
    I've had a wickedly fast dual processor (not dual core) G5, RAID 0 pair of 10,000 RPM drives as boot and a fast video card, I could do a lot very very fast.
    You'll likely have to upgrade to Final Cut X to get more cores utilized, prepare to cry a little bit, Apple is working on the features they stripped out of it to make amends to pro users who complained loudly. (all over TV too)
    http://www.loopinsight.com/2011/09/20/apple-releases-major-update-to-final-cut-p ro-x-release-demo-version/

  • New version takes longer to load & nrowsing session times out very quickly

    I have recently installed the latest version of Firefox. I have enjoyed using it as a browser in the past. However, this latest version takes longer to load and my browsing sessions time out quicker. Do you have any fixes?

    I ran into similar issues with projects that run up to 14MB in size.  Allen Partridge produced a blog post "Nearly Instant Download & Playback of Captivate Files Online" (http://blogs.adobe.com/captivate/2010/06/nearly_instant_download_playba.html).  I followed Allen's instructions but still found that my projects still took too long to load from the LMS.  After an e-mail exchange with Allen, he suggested that I convert my slide audio's to object audio's.  Seems like slide audio when the course is published become a huge audio string and this string needs to load before the project is launched.   So I place a transparent text box on all my slides that had slide audio and attached the audio to the transparent text boxes.  My load times went from 30 to 90 sec's to 5-10 sec's.  Not sure if you have slide audio but if so try this to see if it helps.
    Good Luck

  • Some web pages take long to load

    I just recently got my mac and i like it better than my PC. There is only one problem I run into. I have noticed that some web pages take long to load and once they are loaded i try scrolling down or up and the web page lags big time. Also the grapics are not all that great. My PC runs the pages just fine. This is not a problem for all web pages but only a few. Mainly I see the problem on some myspace profiles. I was just wanted to see if anyone knows why I am having this problem.
    imac intel core duo   Mac OS X (10.4.6)  

    Welcome to the discussions!
    It is slower in a measureable sense, or just a "seat of the pants" feeling?
    Go to PC Pitstop and run their test. If you are getting the bandwidth that you are paying for, then it is an issue with your broswer.
    I do not like Safari. It is slower than Camino, especially in conjunction with CamiTools. Safari is a memory hog and grabs CPU cycles like nobody's business. I have never had any issues with either Camino or Firefox. Either are much better than Safari, IMO.
    If you miss the look of Safari, there are skins and even a great RSS reader that can be added to Firefox called Sage. It offers better RSS integration than Safari IMO.
    In my experience, Macs just render pages slower than PCs due to poor coding or IE specific coding that lazy web authors. Safari is one of the most standards compliant browsers out there, but if the pages are coded poorly or browser specific, then there is nothing that Safari can do about it.
    You can take a look at some settings, but let us know what speeds you are paying for from your ISP and compare those to the actual speeds. Then we can talk about possible solutions.

  • Gallery with HTML text under image

    I'm working on a gallery of images with thumbnails on the left and larger photos on the right. My problem is the larger photos on the right need some text under them. I've been adding the text to the photos in photoshop and doing this as a standard swap image/swap image restore. What I was wondering, is there a way to add this text as HTML. When I do the swap image I would need to swap out the HTML text also. I've done this as a layered div in the past, but it gets cumbersome when you have 30 thumbnails. Hopefully someone has a good solution for this. I'm thinking about giving up on Dreamweaver and doing this sort of thing in Flash.
    ----Here's the website I'm working on -- http://www.elyssabassdesigns.com/fashion_collection/fashion_cuffs.html

    There are literally hundreds of CSS, DHTML or jQuery solutions you could use.
    http://www.1stwebdesigner.com/resources/57-free-image-gallery-slideshow-and-lightbox-solut ions/
    http://www.dynamicdrive.com/dynamicindex14/index.html
    www.JAlbum.net
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Try to mix plain text with HTML text in mail forms

    Hi,
    I'm working with CRM 2005, and I want to build a mail form with Multi-Mime text type, but with a "html text" block and a "plain text" block in first page. I can do it but when I access to my mail form via PCUI a error occurs telling me that the mail form is defined improperly.
    Thanks a lot,
    Nuno Moreira

    Hi Nuno,
    if the mail is sent correctly and it is only a display problem in PC-UI I would suggest that you open a OSS message to ask SAP to solve this problem.
    Regards
    Gregor

  • Pages mail PDF now takes longer to load to send a PDF mail why

    HI can some one help me please since I have updated to OS X Yosemite in pages when I do my invoice and click on mail PDF it's takes ages to load when before it was in Instant if you no what I mean can some one help please
    Thank you

    This isn't likely to be anything to do with the size of the message.
    I'm guessing it's related to DNS. The server performs a reverse DNS lookup on your client IP when it connects. Until that lookup completes it won't process the message. If your DNS isn't setup properly then it can take up to 30 seconds for the DNS lookup to timeout before the mail server continues with the connection.
    You can get an idea if this is the case by watching the Mail Activity window as you try to send mail. A long 'opening connection' phase indicates that this is likely the problem. You can also check the mail logs or message headers which may indicate the same thing (e.g. the headers won't show the reverse lookup of the client's address).
    As for how to fix it - that's up to your DNS server configuration, so check with whoever manages that.

  • Garageband takes longer to load after the 5.2 update

    I've found that Garageband '08 does not load correctly with the 5.2 update. Apparently, Garageband takes up to a minute or longer to load During this time, the initialization window is active, the Finder acts somewhat slower, and Garageband is listed as unresponsive in the Dock. Usually, it loads after a long period of time, and works, but once I quit GB, it has to load up for a long time again. I've seen in other threads that external iSight cameras and other audio-related peripherals can by the cause of this, but I do not use my FireWire iSight camera with my MBP, nor do I have any external speakers and whatnot. Right now, I just have Office 2008 installed alongside the other applications.
    My question is what files, if any are conflicting with GB, should I look for? Or what would fix the problem as a whole? I understand that there were some other topics about this issue, but I don't think anyone has mentioned any tips in the past few days. I use GB a lot, so I could use some assistance. Any help would be appreciated.
    -MacUser

    Since I end up waiting at least 30 seconds to 2 minutes or so for GB to open, I need to figure out if I should just reinstall OS X with the restore disks and leave it at that until a fix arrives... I'd rather not though. Apple, come on, release a patch or some sort of fix for it!
    I did try to recreate the problem by using a FireWire iSight but even after doing that and fixing it, nothing changed. I saw in one thread that some people have GB working correctly for them while others do not, so surely there is something somewhere wreaking havoc with GB. This is really odd.
    -MacUser

  • Ever since i updated my phone to iOS.6 I have troubles connecting to the internet and the app store and iTunes app take longer to load

    It keeps saying 'Unable to join' with my home internet and my work internet, i have forgotten both networks several times, but with my home one it keeps disconnecting with my work internet connection it connects but sometimes asks me to join then comes up ' Unable to join '
    The App Store and iTunes takes ages to load, sometimes it is quicker without internet!!
    I could get onto both of those apps quickly with the previous download, i current have iOS. 6
    PLEASE HELP!!!!!!!

    I have no more tricks up my sleeve other than maybe it is a firewall issue with your router.
    You can tap or click on the heading below and read Apple's take on the issue. I really don't hold out much hope though that his kb article has any more to offer to you, but I am out of ideas now.
    Can't connect to the iTunes Store
    support.apple.com/kb/TS1368
    Sep 21, 2012 – You may be completely unable to access the iTunes Store on your computer or iOS device. You might also see an alert message similar to one ...

  • QuickTime takes longer to load files.

    I Have noticed that for a while now, since the last update, QuickTime seems to take FAR Longer to load an average 700Mb movie file than it used to before this last update. Can't recall the date for the update but I wondered if therewere any of you people out there experiencing the same trouble.
    I tried restoring permissions and even fixing possible problems.... not to avail.
    Suggestions?
    Thank you,
    Will.

    I recently added Quicktime Pro to my VISTA machine and noticed how slow files load, too. I would also be interested in an improvement.
    Message was edited by: Bifurcated

  • HTML text no longer displays in text editor

    Aloha folks -
    We've been using iweb for years now and have used Dreamweaver to edit the html files with no problems. However, it seems like anything we do now no longer opens completely.
    Example: Lots of text here. This is shown by viewing source in Safari.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="Generator" content="iWeb 2.0.4" />
    <meta name="iWeb-Build" content="local-build-20081119" />
    <meta name="viewport" content="width=800" />
    <title>PencilBot</title>
    <link rel="stylesheet" type="text/css" media="screen,print" href="PencilBot_files/PencilBot.css" />
    <!--[if IE]><link rel='stylesheet' type='text/css' media='screen,print' href='PencilBot_files/PencilBotIE.css'/><![endif]-->
    <script type="text/javascript" src="Scripts/iWebSite.js"></script>
    <script type="text/javascript" src="Scripts/iWebImage.js"></script>
    <script type="text/javascript" src="PencilBot_files/PencilBot.js"></script>
    </head>
    <body style="background: #ffffff; margin: 0pt; " onload="onPageLoad();">
    </body>
    </html>
    Same index.html file opened in Dreamweaver:
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= PencilBot/PencilBot.html" /></head><body></body></html>
    That's all I get. Same in Text Wrangler. Text Edit doesn't show ANYTHING.
    Seems to be like this for all our iweb sites. All that used to open perfectly fine in Dreamweaver.
    And all our Favicons no longer display.
    Running iweb 08 2.04.
    Any thoughts on this?
    Thanks,
    Denise

    That's all I get. Same in Text Wrangler. Text Edit doesn't show ANYTHING.
    You haven't understood what the index.html file created by iWeb does. It is very short and just redirects to the real page, in this case PencilBot.html. That's what you need to open. TextEdit is not showing anything is because you have it operating in Rich Text mode instead of the Plain Text mode required for html editing. Change the settings in TextEdit preferences to Plain Text and check the box for "ignore rich text commands in html files."

  • Need a Jbutton object with TWO text labels??

    Hi
    I have a major problem I need to create a JButton object that takes two string as argument
    MyButtonClass(String a, String b);
    I do not have a clue how to do this... the reason I need this is that I have ttf(true type font) file each character refers to an Icon....so the first string argument will be character that refers to appropriate icon and the second argument the label of the button...
    just as the JButton(String text, Icon icon) object...but I do not have a clue how to create an Icon of a character that refers to icon in the ttf file...(I do not think this is possible?)
    I hope some one can give me clue how to this.
    Thanks

    Hi there
    I don't know what you are trying to say maybe you can clarify so that I might be able to help you. As I understand it you have button that must take in to parameters when it is created. These parameters then will say which icon has to be set with font that has been selected.
    This may sound stupid but why don't you create an Icon in (Paint Shop Pro or someting similar) that contains the text with the Icon and then just read the jpg file in as you normally would. Thus just having the switch statement or if statement making the rules for when a specific Icon should be selected.
    I may be wrong but that is what I would do.

  • Rendering in fcp 7 takes long time

    When  I export to compressor, even after rendering, it will take about 13 or so hours to process a 150 min video. I'm running Lion on a MacBook Pro.  Any ideas how to shorten the time?
    Drew

    The tag line on your first post says you're working on an iMac. And the second post infers you're working with 1080i HDV footage. If both these assumptions are true, then you need to do a couple of things to keep your sanity.
    First, you need to convert all future projects to ProRes 422 as a first step. This will make things render and output faster. HDV imposes a serious "tax" on the processors during playback and (in my limited experience) takes about 5-7X as long to render and output. onverting on the front end is the only way that makes sense.
    Second, do not export using compressor unless the minor improvement in quality is worth the incredibly long export times. Just output the timeline using the current settings to get an "intermediate" clip (that is no longer HDV) that you can then send to Compressor to downconvert and transcode to MPEG-2 for your DVD.
    Even the above procedure will be painfully slow for this project unless you have a really hopped-up iMac...  but when you get to using ProRes it'll be better.
    Good luck!

  • Image not displaying with HTML text field

    I am trying to display am image within
    flash using CS3.
    I have a text field with the following code.
    feedback.htmlText = "<img src='Logo_small.png'</img>"
    nothing displays. The image and flash document are at the same level, so that is why I am using a relative link. Do I need to use a full (absolute) link to the image?

    That's not properly coded html...
    feedback.htmlText = "<img src='Logo_small.png' />";
    image tags do not have a closing tag and you didn't close the opening tag if they did, so it would still fail.

  • Difficulties with HTML text display

    Hi all,
    hope I'm in the right forum. I'm trying to create a form that
    has checkboxes on
    a Nokia 6680 device.The form is written in HTML format and is
    supposed to be scrollable so I have enabled the
    scrollable feature of my text area(which has "story" as
    instance name) and chosen the "Render as HTML" option in the
    properties section.Here's the code I placed in the
    actionscript:
    function continuousScrollUp2() {
    this.onEnterFrame = function() {
    if (story.scroll > 0) {
    story.scroll--;
    // Scroll continuously down at frame rate of movie
    function continuousScrollDown2() {
    this.onEnterFrame = function() {
    if (story.scroll < story.maxscroll) {
    story.scroll++;
    story.htmlText ="<font color=\"#0000FF\"><b>The
    privacy policy of the different websites</b><br
    /><b>you may be visiting will vary
    concerning</b><br /><b>the use of your personal
    information.</b><br /><br /><b>Select
    preferred level of privacy</b><br
    /><form><input type=\"checkbox\"
    value=\"Low\"/>Low<br /><input type=\"checkbox\"
    value=\"Medium\"/>Medium<br /><input type=\"checkbox\"
    name=\"Level\" value=\"High\" />High</form><br />
    <br /><b>Would you like pShopper to ask for
    your</b><br /><b>permission before receiving
    promotional</b><br /><b>adverts from
    websites?</b><br /><form><input
    type=\"checkbox\" name=\"permission\" value=\"Yes\" />Yes<br
    /><input type=\"checkbox\" name=\"permission\" value=\"No\"
    >No<br /><input type=\"checkbox\" name=\"permission\"
    value=\"Maybe\" >Maybe</form><br /> <br
    /><b>Specify preferred time of the day to receive
    adverts</b><br /><form><input
    type=\"checkbox\" name=\"time\" value=\"Morning\" >Morning<br
    /><input type=\"checkbox\" name=\"time\" value=\"Afternoon\"
    >Afternoon<br /><input type=\"checkbox\" name=\"time\"
    value=\"Evening\" >Evening<br /><input
    type=\"checkbox\" name=\"time\" value=\"Anytime\"
    >Anytime</form><br /><br
    /><frame><b><i>PERSONAL
    INFORMATION(name,address,etc)</i></b><br
    /><p>Reject promotional adverts from websites
    that:</p><br /><form><input type=\"checkbox\"
    name=\"reject1\" value=\"Share my personal information with other
    websites without my full knowledge and consent\" >Share my
    personal information with other websites<br /> without my
    full knowledge and consent<br /><br /><input
    type=\"checkbox\" name=\"reject1\" value=\"Do not allow me to
    unsubscribe from their mailing list\" >Do not allow me to
    unsubscribe from their mailing list<br /><br
    /><input type=\"checkbox\" name=\"reject1\" value=\"Do not
    explicitly highlight their data-sharing practices\" >Do not
    explicitly highlight their data-sharing practices<br /><br
    /><input type=\"checkbox\" name=\"reject1\"value=\"Do not
    allow me to find out what data they have about me\">Do not allow
    me to find out what data they have about me</form><br
    /><br /><b><i>ENVIRONMENTAL
    INFORMATION</i></b><br /><p>Reject
    promotional adverts from websites that:</p><br
    /><form><input type=\"checkbox\" name=\"reject2\"
    value=\"Do not explicitly highlight their environmental/carbon
    practices\" >Do not explicitly highlight their
    environmental/carbon practices<br /><br /><input
    type=\"checkbox\" name=\"reject2\" value=\"Do not market 'green'
    products\" >Do not market 'green' products<br /><br
    /><input type=\"checkbox\" name=\"reject2\" value=\"Do not
    practice Fair Trade\" >Do not practice Fair Trade<br
    /></form><br /><br
    /><b><i>LOCATION/GPS
    INFORMATION</i></b><br /><p>Reject
    promotional adverts from websites that track<br />my location
    and then use my GPS data:</p><br
    /><form><input type=\"checkbox\" name=\"reject3\"
    value=\"For illegitimate disclosure to individuals<br />and
    other companies/third parties\" >For illegitimate disclosure to
    individuals<br />and other companies/third parties<br
    /><br /><input type=\"checkbox\" name=\"reject3\"
    value=\"To obtain other information from my personal device\"
    >To obtain other information from my personal device<br
    /><br /><input type=\"checkbox\" name=\"reject3\"
    value=\"To analyze my pattern of movement\" >To analyze my
    pattern of movement<br /><br /><input
    type=\"checkbox\" name=\"reject3\" value=\"Without allowing me to
    opt-out\" >Without allowing me to opt-out<br /><br
    /><input type=\"checkbox\" name=\"reject3\" value=\"Without
    prior consent from me\" >Without prior consent from
    me</form><br /><br /><b><i>PURCHASE
    INFORMATION</i></b><br /><p>Reject
    promotional adverts from websites that use information<br
    />about my purchases:</p><br /><form><input
    type=\"checkbox\" name=\"reject4\" value=\"To share with
    individuals<br />and other companies/third parties\" >To
    share with individuals<br />and other companies/third
    parties<br /><br /> <input type=\"checkbox\"
    name=\"reject4\" value=\"To analyze my habits and determine what
    adverts I see\" >To analyze my habits and determine what adverts
    I see</form></frame><br /><br
    /><button> SUBMIT </button></font>";
    However,during runtime,only the first part is displayed and
    I don't see any checkboxes. Can it be that the device memory
    is exhausted? Thanks for your time.
    PJ

    hi,
    Flash text box does not support <input> htmnl tags, and
    FL too.
    FL textfield supports b, br, i, b, font & p tags but with
    specific attributes only. check the docs for more.
    // chall3ng3r //

Maybe you are looking for

  • Problem in running a jar on the web

    Hi ppl, I have a jar file which has an applet code...i created a .html file and tested it on my system... it worked fine.... Now i want to test it on the net. If i upload the jar file and the html file on to some free web space(like tripod.com) and r

  • Adobe Reader has stopped working on closing Version XI (11.0.2.0)

    Everytime I use Adobe Reader, after closing a pdf, I get the error "Adobe Reader has stopped working" I have tried uninstalling and reinstalling. I have tried turning off enhanced security. I have tried going to the eula.exe and accepting. None of th

  • How to run windows dll files and driver loaded in remote system?

    Dear Friends, I need some valuable info regd how to run a remote windows dll files and the drivers of the system using java reply regd thanking you

  • Labview 2009 I/O assistant issue

    Hi, I'm using labview 2009, and I can't get the I/O assistant to work-everytime I try to run it, it gives me the error message "Measurement & Automation Explorer or the Instrument I/O Assistant is not installed correctly. Please install these from La

  • Problem with LR_tokens in LrExportSession in 2.7

    Hi, I'm having trouble getting the rename-on-export feature working on LR2.7, Windows x64 . Not tried on any other configurations except LR3.2, where it works fine. I'm manually creating an LrExportSession from a menu, and passing the following items