How can I get Multi-color text it a swing componet?

How can I get Multi-color text it a swing componet?
I've tryed JTextPane and JEditorPane.
If they support having text in more then one color then I don't see how.
I want to make a color-coded Java editor in Java, but I can't color-code if I can only have one color.
JComponent.setForeground(Color fg)
is not what I need.
maybe Java doesn't support it yet.
but I hope it does.
Please help, thanks.

Hi,
I've made you a little example with a coloured JEditorPane and JTextPane:
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.*;
public class ColorDemo extends JFrame {
     public ColorDemo() {
          super("ColorDemo");
          // coloured JEditorPane
          JEditorPane editorPane = new JEditorPane("text/html",
               "<FONT color=red> This </FONT>"+
               "<FONT color=blue> is </FONT>"+
               "<FONT color=green> a </FONT>"+
               "<B> JEditorPane </B>");
          editorPane.setPreferredSize(new Dimension(250, 150));
          // coloured JTextPane
          JTextPane textPane = new JTextPane();
          textPane.setPreferredSize(new Dimension(250, 150));
          Document doc = textPane.getDocument();
          Style def = StyleContext.getDefaultStyleContext().
               getStyle(StyleContext.DEFAULT_STYLE);
          try {
               StyleConstants.setForeground(def, Color.blue);
               doc.insertString (0, "This ", def);
               StyleConstants.setForeground(def, Color.red);
               doc.insertString (5, "is ", def);
               StyleConstants.setForeground(def, Color.green);
               doc.insertString (8, "a ", def);
               StyleConstants.setBold(def, true);
               StyleConstants.setForeground(def, Color.black);
               doc.insertString (10, "JTextPane", def);
          } catch (Exception e) {}
          JPanel contentPane = new JPanel();
          contentPane.add(textPane);
          contentPane.add(editorPane);
          setContentPane(contentPane);
     public static void main(String[] args) {
          JFrame frame = new ColorDemo();
          frame.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {
                    System.exit(0);
          frame.pack();
          frame.setVisible(true);
}Hope this helps,
Kurt.

Similar Messages

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How can I get a match text effect in a Choice

    How can I get a match text effect in a Choice; I mean, for instance, that if a type a "p" the first choice item that begins with a "p" should be automatically selected

    Here is a pretty simple example. Keep in mind that I am coverting all comparison characters to UpperCase. If you allow LowerCase characters in you Choice items then remove the appropriate Character.toUpperCase() calls.
    Hope this helps
    Mike
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestApplet extends Applet implements KeyListener {
         private Choice choice;
         public void init()
              setLayout(new FlowLayout());
              choice = new Choice();
              choice.add("Aaron");
              choice.add("Adam");
              choice.add("David");
              choice.add("Mike");
              choice.addKeyListener(this);
              add(choice);
         public void keyPressed(KeyEvent e)
              int current = choice.getSelectedIndex();
              int x = 0;
              char c = Character.toUpperCase(e.getKeyChar());
              while(x<choice.getItemCount()) {
                   if(c == Character.toUpperCase(choice.getItem(x).charAt(0))) {
                        current = x;
                        break;
                   x++;
              choice.select(current);
         public void keyReleased(KeyEvent e) { }
         public void keyTyped(KeyEvent e) { }
    }

  • How can I get my instructional text to display when I open the pdf?

    I have some fields which I have set up which have help/instructions for completing the information required.  This is a questionnaire.  When I save it as a pdf, the instsructional text does not display.  I would really appreciate if someone can tell me how to fix this.

    Thanks for taking the time to respond to my query.  The text does not display when I hover my mouse over it.
    cheers    Deborah Frow
          From: Ajlan huda <[email protected]>
    To: Deborah Frow <[email protected]>
    Sent: Monday, 12 January 2015, 5:24
    Subject: Reply marked as helpful on How can I get my instructional text to display when I open the pdf?
    |
    How can I get my instructional text to display when I open the pdf?
    Ajlan huda marked SumitV's reply on How can I get my instructional text to display when I open the pdf? as helpful. View the full replyMarked as helpful:Hi Pacific Immigration, In Adobe Acrobat/ Adobe Reader there is no “?” shown for help, but if you mouse over the field for 1-2 seconds the Help text is shown.
    Following How can I get my instructional text to display when I open the pdf? in these streams: Inbox
    |

  • Using Export for Kindle, how can I get black body text to display inverse (white on black) on Kindle

    I'm using ID 5.5 on a Vista system.
    I've created a book file with some colored fonts and anchored gif images. Basic paragraph (body text) is black. The "Export to Kindle" mobi file displays fine on Kindle for PC and Kindle Previewer.
    Kindle PC alows viewing on white, sepia or black background. Works fine on white and sepia, but when the black color mode is selected (night viewing option) the black text does not display as white text. What can I do to have the black text automatically change to white?
    While trying to find a solution, I created an epub file of the book and, using Calibre, converted it to mobi. When this mobi file is loaded into Kindle PC, the black text does automatically change to white when viewed on the black screen. I would use this method of creating the mobi, but there are several other issues that make this process unsatisfactory (other text colors don't work well, image transparency losses, etc).
    So, how can I get the black to white text thing using only Export to Kindle?
    Jim

    Grayscale is probably the best (Settings>General>Accessibility>Grayscale)
    -Ethan
    EDIT: If you would like a black color scheme, use the suggestion in the reply above.

  • How can I get vertex colors on a mesh to work properly on a PDF 3D

    Hi everyone,
    I am working with GeoMagic Wrap 2013, a software for modelling meshes.
    I digitalize objects through a 3d scanner.
    The Scanner can digitalize objects, generating a mesh, either with .stl or .obj extensions.
    .Obj is useful because you can retain the original color of the object you are acquiring when getting the mesh.
    What Wrap 2013 let me do, among other functionalities, is to export the mesh in the .pdf format as a PDF 3D.
    The issue is that what i see in Wrap 2013 is this:
    but what i get when i export them in PDF 3D is this:
    which is unconvenient because the point of this is to provide a potential client with a fully rotatable and zoomable preview of a product he/she is interested in.
    How can i get the original colors to render properly on a PDF 3D?
    Thank you

    Thanks Dave,
    I am not so technical about the subject but what you are saying (and what is written on the topic you liked above), is that is not possible to achieve the result i'd like with my model using PDF 3D?
    What is quite annoying is that many mesh modelling softwares now provide PDF3D export service but practically forcing you to use uniformed colors that are really not suitable for certain use... you can't have a model with the original (or vertex more in general) colors...
    That would be really a pity to say the least, especially considering that after some work time i can have really nice looking models within my sofware and no way to present it to the client except some really "flat" photos :/

  • How can i get back the text of child

    I did an application to connect a db and show the datas in table.but the text of all such as button or textview seems disappear.how can I get them back?
    Here's the snap picture of my problem.
    http://img191.photo.163.com/rocboy_yang/13457324/655578057.jpg

    Hello Ty Lu,
    Have you hardcoded the text values for each button in the 'text' property of each button or are they assigned programaticaly from the context, are you using the message pool, perhaps for translation?
    Perhaps just right-clicking on your project in NWDS and selecting 'Reload' will straighten things out for you, give it a try.
    Regards,
    Patrick.

  • How can i get the correct text from the url which has the mulitp-languages?

    hi, all
    i built a application and deployed it on sun application server 8.1. when i request a url which include some multi-languages (for example http://xxx.com/servlet?value=XXX. the 'XXX' may be simply chinese. ), i got the ??? instead of the correct text. how can i do it? in tomcat server, i can set the URIEncoding=GBK to get the correct code in server.xml. how can i do it in sun app server?
    thanks.

    Ok, it is unclear on what is happening here.
    Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
    This is what I see the of your example text which is trying to be parse out:
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
    It appears to me that the  escapes `&rsquo;` does not have matching `&ldquo;` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
    Hence a garbage in, garbage out situation.
    William Wegerson (www.OmegaCoder.Com)

  • How can i get the correct text from a string like it show in the original source with the quotation marks in the right place ?

    The text is in hebrew so the problem is that sometimes the quotation marks not in the right place.
    For example i have this text: תווית
    על בגד: ''תן לאישה לכבס. זה תפקידה''
    This is the source original text you can see the quotations marks and they are not in the right place and all i did is copy paste.
    And this is a screenshot of how this text looks like in the website in the original:
    You can see now where the quotations marks should be.
    Now this is how i'm using the text in my program:
    First of all i'm using a webclient to download the page from the website and i'm also encoding it to windows-1255 since it's in hebrew.
    using (var webClient = new WebClient())
    webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    byte[] myDataBuffer = webClient.DownloadData("http://rotter.net/scoopscache.html");
    page = Encoding.GetEncoding("windows-1255").GetString(myDataBuffer);
    Then i'm extracting the places i need by reading the html file lines and parsing the right text and it's link.
    string loc;
    List<string> metas = new List<string>();
    List<string> metas1 = new List<string>();
    List<string> lockedLinks1 = new List<string>();
    string text = "";
    string mys = "";
    public List<string> LockedThreads(string filename)
    lockedThreads = new List<string>();
    lockedLinks = new List<string>();
    Regex textRegex = new Regex("ToolTip.*?(?=','<)");
    string[] fall = File.ReadAllLines(filename);
    for (int i = 0; i < fall.Length; i++)
    if (fall[i].Contains("http://rotter.net") && fall[i].Contains("locked")||
    fall[i].Contains("locked_icon_general") ||
    fall[i].Contains("locked_icon_anchor") ||
    fall[i].Contains("icon_anchor") ||
    fall[i].Contains("locked_icon_fire") ||
    fall[i].Contains("locked_icon_sport") ||
    fall[i].Contains("locked_icon_camera") ||
    fall[i].Contains("locked_icon_movie"))
    Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
    foreach (Match m in linkParser.Matches(fall[i + 2]))
    if (m.Value.Contains("><b"))
    loc = m.Value.Replace("\"><b", string.Empty);
    lockedLinks.Add(loc);
    string txt = fall[i - 1];
    string text = textRegex.Match(txt).Value.Replace("ToolTip','", String.Empty);
    if (text.Contains("&rsquo;"))
    text = text.Replace("&rsquo;", string.Empty);
    lockedThreads.Add(text);
    Already here on the List lockedThreads you can see the quotation marks not in the right place as in the original:
    After i'm parsing the text and links and adding them to the Lists in another class i'm doing a comparison using this Lists:
    foreach (List<string> l_branch in ListsExtractions.responsers)
    TreeNode l_node = treeView1.Nodes.Add(l_branch[l_branch.Count - 1]);
    if (ListsExtractions.lockedThreads.Contains(l_node.Text))
    l_node.ImageIndex = 0;
    l_node.SelectedImageIndex = 0;
    for (int l_count = 0; l_count < l_branch.Count - 1; l_count++)
    TreeNode l_subnode = l_node.Nodes.Add(l_branch[l_count]);
    if (ListsExtractions.lockedThreads.Contains(l_subnode.Text))
    l_subnode.ImageIndex = 0;
    l_subnode.SelectedImageIndex = 0;
    The problem is in the line:
    if (ListsExtractions.lockedThreads.Contains(l_node.Text))
    When it's getting to the line with the quotation marks it's never equal.
    Now there are more quotation marks.
    In general the problem when comparing both text if it's having quotation marks it's not the same.
    So i have two options:
    1. To fix it somehow so the quotation marks will be the same in both variables when comparing and also the same like in the original as they show in the html page.
    2. To remove the quotation marks from both variables.
    What should i do ? And how ? I was prefer to use the original quotation marks like in the original since they have a meaning in the place they should be. The question is how can i do it ?
    This is example of the block from the html file where the text with the quotation marks is:
    <TD ALIGN="RIGHT" VALIGN="TOP">&nbsp;<font size=-1 color=#ff9933><b>9418</b></font>&nbsp;</TD></TR><TR BGCOLOR="#eeeeee">
    <TD ALIGN="RIGHT" VALIGN="TOP">
    <body onmousemove="overhere()">
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();" onmouseout="deActivate()" href="javascript:void(0)">
    <img src="http://rotter.net/forum/Images/new_locked_icon_general.gif" border="0"></a></TD><TD ALIGN="right" VALIGN="TOP" WIDTH="55%">
    <FONT CLASS='text15bn'><FONT FACE="Arial">
    <a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=189696&forum=scoops1"><b>
    <font color="898A8E">תווית על בגד: ''תן לאישה לכבס. זה תפקידה''</b>
    </a></font></TD>

    Ok, it is unclear on what is happening here.
    Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
    This is what I see the of your example text which is trying to be parse out:
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
    It appears to me that the  escapes `&rsquo;` does not have matching `&ldquo;` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
    Hence a garbage in, garbage out situation.
    William Wegerson (www.OmegaCoder.Com)

  • How can I make multi-colored links change their rollover or hover color?

    I have made links with seperate colors using css, but the links with new colors have no hover property. I want these links to change color when the cursor hovers over them the same way the other links on my page do. I have tried making a new css rule for <hover> and tried writing the property into the css code but to no effect. I have searched the web and this forum for an answer and found notheing that works. Does anyone know how to give links with multiple colors a hover property that will make them change color? All of my other links change color as defined in the page properties, but the links with new color rules don't change color anymore. This is probably pretty basic. I'm new to DW, using CS6. If anyone can provide a step by step and show where the code should be inserted, this would be very helpful. Thank you in advance!

    Basic HTML5 Layout with Multi-colored menu.
    Copy & paste the code below into a new, blank document.  SaveAs test.html.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document</title>
    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <![endif]-->
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    body {
        font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
        font-size: 62.50%;
        width: 900px;
        /**with width, this is centered**/
        margin: 20px auto;
        padding: 0;
        background: #CCC099;
        box-shadow: 3px 3px 12px #333;
        border-radius: 12px;
    /**TEXT LINKS**/
    a {
        text-decoration: none;
        font-weight: bold;
        color: #F63
    a:visited { color: #F93 }
    a:hover, a:active, a:focus { text-decoration: underline }
    header {
        margin: 0;
        padding: 0;
        min-height: 100px;
        border-radius: 12px 12px 0 0;
        color: #FFF;
        background: url(http://lorempixel.com/output/abstract-q-c-1056-100-7.jpg) no-repeat;
    /* Multi-colored Horizontal Drop-Menu */
    nav {
        float: right;
        padding: 4px;
        text-align: center;
        background: rgba(0,0,0,0.3)
    nav ul {
        margin: 0;
        padding: 0
    nav li {
        list-style: none;
        font-size: 12px;
        float: left;
        text-align: center;
    /**top level menu**/
    nav li a {
        display: block;
        text-decoration: none;
        margin-right: 0; /* space between links */
        width: 10em; /* adjust as needed or use auto */
        padding: 8px;
        font-weight: bold;
        line-height: 1.50em;
        border-top: none;
        color: #000;
    /**alternating background colors**/
    nav li:nth-child(odd) > a { background: #CAD3D3 }
    nav li:nth-child(even) > a { background: #FFCCCC }
    /**top menu style on mouse over**/
    nav li:hover > a {
        color: #FFF;
        background: #033D53;
    /**sub-menu**/
    nav li ul {
        display: none;
        text-align: center;
        margin: 0;
        padding: 0 1em;
        background: none;
    /**sub-menu, help for older IE**/
    nav li:hover ul, nav li.hover ul {
        display: block;
        position: absolute;
        padding: 0;
    nav li:hover li, nav li.hover li { float: none; }
    /**drop-menu style**/
    nav li:hover li a, nav li.hover li a {
        width: 10em; /* adjust width as needed or use auto */
        margin-top: 0;
    /**drop-menu style on mouse over**/
    nav li li a:hover {
        background: #D3E1B7;
        color: #004A43;
    /* Clear floated elements at the end*/
    nav:after {
        display: table;
        content: '';
        clear: both;
    /**END DROP-MENUS STYLES**/
    article {
        background: #FFC;
        padding: 3%;
        font-size: 125%;
    /**3-COLUMNS**/
    section {
        float: left;
        width: 33.33%;
        padding: 1%;
        background: #EAEAEA;
        min-height: 250px;
    /**alternating background-colors**/
    section:nth-child(even) { background: #DADADA; }
    footer {
        clear: left;
        color: #FFF;
        background: #033D53;
        font-size: small;
        font-weight: bold;
        text-align: center;
        padding: 1%;
        border-radius: 0 0 12px 12px;
    /**text styles**/
    p {
        margin: 0 0 1.5em 0;
        padding: 0;
        font-size: 1em;
    /**header text**/
    h1 {
        margin: 0;
        padding: 0.5em 1% 0;
    h2 {
        margin: 0;
        padding: 0 1%;
        font-style: oblique
    h3 {
        margin: 0;
        padding: 0;
        font-size: 1.5em;
        color: #09F;
    </style>
    </head>
    <body>
    <header> <h1>Site Name</h1> <h2>Some Pithy Slogan</h2>
    <!--begin top menu-->
    <nav>
    <ul>
    <li><a href="#">ABOUT US &#9660;</a>
    <ul>
    <li><a href="#">Videos</a></li>
    <li><a href="#">Newsletter</a></li>
    </ul>
    </li>
    <li><a href="#">PRODUCTS &#9660;</a>
    <ul>
    <li><a href="#">Broken Glass</a></li>
    <li><a href="#">Mosaic Tiles</a></li>
    <li><a href="#">Adhesives</a></li>
    <li><a href="#">Grout</a></li>
    </ul>
    </li>
    <li><a href="#">ACCESSORIES &#9660;</a>
    <ul>
    <li><a href="#">Gloves</a></li>
    <li><a href="#">Rubber Mallets</a></li>
    <li><a href="#">Sponges</a></li>
    <li><a href="#">Safety Glasses</a></li>
    </ul>
    </li>
    <li><a href="#">CONTACT</a></li>
    </ul>
    </nav>
    <!--end top menu-->
    </header>
    <article>
    <h3>Main Content goes here...</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi! Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.</p>
    </article>
    <!--3-columns-->
    <section> <h3>Heading 3</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi! Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.</p>
    <ul>
    <li><a href="#">some link</a></li>
    <li><a href="#">some link</a></li>
    <li><a href="#">some link</a></li>
    </ul>
    </section>
    <section>
    <h3>Heading 3</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
    Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.
    Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.
    Aenean tristique enim ut ante dignissim. </p>
    </section>
    <section>
    <h3>Heading 3</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.  Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius.  Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    </section>
    <!--end 3-columns-->
    <footer>
    <address>
    Company address . Phone . Fax
    </address>
    <small>&copy; 2014 SiteName. All rights reserved</small>
    <p> </p>
    <p> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
    alt="Valid CSS!"> </a> <img src="http://www.w3.org/html/logo/badge/html5-badge-h-css3-semantics.png" height="31" alt="Valid HTML5"></p>
    </footer>
    </body>
    </html>
    Nancy O.

  • How can I get High Lighted text from JTextPane?

    I can get Selected text when right click.
    But, I have to get high lighted text without Right click.
    How can I do this?
    Is it possible any way?

    Hi,
    you could try it with Document doc = editor.getDocument();
    int start = editor.getSelectionStart();
    String selectedText = doc.getText(start, editor.getSelectionEnd() - start);(editor above being your JTextPane).
    Ulrich

  • How can i get order long text?

    Hi Experts
                 We are developing one order report and trying to get order long text, but we search several tables and we didn't fine which table is the right table to save long text, anyone can tell me how to achieve long text for order.  Thanks in advance.
    Best regards
    george

    Hi George,
    STXL: Long Text (Header - English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='KOPF' and XTDSPRAS in ('E')
    XTDNAME is MANDT+AUFNR
    STXL: Long Text (Operations- English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='AVOT' and XTDSPRAS in ('E')
    XTDNAME is MANDTAUFPLAPLZL
    STXL: Long Text (Components- English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='MATK' and XTDSPRAS in ('E')
    XTDNAME is MANDTRSNUMRSPOS
    This may help you
    Babu

  • How can I get rid of text that was made in iMovie while in FCPX

    I imported a video from my imovie and am in the process of adding text in the frames, is there a way to get the old text that was embedded in the imovie, can it be cut or editied out of the frames, I don't see any options that allow you to select it and delete. I just don't want to have to go back and delete it out as I have already made some major improvements on the exsisiting project.
    Thanks,
    Bob

    Dude, the FCP-X forum is located here: https://discussions.apple.com/community/professional_applications/final_cut_pro_ x?view=discussions
    This is the Final Cut Studio forum.  There are no similarities between the two.
    -DH

  • How can i get the read text in the SRM?

    Hi Experts,
    I need to do the business add-in in SRM. But i don't know how to find out the item text field.
    Does anybody know how to find it?
    Regards,
    Luke

    hi
    You need to give the Item GUID
    ID ->ITXT
    Language -> EN
    Name ->ITEM GUID
    Object -> BBP_PD
    READ_TEXT FUNCTION MODULE
    You will get the Text in the LINES
    my technical friend  helped me. he is deserved for this.
    Muthu

Maybe you are looking for

  • How can I filter as you type on numeric datagridcolumn?

    Hello, I use this script to filter, it works great with string field, but when change it to numeric field (ie. contact_number) I got this error (property length not found on Number and there is no default value. Does any one have any idea why and how

  • Clock icon on

    The clock icon does not display the correct time. It now (@21.36) seems to be stuck at two to seven. Is there a way to (re) activate the clock?

  • Planning a production system for SAP portal

    Hello Experts- Can any one of you point me to some document or blogs on best practises on designing production portal. I am not looking for best practics implementing portal, but just production system. Thanks, John.

  • LEADING or ORDERED hint in OWB 10gR2

    Hi, How does one add a LEADING or ORDERED hint to a mapping in OWB 10g R2? The usual way of adding a hint is to "Configure" the map and add the extraction or loading hint under the table (data source) operators. However, the hints in such a case are

  • Receive asynchronous message from JMS  topic over web service

    Hi, I have a JMS topic and I want to expose it as a web service so that clients can make durable subcription to the topic and receive messages asynchronously. What is the best way of doing this ? Is there a portable (to other containers) way of do th