How to display with more styles

Please help.
I can dispaly text in one style. Color, bold,...
But how to use more than one style, for example, display text with both bold and Color.blue, etc.
Thanks

The Java Swing tutorial has a section on this including a demo program:
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html
The entire tutorial can be downloaded for free from:
http://java.sun.com/docs/books/tutorial/

Similar Messages

  • How to display   with outputText?

    Hi!
    I wonder if anyone can tell me how to display   to produce more space between two text elements than just one blank? Is there some escape code if I would like to use HTML tags in outputText (altough I don't find good reason to do so right now :)
    Regards, Matjaz

    What you need - if you're going to use text to add spaces - is non-breaking spaces.
    To get a non-breaking space, you have to pass JSF a non-breaking space. Sounds obvious enough :), but the trick is that you have to get the correct Unicode character to JSF. That's hex A0, decimal 160. In a .jspx file (XML land, JSP document), <h:outputText value="Foo&#160;&#160;&#160;Bar"/> will do the trick. In a .jsp file (non-XML), you have to actually get a non-breaking space itself entered to your text. The exact rules for that will vary depending on your choice of editor and platform. (Emacs weenies like myself can use meta-x ucs-insert).
    But if you're just trying to insert visual space, some CSS work might be the best of all options.
    -- Adam Winer (EG member)

  • How to display TEXT more than 500 char in a report as multiple lines.

    Hi Friends,
    i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
    I am fetching the data Using FM READ_TEXT
    the output im currently geeting with 150 Char in lenth as a single line
    How we can split the text into multiple lines in a report
    first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
    Thanks & regards
    kumar.

    Hi,
    This is possible but the Solution might not look Standard/Appropriate to you.
    In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
    In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
    This may work.......and Sorry if not work......

  • How to display 2/more documetns in a single adobe form

    Hi Experts,
    My requirement is to display more than 1 document (purchase order or invoice) in a single adobe form.The form i created was working good to display single document when i went to VF31 and select more than one document and click on print preview i was getting preview for last document (say i had 10 documents in that and selected 1 and 2 documents but i was getting output for 10th document) i tried with using loop like in smart forms but am not getting the output as expected. How can i achieve this please help me out.
    Thanks in advance
    Phalani M

    Go to the docs for java.lang.System.
    Click on the link out. That will take you to the docs for whatever class out is. Look through that class' docs for methods other than println that might do what you want.

  • Page coon be displayed with more data

    Hi,
    I am having an issue with BSP , when I display 30 or 40 records using <htmlb:tableView  > it works fine
    But when I try to display more records lets say 1K its showing Page cannot be displayed
    Could you please help
    Thanks,

    I have the port range triggering on with these settings:
    Application Name: https
    Triggered Range: 443 - 443
    Forwarded Range: 443 - 443
    Check mark next to Enabled
    I am using QoS with Internet Access Priority Enabled and No Acknowledgement Disabled and WMM Support Enabled
    I have some Internet FIlters:
    Filter Anonymous Internet Requests is Enabled
    Filter IDENT (Port 113) is Enabled
    And thats it.

  • Tutorial: How to work with different styles?

    Hi all
    I got the task to learn how to use different styles in Reports so I can assign different styles to the same report. Is there a tutorial available describing this?
    Thank you.
    Joshua Muheim

    Hi Dirk,
    I think some people are misunderstanding your issue, or are just sidestepping it.
    Do you basically have three seperate Service Desk configurations on one Solution Manager? Meaning their own subjects, categories, actions, org structures, statuses, etc...
    Perhaps the Service Provider functionality could help you. I haven't used it before but my understanding is it's for people supporting multiple customers with the Service Desk.
    I think Christian gave you the best route to start exploring. Good luck and let us know how it goes.
    I might be wrong but I think this is not possible. It is always ABA Message/Basis Notification/SLF1 (however you call it) which will be created in first place.
    You may change the transaction type which will be generated from this automatically. For instance from SLFN to ZLFN. (Probably it is possible to modify this copy procedure to get ZLF1 if iBase component is SID1, ZLF2 if SID2, and so on - but I did not have a look into this yet).
    If you raise the message from different systems your message will contain the appropriate iBase component.
    regards,
    Jason

  • How to display with which group(s) a contact is associated.

    How do you display group association for each contact?  When I click on All Contacts, I want to go through each contact and see which contacts have been associated with none, one or multiple groups.

    Hold down the option key. The groups will highlight in yellow.

  • ALV grid display with more than 1000 columns

    Hi Friends,
    I have to prepare a report output which have 1015 columns.
    User will give 100 weeks of data to retrieve. I have to display the output in day wise.
    100*7 + 315 = 1015 columns.
    I am using ALV grid display for this in 4.6C.
    My Question is, whether I have to declare the output table type with 1015 fields.?
    Is there any other way to do this, without declaring 1015 cloumns.
    Please guide me to solve this.
    Regards,
    Viji.

    I'm thinking when your End-user will press Ctrl + P feeding A4 size to printer
    Thomas:
    Maybe the functional consultant is pulling your leg?
    May be OP is pulling our legs or something further?
    Cheers

  • How to deal with more than one work repository vividly?

    I create one master repository with two work repository , now how can i vividly build up ODI interface in differently work repository?
    anyone reply will be appreciately,thank you very much!

    There are two kinds of work repositories - Development and Execution.
    Usually you have one Development repository which you use to develop packages, interfaces, procedures, variables etc.
    As soon as you object is ready to deploy you can create scenario from it. Afterwards you can move scenario to any execution repository you have using export/import.

  • How to display helpTip more quickly [ScriptUI]

    Hi
    I want to display ScriptUI helpTip more quickly.
    When mouseover the element, it takes 2sec to dipspay helptip-message.
    Can I set delay-time to 1sec, or is there other way to resolve this?
    (function(){
      var u;
      var win = new Window('dialog',"SpeedUp",u);
      var help = win.add('statictext',u,"HELP");
      help.helpTip = "The quick brown fox jumps over the lazy dog";
      win.show();
    Mg

    Hmm, yeah, I guess InDesign overrides the OS's default tooltip delays, which is not surprising, as it does present tooltips in a better way in some cases. Sorry for the bad guess (I was not near a Mac at the time).
    Though...why is it interesting if it doesn't work?

  • How to display with zenity or yad when Pacaur solicits password root

    Hi, I am new using pacaur, and also I am making a shell script with yad.  I need a way to captures with zenity/yad the autentication, when a package comes from AUR, also when comes from official repositories.
    Example:
    pacaur -S --noconfirm --noedit tomahawk
    Last edited by davidva (2014-03-19 01:51:15)

    I would look in to sudo's ask pass feature. Your script may need the DISPLAY and XAUTHORITY variable exported.

  • How to back with more than one external?

    I have four internal hard drives with my desktops so naturally my 1tb external HD doesn't have enough space for all the back up. I was wondering how do I add another external HD to the list in Time Machine so that it can back up the remaining stuff. I looked a lot in preferences but could not see a way to do it. I feel like I'm overlooking something...

    TM can only have one backup disk. no way around that. you can RAID your externals into a software RAID which means that they will be combined into one volume. but that's a VERY shaky arrangement for external drives sitting in separate enclosures. and it will also mean that you'll have to wipe both externals. you can also get a bigger external drive or get an external RAID enclosure. another option is to use a different backup solution for backing up the extra data that does not fit on the TM drive. there are many other excellent backup programs beside TM. see this link for options
    http://discussions.apple.com/thread.jspa?messageID=7495315#7495315

  • Guidance on how to work with more REST services

    You have already seen examples of REST services like Bing Search, Bing Translator and Yammer working in Project Siena Beta2.
    We now have a blog post outlining how to author a WADL configuration file for accessing REST services:
    http://blogs.technet.com/b/projectsiena/archive/2014/04/03/connecting-to-rest-web-services-how-to-write-a-wadl-configuration-file.aspx
    Thanks.

    Hello,
    This is great news, but when can we expect instructions as to how to use in Siena. Also, how much of these services can we expect? http://www.bing.com/dev/en-us/dev-center

  • How to filter with more than one criteria

    Hello,
    I am trying to set a filter with two specific criteria. I am able to verify with one but not two. My syntax must be incorrect. Any suggestions?
    EMPLOYEE_CD_DESC='Full-Time' and 'Part-Time'
    Am I not allowesd to use the and?

    I dont think that a criteria like
    EMPLOYEE_CD_DESC='Full-Time' and 'Part-Time'can ever be true.
    So, either use Bharath's suggestion of IN Clause or
    EMPLOYEE_CD_DESC ='Full-Time' OR EMPLOYEE_CD_DESC = 'Part-Time'

  • How to display "%" with %A  CKF

    Hi gurus,
    I have 2 CKF based on %A, its both give me the right result.
    My problem is :
    - one CKF is cumulated and shows me "%" after the calculation
    - the other is not cumulated and doesn't show me "%" after the calculation
    If anybody has an idea ...
    Thanks
    Regards
    Stéphane

    Hi and thanks for answering,
    I've readen the links in your answer, but nothing can't really help me.
    I have the good percent, only "%" in the report is missing
    Example :
    CKF_1;0;0;21,3;0;0
    CKF_1 cumulated;0%;0%;21,3%;21,3%;21,3%
    and CKF_1 cumulated is a copy of CKF_1 ....

Maybe you are looking for

  • How can I list the songs in an album in iTunes without having to do it one by one? Some albums are not numbered.

    How can I list the songs in an album in iTunes without having to do it one by one? Some albums are not numbered or they show 1. 1. 1. 1. 1. 1. 1.

  • Feature Request: merging multiple Catalogs

    It is so nice to be able to search for specific images using the Filters on a BIG Catalog that includes ALL my images. But, when the Catalog gets big (i.e. 500,000+ images), it slows down my computer (Mac Pro 3.1 with 14 GB RAM and tons of spare stor

  • How to create an additive dissolve

    How do I create an additive dissolve in After Effects ? I found this link, but I'm not convinced of the result or I may be doing it wrong...!? http://forums.creativecow.net/archivepost/2/450224 Thank you.

  • Java error importing class on forms

    Hi friends: I build a java program to save blob files into oracle database table. The program compile and execute fine in JDeveloper 10g. I get the class file and put in temporal directory and now I am trying to import these class file with Forms Bui

  • Not Updating Operations when Uploading Routings

    Hi All, I am using Direct Input method to upload routings using LSMW. When i finished all steps in LSMW i am getting mesage that "Routing is updated in group XXXXXXXX" with Message type I. I have'nt seen the operations for that Routing when i tried t