Problem with ToolTip Style

I am trying to set a general style for tooltips and if I try
and set the border style to solid (or anything besides none) the
tool tip will only display the text, the background is gone and
there is no border. Has anyone else run into this problem? I am
setting the style through the main style sheet.
ToolTip {
background-color:#da0303;
border-style:solid;
border-thickness:2;
border-color:#FFFFFF;
corner-radius:8;
}

Try this code
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class UnderlineInSwing extends JFrame {
public UnderlineInSwing() {
super("Underline In Swing");
setSize(400, 300);
getContentPane().setLayout(new FlowLayout());
JLabel lab = new JLabel();
          lab.setText("<html><u>Underlined text</u></html>");
getContentPane().add(lab);
WindowListener wndCloser = new WindowAdapter(){
public void windowClosing(WindowEvent e) {
System.exit(0);
addWindowListener(wndCloser);
setVisible(true);
public static void main(String args[]){
new UnderlineInSwing();
sunshine

Similar Messages

  • Having a problem with character styles in indesign

    I'm having another problem with my style sheets in indesign, I've now got an awful lot of styles in paragraph and character styles. I've created different styles for paragraph justified text and when I go to my style in paragraph styles to use tight text copy, character styles always overides it so it means I have to do  whole lot of extra formatting just to put it right. Does anyone have an idea how I can stop character styles overiding paragraph styles? Thanks very much.

    Perhaps your character styles apply more than you actually want? I.e., rather than just "+Italic" it also applies custom tracking. You should use character styles only to override the stuff you really want to change.
    You can check by calling up the definition for those character styles; the huge "Style Settings" text box lists all the attributes it changes.

  • Problem with tooltip

    Hi all,
    I have a problem with tooltip:
    1. In Explorer 7.0 when the text is too long, the tooltip is trancated.
    2. In Explorer 6.0 in the same case the tooltip is not trancated, but is flickering.
    How can I solve it?
    Any ideas?
    Thanks,
    Michael Beilin

    HI
      try to create a context and bind it to the tootip property and set the context values with the text you need
      and check whether it works .  
    Thanks

  • Problem with CSS styles and Previewing in Firefox

    Hello,
    I recently rebooted my Mac OS X system (leopard) and reinstalled Adobe CS3. Before this I had virtually no problems with Dreamweaver and everything was running smoothly. However, now whenever I preview my pages in Safari, the CSS code is completely mangled.
    Also, my site won't preview in Firefox unless I close any existing tabs and exit Firefox completely. I have no idea why these problems are occurring, but I have pasted the code below so any advice would be extemely helpful.
    ---------------------------------html----------------------------------------
    <!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>
    <meta http-equiv= "Content-Type" content="text/html; charset= UTF-8" />
    <title>armed and harmless</title>
    <link href="untitled.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
        <div id="nav">
        </div>
    </div>
    </body>
    </html>
    -----------------------------------css-----------------------------------
    @charset "UTF-8";
        background-color: #000000;
        background-image: url(images/header.jpg);
        background-repeat: no-repeat;
        margin: 0px;
    #wrapper {
        height: 800px;
        width: 1000px;
        margin-top: 0px;
        margin-right: auto;
        margin-left: auto;
        background-color: transparent;
        background-image: none;
    #wrapper #nav {
        background-color: transparent;
        background-image: none;
        height: 30px;
        width: 1000px;
        margin-top: 260px;
        clear: both;
        border-top-width: 1px;
        border-bottom-width: 1px;
        border-top-style: solid;
        border-bottom-style: solid;
        border-top-color: #FFFFFF;
        border-bottom-color: #FFFFFF;

    hey there,
    thanks so much for the insight on the firefox issue. hopefully they fix that soon.
    as for the css, i do have a screenshot of what's happening. the background image seems to repeat after the navigation bar instead of keeping the transparent background. it's extremely odd and i've never seen it before. it can be seen in the attached photo.
    thanks again for your help,
    -e

  • Strange problem with Zen Style 300

    I got a Zen Style 300 for my birthday and it is given me some problems. I tried looking at this forum and on google, but so far haven't found anything like it. What happens is that during the sync process, some folders on my portable harddisk (which is where the music is located) get renamed into names with strange symbols and become unreadable. The strange thing is that it doesn't happen with all files and just as strange is that it does happen with files not related to the sync that are located in a completely different folder. You can imagine I got quite scared the first time, afraid of having lost my music collection, but on restart everything was fine again. Until I plugged in the ZEN again that is.
    My second problem is probably related to it. Part of the files transfered to the player don't show up when I try to listen to them with the player. When I check they have been copied to the player correctly, yet somehow they don't show up.
    I have Windows XP and tried syncing with the standard Creative software, MediaMonkey and iTunes but they all face the same problem. Although with the second problem it might happen that files copied one way don't show up, while the same files transfered with a different program do. All 3 cause the problem with my harddisk. I tried formatting the player and updating it. So anyone has any idea what might cause this?

    I have a similar problem. It recognized and paired with a Sony Ericsson MW600 Hi-Fi Bluetooth Stereo Headset once. I lost connection, could no longer connect, and tried to re-pair it. Now it recognizes the the headset's name (MW600), but when you try to pair with it stays on a "Please wait..." message. It will stay that way forever until I press the back (left) arrow. Then the message says "Remote Device not responding" and pairing fails. This MW600 headset pairs with other devices (cell phone, PC) just fine, though, so it's not malfunctioning.
    I suspect this might be a Bluetooth version compatibility issue? I say that because when I connect to a Jawbone Era (pretty new device, probably latest Bluetooth spec), everything goes fine.
    Also, if I clear all devices, then try to pair to just the Sony Ericsson MW600, I can get the M300 in a state where it hangs and will not respond to anything. I then have to press the reset button using a paperclip to start over.

  • Problem with ZEN Style M300

    When I trying to found bluetooth audio devices with ZEN Style M300,? the player get to freeze after a little bit time that is searching devices, and so I have to push the reset button for using again the player. :mansurprised:Anyone have the same problem?

    I have a similar problem. It recognized and paired with a Sony Ericsson MW600 Hi-Fi Bluetooth Stereo Headset once. I lost connection, could no longer connect, and tried to re-pair it. Now it recognizes the the headset's name (MW600), but when you try to pair with it stays on a "Please wait..." message. It will stay that way forever until I press the back (left) arrow. Then the message says "Remote Device not responding" and pairing fails. This MW600 headset pairs with other devices (cell phone, PC) just fine, though, so it's not malfunctioning.
    I suspect this might be a Bluetooth version compatibility issue? I say that because when I connect to a Jawbone Era (pretty new device, probably latest Bluetooth spec), everything goes fine.
    Also, if I clear all devices, then try to pair to just the Sony Ericsson MW600, I can get the M300 in a state where it hangs and will not respond to anything. I then have to press the reset button using a paperclip to start over.

  • Problems with tooltips

    Here's the problem I am having: I would like to have a tooltip that dynamically changes based on what position it is currently hovering over on a custom control.
    After looking through the various tooltip methods, it would seem that the way to do this is using JComponent's String getToolTipText(MouseEvent e)The problem with this approach is that once the tooltip pops up, moving the mouse will continually call this method. What I would like is to dismiss the tooltip once the mouse moves and essentially reset the tooltip hover timer. Does anyone know of a way to do this?

    That's not quite what I am looking for, though thanks for trying. The problem with both of these situations (using contains(int, int) and using getToolTipText(MouseEvent)) for updating the tooltip text is that they are both called too frequently for me to use them.
    I'll elaborate on my problem and maybe someone can see a solution. I am creating a custom text component that highlights specific areas of text and I want to provide a tooltip when the mouse hovers over those areas. If I override the contains method as in the SwingSet2 example, I will be constantly updating the tooltip text because it is called every time the mouse moves. If I override the getToolTipText(MouseEvent) method, once the tooltip pops up it will constantly query getToolTipText(MouseEvent) as the mouse moves until it moves off the screen.
    Determining what tooltip text to display (if any) in this particular application takes enough time that it really shouldn't be calculated each time the mouse is moved. I would like to only compute the tooltip text if the mouse hovers on a particular area. Unfortunately, there is no mouse hover event in swing like there is in SWT, so I seem to be out of luck. That is, unless someone else has come across this same problem and knows a way around it :).

  • Problem with Next Style in Paragraph Style

    The "Next Style" function is not working for me anymore! As an example, when  I make a subhead with a first paragraph specified as the Next Style, the specification for that paragraph does not take effect upon specifying the subhead in the previous paragraph. Anybody else having this problem, or am I just losing it, which is entirely possible! Thanks. DL

    Hi,
    Are you expecting it as some kind of dinamic tool?
    As far as I know it works in at least 2 situations.
    1. If you are typing text with paraStyle, defined with filled "Next Style" field, and you press "Enter" ==> next para will be formatted (during typing) with "Next Style".
    2. If your textFrame is set by ObjectStyle, and its textFrame.paragraphStyle property is choosen, and "next Style" checkbox is checked
         ==> you can build a logic chain of paraStyles which will be automatically applied to textFrame contents, when placed into.
    thanks

  • Problem with tooltips and spry data using startLoadInterval

    I am trying to use tooltips with a dynamic table using the spry data example at the bottom of the page:
    http://labs.adobe.com/technologies/spry/articles/tooltip_overview/index.html
    I have it working except that it appears to have a memory leak as firefox's memory usage continues to grow.
    I did notice there is a 'new' inside the onPostUpdate:function that is being called on every table update.
    So after looking at the tooltip code I modified the function to:
    <script type="text/javascript">
    var tt1;
    var observer = {onPostUpdate:function(){if(tt1 == null){tt1 = new Spry.Widget.Tooltip('tooltip','.trigger');}else{tt1.destroy(); tt1.destroy();if(tt1.checkDestroyed()) alert("destroyed");else alert("not destroyed");delete tt1; tt1 = new Spry.Widget.Tooltip('tooltip','.trigger');}}}
    Spry.Data.Region.addObserver('mainRegion', observer);
    </script>
    The tt1.checkDestroyed() always returns false and my memory usage continues to grow.
    Any help?

    Thanks for the reply.  I found a way to get it to work by changing my
    observer function to the following:
    else{tt1.destroy();
    tt1.init('.trigger', 'tooltip',
    {});tt1.attachBehaviors();Spry.Widget.Tooltip.loadQueue.push(tt1);}}
    Probably not very clean but it doesn’t grow memory and works correctly.
    I just put it back to the old way as in the example with a
    startLoadInterval(1500) :
    And I am over 500MB after ~ 30 minutes where as the top code above ran with
    a startLoadInterval(1500); overnight and is about ~120MB.
    I am using a double repeatchildren loop to build a table with tooltips for
    each cell which may affect it.
    Bottom line is I have a way to make it work so I am moving forward.  If you
    still want to see it I might be able to get it up on the internet and give
    you a link.
    Thanks,
    Greg Wirth

  • Problem with document style webservice

    Hi all,
    I have written a webservice with the style = document and the protocol = https. I am getting xml passed in correctly, but when I return xml from the webservice it has been encoded, i.e. "<" becomes "<". Additionally the xml header (<?xml versionn....)is not being returned.
    Any help would be most appreciated.
    Cheers
    Andy

    Hi Andy,
    Sounds like the XML is being converted into a string. Try the example
    using a org.w3c.dom.Element [1] or send the XML as an attachment [2].
    Regards,
    Bruce
    [1]
    http://webservice.bea.com/dom.zip
    [2]
    http://manojc.com/?sample5
    andy wrote:
    >
    Hi all,
    I have written a webservice with the style = document and the protocol = https. I am getting xml passed in correctly, but when I return xml from the webservice it has been encoded, i.e. "<" becomes "<". Additionally the xml header (<?xml versionn....)is not being returned.
    Any help would be most appreciated.
    Cheers
    Andy

  • Problems with a style sheet in InDesign CS3

    Hello everyone. I was wondering if anyone had any clue as to what the holy heck is happening to me.
    I am attempting to standardize our documents and use style sheets--hey, what a concept, right? So I'm going through a recently completed document and grabbing text and using that to create paragraph style sheets and character based style sheets.
    With one paragraph style sheet, the text is set to Janson Text Lt Stnd 55 Roman. However, when you apply the style sheet to a paragraph, the first word sets to a missing font. The rest of the paragraph is OK. It's only the first word. The paragraph style sheet does not have a "+" next to it. Highlighting the individual word and reapplying the paragraph style sheet does not change this.
    I went to the character style palette, thinking that there was an override. Nope, the character style was set to "None." I clicked on "Override" to apply the paragraph style, and again, the first word is stubbornly refusing to change.
    What gives? I am stumped!
    Best,
    Chryss

    Styles based on Basic paragraph are a nightmare because every document starts with a basic paragraph style, and there's no guarantee that it will be the same from document to document. When you import styles based on Basic Paragraph from some other document, different attributes will be overridden depending on what is the same, and what is different.
    The best way to deal with this is to either import the basic paragraph stle along with everything else, or put all the docs in one book file and pick one to use as the master, then synchronize the styles.
    It sounds like your first word problem could be an applied character style, though, or less likely, a nested style.
    Peter

  • Problem with Css styles not showing in live view or when i browse

    I am using Mac osx 10.6 and building website with Dreamweaver CS5.  Sometimes div tags i create not showing styles or rendering in live view or when I browse but  showing in design view. I looked in dreamwever faq and they talk about not showing in design view to toggle the display styles. That is not the problem becuase it is check marked and I tried turning off and turning on and made no difference.I am using firefox browser.
    It happened before the other day too. But all of my other pages in this site that i have created the same way building with div tags and css styles. So not sure what the problem is. Maybe someone has a suggestion here.
    Johanna

    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Portfolio</title>
    <style type="text/css"></style>
    <link href="css/jbstyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
    </head>
    <body>
    <div id="wrapper">
      <div id="mainnav">
        <div id="navbar">
          <ul>
            <li><a href="index.html"><br />
            </a></li>
    <li>
              <ul>
                <li><a href="index.html">          Home</a><a href="about.html">About</a></li>
                <li><a href="portfolio.html">Portfolio</a><a href="contact.html">Contact</a></li>
              </ul>
            </li>
          </ul>
      </div>
        <div id="contentinside">
          <div id="navbar2">
            <ul>
              <li><a href="design.html">Design</a></li>
              <li><a href="multimedia.html">Multimedia</a></li>
              <li><a href="webdesign.html">Web Design</a></li>
            </ul>
          </div>
          <div id="mm1thumb">Content for  id "mm1thumb" Goes Here</div>
          <div id="mm2thumb">Content for  id "mm2thumb" Goes Here</div>
        </div>
        <img src="images/multimsidebar.gif" width="212" height="615" alt="mmsdbr" longdesc="http://multimsidebar" />
      <div id="footer">
        <p> </p>
        <p>Johanna Bresnahan</p>
        <p>Web &amp; Graphic Design - http://www.johannabresnahan.com</p>
        <p> email: [email protected] ....phone....857•991•5717<br />
      </p>
    </div>
    </div>
    <!--end wrapper--></div>
    </body>
    </html> 
    Here is the html code above. not sure how to attach my file so get a visual. This is the first time I have used this forum.
    Johanna

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
    I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
    Sometimes when I place the text, the formatting reverts to whatever it was in Word.  To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that.  I figured this would clear a lot of the problems I've had with fiddly formatting issues.
    I was mistaken. 
    Here is what happens:
    When I place the document it comes up in the original Courier New font, with italics and other formatting intact.  If I click "article style" which is the main article paragraph  style format, normally it changes.  but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
    But when it gets to endnotes, I'm sort of screwed.
    My endnotes style is a bulletted style, so that I can have the endnote numbers consistent.  but this seems to screw all the style formatting.
    Here is what I do:
    With the cursor in endnote text, I click "bulleted endnote style".  The character format remains the same, with a + beside the style. The endnote number format is different, however.  If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text.  This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
    I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
    Please help me figure out how to make these transitions more smoothly.  I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems. 
    Thanks
    Dan

    Sorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted.  Damn iphone. 
    I know why there are two numbers.  This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem.  Here is something interesting, though.  If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine.  Is it something to do with the character codes of those original note numbers? 
    Word drops in so many hidden codes that it screws everything up!

  • Problem with Smartform style

    Hi all,
    I created a smartform for barcode labels printing. The form has its own style and characters and paragraphs use a
    custom font (it's a Windows font I uploaded in the system).
    My smartform worked well, but when I newly tested it yesterday, only the barcode and a field were displayed.
    The only difference I noticed is the fact I deleted some custom fonts of mine and, after the deletion, I don't
    tested anymore the smartform until yesterday. In fact if i try to print the fields without any custom style, they
    are displayed in the preview.
    Thanks in advance,
      Francesco

    Problem solved (in a strange way): I had to modify my style by setting the black color for all the paragraphs and characters.
    Usually the color should be black by default, don't you think?
    I have to clarify that in my style there's a paragraph with the white color to give a light and shade effect: I don't know if this could be the cause of my problem.
    Edited by: Francesco Negri on Feb 10, 2011 10:05 AM

  • Framemaker 8 problem with paragraph styles

    Hi,
    I manage a documentation (one file) including paragraph styles organized like that :
    -- Chapter
         |--- Sub chapter
           |--- Sub Sub chapter
    My question is simple
    When a create a PDF file from my document, including bookmarks, I'm encountering the following problem :
    The "chapter 4", "sub chapter 4" and "sub sub chapter 4" paragraphs are created correctly. The bookmarks are created with the correct place.
    Like that :
    |---- chapter 4
      |---- sub chapter 4
       |----- sub sub chapter 4
    BUT
    The "sub sub chapter "5 paragraph styles are created into the "Chapter 4" structure, added with the "sub sub chapter" of Chapter 4. And the Chapter 5 just contains the "chapter 5" and "sub chapter 5" bookmarks.
    Like that :
    Chapter 4
        |---- sub chapter 4
           |---- sub sub chapter 4
           |---- sub sub chapter 5
    Chapter 5
       |--- sub chapter 5
    After checking the structure of my document, I do not find any thing which could create this problem.
    The paragraph styles seems to be correct.
    Thank you so so much to help me because I don't know how to replace the "sub sub chapter 5" below the" sub chapter 5".
    Phil ;o)

    There are a few ways to go with this. One is to put all the files in a Book,
    temporarily, and set the one with the correct style definition as the
    source, then synchronize the paragraph styles. This will change ALL styles
    with the same names throughout all the documents, and add any styles that
    are present in the source, but not in one of the other files, so it is a bit
    risky, especially if any styles are based on or [Basic
    Paragraph] itself is used in one of the files and it isn't already defined
    exactly the same in all files.
    You can also open any file and go to the Paragraph Styles panel menu and
    choose Load Styles, then select the style you want to load, and how to
    handle a conflict (Use Incoming), which will give you more control over what
    happens.
    Or each time you open a file and get the missing font warning you can go to
    Find Font and select the missing font, then pcik your substitute, check the
    redefine styles box, and click Change All. This would probably be the best
    choice since it doesn't depend on style names to make the correct changes.

Maybe you are looking for

  • My pix are not showing up!

    i made some links as gifs, but they were done in fireworks and i put each one into it's own layer in DW and nothing is showing up in my preview. my flash component did show up for awhile but it is gone now too- maybe something to do with the script t

  • How can I copy iCloud calendar and contact back to Outlook personal folder?

    After I install iCloud control panel for Windows 7 and turn on, it copied everything calendar and contact into iCloud and delete everything from Outlook Personal Folder.   I DONT WANT THIS!!!     How can I copy iCloud calendar and contact back to Out

  • DMS server sizing calculation

    HI Gurus, My client has given that Finance department is generating documents around 20 GB  per month (includes all types of format) now i have to create the Server sizing for this 20 GB kindly help on how to proceed. Is there is any standard calcula

  • IE 11 with CRM 2011 Lead phone numbers no longer format

    We are experiencing some form issues after we moved to IE11. The lead phone numbers no longer format properly and the Opportunity Estimated Revenue no longer calculates. Has anyone else had any issues with IE11 and some javascript not working correct

  • Can't use iMac running OS 9.0.4 for the internet

    Hi! I appreciate any help you can give me. I've got an older iMac that I just want to use to access the internet for my kids. Here is all the info from the machine I can think might be useful: Mac OS: 9.0.4, Mac OS ROM 5.5.1 Processor: PowerPC G3 Spe