JToolTip with html text
I am trying to set ToolTip on my JPanel and the text is HTML format. One of the reasons I am using html format because it needs to be multiline and also localizable and it is easy to set fonts in html.
But the problem is I am getting a inconsistent tooltip with raw html data sometimes and ok rest of the times. Following is the html string I am setting as tooltip text.
String html = "<HTML><BODY STYLE=\"" +
"margin-left:3px; margin-right:3px; margin-bottom:3px;" +
"font-family : " + font.getFamily() + ";" +
"font-size : " + font.getSize2D() + "pt;" +
"font-weight : " + (font.isBold() ? "bold" : "normal") + ";" +
"font-style : " + (font.isItalic() ? "italic" : "normal") + "\">" +
"<b>File Name: </b> + fileName1 +
"<br>
"<b>File Name: </b> + fileName2 +
"</BODY></HTML>";
"font" is my locale based font.
Thanks
Amad
Well I have tried simple html as well but the same problem. I think JToolTip can display inline styles but my problem seems to be that when i have panels in panel and setting tooltip on parent that's when it gets wrong.
Amad
Similar Messages
-
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.htmlThere 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 MoreiraHi 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 -
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.
PJhi,
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 // -
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. -
Display issue with HTML formatted text in report builder
I am using the FCKeditor in my application to allow endusers
the ability to create formated text on reports. We curently are
experiencing 2 issues: 1. If you copy and paste from MS Word
2003/2007 it will not display the text correclty in the report; 2.
If you use the FCKeditor toolbar to insert bullets or a numeric
list it will not align the text correctly on the report. We are
using Coldfusion 8 with Hotfix 1 and Coldfusion Report Builder's
lastest build release.
Has one experiences this same issue with HTML fields not
printing correctly using the Report Builder? What other HTML
editors besides FCKeditor might we use?
Thanks,
Dan VanWierenCan you tell me how to use </td> for each values
Give me your example report - using before or after report
Thanks
MT
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by fdenis:
Hi Gavin,
If I understand well, your HTML tags are coded directly in your fields in the database, right? Because if it was not the case, you could have use a format trigger checking for which destination you're generating your report...
if UPPER(:DESFORMAT) = 'HTML' or
UPPER(:DESFORMAT) = 'HTMLCSS'
then
-- insert your HTML code in the value
-- of your field. something like...
newValue := '<B>' | | :YOUR_FIELD | | '</B>
srw.set_field_char( 0, newValue );
else
-- when generating to other format,
-- you'd have to add the formatting as
-- you want.
end if
return( true );
Of course, if it's not acceptable to remove the HTML tag from your database fields, you could develop a procedure that would translate your HTML tags to the good formatting (eurk... ;-)
Good luck... :-)
Frederic
<HR></BLOCKQUOTE>
null -
Tablespace usage report generated with html tags instead of text
Hi ,
We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
</head>
<body>
<p>
<table border='1' width='90%' align='center' summary='Script output'>
<tr>
<th scope="col">
TABLESPACE_NAME
</th>
<th scope="col">
CUR_USE_MB
</th>
<th scope="col">
CUR_SZ_MB
</th>
<th scope="col">
CUR_PRCT_FULL
</th>
<th scope="col">
FREE_SPACE_MB
</th>
<th scope="col">
MAX_SZ_MB
</th>
<th scope="col">
OVERALL_PRCT_FULL
</th>
</tr>
<tr>
<td>
SYSTEM
</td>
<td align="right">
268
</td>
<td align="right">
500
</td>
<td align="right">
54
</td>
Is this any settings issue or anything to be modified in the script.Could you please reply..
Regards,
Bharath.
Edited by: 870384 on Jul 6, 2011 1:17 AMHi Sven W,
Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
SET ECHO OFF
SET PAGES 999
SET MARKUP HTML ON SPOOL ON
col tablespace_name format a15 trunc
col cur_use_mb for 999999999
col cur_sz_mb for 999999999
col free_space_mb for 999999999
col max_sz_mb for 999999999
compute sum of cur_use_mb on report
compute sum of cur_sz_mb on report
compute sum of free_space_mb on report
compute sum of max_sz_mb on report
break on report
spool tablespace.html
select tablespace_name,
round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
round(sum(total_mb),2) cur_sz_mb,
round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
round(sum(max_mb),2) max_sz_mb,
round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
select owner,segment_name,segment_type,bytes/(1024*1024) size_m
from dba_segments
where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
spool off;
SET MARKUP HTML OFF SPOOL OFF -
How can I use javascript in a Text Area with HTML editor??
My question is... how can I use javascript in Text Area with HTML editor??
I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
I need to limit number of characters in a text area with html editor and i can´t.
could anybody help me please?I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
<script language="JavaScript" type="text/javascript">
function showtext(){
var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
alert(editortext);
</script>
Hope this helps.
Matthew -
KNOWN ISSUE: HTML Messages with plain-text signatures
To get around the EAS security policy issue, I'm having non-sensitive emails from work forwarded to a GMail account from a redirect set up in our corporate OWA. The redirect seems to send the messages to GMail without any issues; formatting is 100% intact, and in the GMail web client as well as Thunderbird, Entourage, etc., HTML emails with plain-text signature attachments show the plain-text message inline with the rest of the formatted message. All of our internal mailing lists have these plain text attachments that say where the message was coming from (Message sent from [email protected] by listserv). These get affixed to every message, both plain text and HTML.
Here's my problem: The Pre's email client handles both plain text and HTML messages beautifully. But, when I receive a message from a mailing list with a plain text attachment, the HTML portion disappears, and all I see is the signature.
Is there any way to make the Pre show the HTML INSTEAD of the plain text? I can live without the sig, I know where the messages are coming from already. But if I can't read the message, it's useless. I've only begun researching this and so far Google hasn't been much help, nor has searching these or other forums. Any help would be appreciated.
Palm Pre P100EWW
Post relates to: Pre p100eww (Sprint)
Message Edited by HowellBP on 06-16-2009 04:13 PM1-51626418773
I just got off the phone with Palm Support. Apparently this is a bug in the mail application. It currently does not support parsing both HTML and plain text in the same message. It will read EITHER plain text OR HTML, but not both at the same time. This will be fixed in a future update. -
Isn't it possible to send Html Mail through navigateToUrl() with contentType "text/html" for Android ? please suggest any workaround
ThanksAHHHH
What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email. -
HTML tags displayed with the text in "Notification" area
We want to display an HTML formatted message in the "notification" area, but the HTML tags are being escaped and thus are displayed along with the text. We are using Application Express 2.2.1.00.04. The application has been handed off to us to support and we have no experience with APEX. So I hope I am explaining this correctly.
The process to display the message is as follows:
After submission, a page validation fires, which is of type "function returns boolean": "return some_function('P100_MESSAGE',2nd_arg);".
In "Error Message" is "&P100_MESSAGE."
The function returns true when the validation is successful. When validation fails, it returns false, setting 'P100_MESSAGE' to some error message - for example: "<li>Phone number is not numeric</li><li>Email address is not valid</li>".
Our template has this in the body definition:
#NOTIFICATION_MESSAGE##SUCCESS_MESSAGE##BOX_BODY#
As I understand it, #NOTIFICATION_MESSAGE# will be replaced with the value of 'P100_MESSAGE'.
I've displayed 'P100_MESSAGE' on my page to confirm its contents and it is rendered correctly with bullets. But the notification area does not show bullets. It displays the text and the HTML tags.
Is there anything obvious we can do to fix this problem? ThanksI 've changed P100_MESSAGE to text field, text field (disabled, saves state), text field (disabled, does not save state), and textarea, display as text, etc. It is originally set to Hidden type (because it is only to be displayed in the notification area). But changing it to various types makes no difference as to how it is displayed in the notification area. Of course, when it's not hidden, then it's also displayed on the page, among to other page elements,which is not acceptable.
Thanks-
-j -
Dynamic text box, HTML Text with Image
Hello Everyone,
I am using Flash version 8. I have used the text tool and
created a dynamic text box and have attached the UIScrollBar
component to it. This text box is configured to allow the use of
html text to be inputted to it. I have code that reads a file which
contains a list of text files that I then read and place them into
the text box. The user can use the scroll bar to scroll through all
the text.
I have created an image that is a picture of the tab portion
of a file folder. On the tab I have place some text. This was all
done in Photoshop. This tab image is used to separate the different
stories in the text box. The image is save as a jpeg file
Everything you have just read works with out any problems.
Now for the problem!
This image is only 20 pixels tall and the text is not very
readable. As we all know the HTML tags are very limited in Flash 8.
Ideally I would like to put the text and image in to the text
box as I would normally do. Then place text on top of the image and
have it all scroll properly with in the text box.
I have taken the tab image and converted it in to a graph
symbol and then put the text on top of the image. This looks good;
however I don’t know how (or if it is even possible) to place
the graphic symbol in to the text box at the correct place within
the text.
Does anyone have ideas on what may work? Remember that the
image I am working with is only 20 pixels tall which is why the
text quality on the image is so poor.
Thank you all for any help you may provide,
SteveYes Tim I am using the <img> tag and I know that I
can’t place text over the image. I have set the height and
width to be the exact size of the image. However When you go to the
webpage it will open the movie to the maximum size based on the
resolution of your display; however I do maintain the aspect ratio
of the movie. For testing I did set a fix size to the size of the
movie. Sometimes the fix size (1000x750) looks better and sometimes
a larger size (example 1280x1024). I believe that the main problem
is the fact the size of the image is 670 pixels wide by 25 pixels
high and of the 25 pixels the text is only 18 pixels tall. In
Photoshop this makes it about a 1.75 point font. As you can see the
real problem is that I don’t have enough pixels to make up
the text. This is why I am looking for an alterative way to create
the text.
I tried importing the image into flash as a graphic symbol
and then using the text tool to create the text. The results looked
real sharp, the text was nice and crisp (just what I wanted). The
problem is that I could not find a way to place the graphic symbol
into the dynamic text area like id did using the <img> tag.
This symbol needs to scroll as you scroll the text in the text
area.
This is why I am asking for help. I am looking for some ideas
that may work.
Thank you,
Steve -
Text in internal table with HTML tags.
Hi ,
I have Text in internal table with HTML tags.
The text has to be shown in output of smartform as formatted text.
That is the smartform should READ the HTML TAGS , convert the text accordingly and show in the output as formatted text.
I dont want to make a webform . This is for NORMAL SPOOL output and NOT for WEB OUTPUT.
IN SHORT
:- the text in the internal table is like this ( please ignore the dot in the HTML TAG )--
<html><.U>this is heading</.U>Line with no break<.br>some content text</.br>
</html>
OUTPUT
<U>this is heading</U>Line with no break<br>some content text</br>
1) Can I can get the output and store it as text in a string variable and show in the smartform ?
In this case I want to know how to convert and store in a variable in sap .
OR
2) Can the text element convert the text with HTML TAGS to html formatted output and show it ?
Regards,
JagatHi,
Use the FM SCP_REPLACE_STRANGE_CHARS and check
See the
Converting html special characters to plain characters (e.g. u00FC to u00FC) -
How to print html text created with HTML Editor Standard?
I would like to print the text I added with the HTML Editor Standard, using advanced printing. I have made up a Word document with a Report Query and a Report Layout, but the text pops up as html text. Also when I use HTML as output the text shows as "p strong hallo /strong /p" (but then with < and >) instead of hallo . I understand what goes wrong, but I am unable to solve it. Is there a way to work around this?
Thanks a lot, Frits
Edited by: user3829016 on 10-nov-2009 5:51
Edited by: user3829016 on 10-nov-2009 5:52
Edited by: user3829016 on 10-nov-2009 5:53Thanks Lilly a lot!
I forgot about this tag. It helps in my situation.
P.S. I tried to solve problem with help of tag <pre> in such way:
some_word<pre> </pre>some_wordBut it didn`t helped.
Thank you again
Maybe you are looking for
-
My daughter is getting all of my in coming text from other iPhones.
My daughter is getting all of my in coming text from other iPhones?
-
Getting empty csv file using servlet
Hi i am working on reports for my web application and i used struts frame work. for my reports i want csv export, so for that i written servlet, once if i click generate button i am able to open popup window to save the generated csv file at my local
-
SQL Developer 1.5.1 - SQL Worksheet - Font Corruption
Hi All, I'm running SQL Developer 1.5.1 on Windows Vista x64 + Nvidea 8800GT graphics card. (all with latest versions) Whenever I scroll the SQL worksheet - the text becomes unreadable / corrupted. SQL Developer - SQL Worksheet is the only program th
-
Removing previous versions of Adobe Photoshop Elements
I have Elements 10 and would like to remve versions 8 and 9 from my computer without losing any pictures. Do I uncheck the " Remove downloaded content" box?
-
SSRS 2012 - Windows Server 2012 R2 issue with OLEDB Connection String
Hoping someone can help. As stated above, we are running SQL Server 2012 with SP1 on Windows Server 2012 R2. When I create a Data Source as follows in Reporting Services, I receive the following error message. Any thoughts on why this fails? The same