Component for creating paragraphs

Hi, I need to make text panel which formats text to paragraphs following way:
Author:-----------------------mr. X
File Creation Date:------------28.7.2003
Authentication Server Name:--Server
Which Java class should I use? I have been reading about JTextPane, DefaultStyledDocument, ParagraphView, etc. The problem is that I need paragraphs to be scalable so that the longest String tells the width of the paragraph. Like in the example above the second paragraph shoud start on all lines at the point where word Server starts. mr.X, 28.7.2003 and Server should start from the horizontally same point. Is there some easy way to do that or shoud I just check lenghts and code more "\t":s after shorter words.
- symbols in the example should spaces made with tabs.
I hope someone understands what I mean.
-esa

Hi,
I don't think you absolutely need a textual component for this... personnally, I would use layouts. In the described case, a BorderLayout would contain the left labels (a panel with GridLayout containing labels) in its WEST part, then the values (a panel with GridLayout containing labels) in the CENTER part. But of course, there are plenty of possibilities.
Hope this helped,
Regards.

Similar Messages

  • FlexPMD Coldfusion component for creating PDF report

    http://www.flexinabox.com/index.cfm/2009/11/29/FlexPMDPDF--A-ColdFusion-PDF-report-generat or-for-Flex-PMD
    Enjoy !
    Xavier

    Don't want to use third-party libraries? Then you'll have to write your own code that outputs data according to the PDF specifications. You can download them from Adobe:
    http://partners.adobe.com/public/developer/pdf/index_reference.html
    Personally I would recommend the third-party libraries as this is a very large wheel to reinvent.

  • How to create a border for a paragraph ?

    Can anyone tell me how to create a border for a paragraph ? Is this even possible without creating a table ?
    I would like to have the page header with a single line below it and the page footer with a single line above it. Inserting a line seems to force unnecessary space above of below the line and using a table seems to force a blank line below the table also creating unnecessary space.
    Thanks

    Thanks, I had the problem with this approach that the line never appeared on each page but adding to the section master would fix it.
    Still being able to set a border would be good! I did try using the text box but the border options are pretty inflexible. I was unable to just set the top or bottom borders. Did I miss something basic here or is this option just not available ?
    Any idea if this is coming in a future release ?

  • Need help in finding open source for creating Login component

    hi
    Pls any one help me out in finding some good open source for creating login component for my application
    i have heard about josso but i am not able to find how to use it if anyone can help in setting up josso i wil be very thankful to that person and also if anyone can help me finding some other open source i will be very grateful ,,
    Pls help its very urgent and i am running short of time

    DECODE(l.attribute_category, 'Coverage Template Header', l.attribute3) Penalty_Bonus,
    DECODE(l.attribute_category, 'Coverage Break', l.attribute1) Mon_Break_Start,
    DECODE(l.attribute_category, 'Transaction Type', l.attribute1) Split_Covering,Uh oh, the dreaded entity attibute value, or generic, data model.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:10678084117056
    I am afraid slow performance is a built in feature of this database design, not much you can do in queries.
    You could possibly create the views as materialized views and query those instead.
    Quote from the linked article
    But, how does it perform? Miserably, terribly, horribly. A simple "select
    first_name, last_name from person" query is transformed into a 3-table join with
    aggregates and all. Further, if the attributes are "NULLABLE" - that is, there
    might not be a row in OBJECT_ATTRIBUTES for some attributes, you may have to
    outer join instead of just joining which in some cases can remove more optimal
    query plans from consideration.
    Writing queries might look pretty straightforward, but it's impossible to do in
    a performant fashion.

  • What are the basic steps for creating a content repository?

    I am trying to create a document store on a file system (fsdb) that will hold files that are ftp's to that location. Is this possible using KM? If so, what are the basic steps for creating a file system repository and using it through KM? I have found stuff on help.sap.com but that only tells you what each component does not what actual steps need to be taken to setup KM, such as user rights , creating an entry point, so that all of KM is not visible, etc...
    If anyone knows of any guides that show a step by step process that would be great too.
    Thanks
    Paul

    Hi Paul
    First of all you need to create a new repository
    Suppose you want to add all the documents under folder Paul under C: Drive
    (Even you can put whole documents of C: drive into Paul)
    Navigate to System Admin -> System Configuration -> Knowledge management -> Content Management -> Repository Manager -> File System Repository
    There you can create a new directory by clicking on button New
    Give the parameters as follows :-
    Name               :           Anything you like
    Description       :           Anything you want
    Prefix (must start with /)  :  Probably same as your repository name like \Paul
    Lookup mode : caseless
    Root Directory   :  C:\Paul
    NOTE:  This is the trick. You need to give the proper path means folder path which you want use as repository)
    Repository Services  :  Any services you want
    Property Search : Managercom.sapportals.wcm.repository.manager.generic.search.SimplePropertySearchManager
    Security Manager         :           AclSecurityManager
    ACL Manager Cache   :           ca_cm_rep_acl
    The save it
    Now see whether the same repository is coming under KM Content or not, if not may be after restart it will come.
    I think the above information will help you. If still you have problem, please feel free to contect me.
    Regards,
    Chamkaur

  • How to change material component for a Purchase Order?

    How to change material component for a Purchase Order?
    I need FM .
    PLEASE help

    Dear ,
    Create PO with item category L....There in Item detail you will get tab for material.
    There click in component Button, it will take you to the component screen there you can assign and deassign components.
    Hope this helps.
    Regards
    Utsav

  • Runtime error 429, activeX component cant create object while using netbet pro on windows 7 & 8.1 HELP!!!

    runtime error 429, activeX component cant create object while using netbet pro
    does anyone know what I could do to fix this problem??? netbet pro was't available for a while then it's back but has yet to run

    What's netbet pro?
    I'd recommend asking questions about third party applications in the vendor's forum, not a Microsoft forum meant for admin scripting.
    EDIT: Ah, some gambling website...
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Logical Component for HANA DB system

    Hi Friends,
    I am doing Managed System Configuration for HANA DB system.
    I have created Logical Component for the same, but I am unable to put it in Solution(in SMSY).
    Can some one suggest.
    Thanks & Regards,
    Solman Starter

    Hi,
    What is the error you are getting ?
    What your solution manger version and SP level ?
    Check below note and see if they help.
    1958910 - EarlyWatch Alert For HANA Database
    Regards

  • How do you automatically create paragraph styles from a document?

    Hi,
    (posted in general indesign as well - advised to post over here)
    I know I've seen this somewhere but can't for the life of me find it...
    How can I automatically create paragraph and character styles in an InDesign CC document? I'm sure I saw a script to do this and though I'll download that later...only i can't find it now.
    The scenario is that I have a document created by someone else which has lots of paragraph styles, but each one has over-rides on (so they're not really much use). I'm wanting something that will go through the document and create all the different styles that have been used.
    Any ideas?
    Thanks

    Hi
    I was given this tip to try: PerfectPrepText (http://indesignsecrets.com/perfectpreptext-a-smart-way-to-style-local-formatting.php) but couldn't get it to do what i was after unfortunately...however it did point me in the direction of something that does the trick:
    PowerStyles (DTP Tools - Power Styles for Adobe InDesign).
    Not sure if it's available for CC yet though.
    Thanks

  • How to Initiate For Creating Business Package.

    Hi all,
    We donu2019t have NWDI setup in our landscape; therefore I would like to know that how i can initiate for creating business package of custom specific application development using Web Dynpro JAVA and DB Oracle. If anyone has idea about this type of in-house development, please suggest.

    Hi Gautam
    Please setup NWDI for creating custom business pachage.
    Download DTR, CBS and CMS same patch level as your Server and delpoy.
    then Create Software component in System Landscape Directory(SLD) and create custom business package track in the CMS for development using Web Dynpro JAVA
    Hope this will help.
    Thanks
    Arun

  • Problem with FM for creating quotations

    Hello,
    we are trying to use the FM BS01_MM_QUOTATION_CREATE for creating quotations in an ECC6.0.
    Following failure keeps reappearing:
    " In programme "SAPLBOS04 " in include "LBOS04F01 " in line 711
    following syntaxerror occurs: "The data object "IESLL" does not have a component called "EXTDES". "
    Any options for this?
    Regards
    Micha

    Hi André,
    sorry, cannot provide an answer. I am waiting for an answer from SAP support.
    Best regards,
    Micha

  • Defining a background color for a paragraph style

    Hello and please excuse this very basic question, but I am completely stumped.
    How do I simply define a background color for a paragraph style? I cannot use a table etc. because the styles are mapped during an XML conversion. Code lines should receive a gray background box to separate them from the text.
    Also, is there a way to force line breaks whithin words for a specific style? The text, formated in Courier, should just fill the space with a fixed width per character and break wherever the line ends.

    With some drawbacks it's doable using two paragraph tags.
    The first tag, e.g. "Line" is empty (no text), and it has a reference page graphic that's just a rectangle filled 100% with color and set to have a percentage tint so that the text will "show through" it.
    "Line" is also set to have a negative space below it, e.g. -12 points.
    "Code" paratag has the actual code text in it, and it's set to have a negative space above, e.g. -12 points.
    I've done projects where I have multiple Line paratags differing by the number of code lines needing to be shaded, e.g. Line1, Line2, Line3.
    Unfortunately there isn't a way to automatically have the line expand to the correct depth of the Code paragraph, although I believe this would probably be something that could be done as a Framescript, to run through a document and create new "line" paratags of the correct depth depending on how many Code paragraphs or lines are in the following paratag.

  • I cannot install the component for QuickTime to convert videos done by a Sony video camera. My iMac tells me that software is designed for previous versions of Os x. Any ideas?

    I cannot install the QuickTime component for MPEG-2 to read and covert video files created by Sony video cameras. My iMac tells me that the software is designed for previous versions of OS X.
    Any ideas?

    Ok, so after like 4 days of going through all these different issues, I figured out that several programs weren't downloading, and it was an issue with my wireless connectivity messing up the digital signatures, so if you plug in your comp to the modem and delete your temp files, it should start to work!

  • Dump in Value-Help Component for date

    I created a Value-Help-Component for date fields. (I cannot use the standard value help, because I need the help to start in the month, the user is working on).
    I am using the Date Navigator to select a date.
    If I first change the month with an arrow of the date navigator and then select a date I get a dump in the method IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE_REF in line
        attr_info = me->node_info->if_wd_context_node_info~get_attribute( name_only ).
    , because the element does not have a node_info.
    If I just choose a date in the preselected month (without using the arrows of the date navigator) everything is fine.
    Does anybody have an idea??
    Many thanks in advance.

    I found the "solution" to the problem myself.
    I used the method bind_structure in the component containing the date navigator.
    After I replaced it by set_static_attributes it worked without producing dumps.
    Very strange!

  • Style for following paragraph only works for RH default styles?

    I'm creating my own styles in the styles and formatting pod. When you choose 'Edit' and then fiddle with the settings in the dialogue box, there is an option for "Style (style for following paragraph).
    This is a great feature. The problem is, it only seems to work if you choose a style that existed by default in RH (e.g. Heading 1, Normal). When I choose a style I created, the next style created with a hard return is just a repeat of whatever style you were in on the previous line.
    It's hard for me to understand why it won't work with any of the other styles I created, since they all appear in this dialogue-box list as options. Could someone please enlighten me?

    I'm using the default style sheet. I've added my own topics in it.
    Any other thoughts?

Maybe you are looking for