How do I right align the component af:navigationPane?

First I should say that I use Jdeveloper Studio Edition Version 11.1.1.0.1.
I have a template that in one place in the template contain these components
<afh:cellFormat halign="right">
<af:navigationPane>
<af:commandNavigationItem/>
<af:commandNavigationItem/>
<af:commandNavigationItem/>
<af:commandNavigationItem/>
</af:navigationPane>
</afh:cellFormat>
I want to right align the cellformat and navigationPane which has the hint property set to bar. I have tried to set the Halign property of the cellFormat to right and if I have an outputText inside the cellformat it gets right aligned so I guess that works but I cant get the commandNavigationItems to right align inside the navigationPane. I have tried to set the the text-align:right; in the navigationPane but that doesn´t work. The only thing that seems to work is to set the width of the last cellformat but since the width of one of the commandNavigationItems varies it isnt a good solution either. Can´t right alignment be done with a navigationPane? Should I choose some other component instead? In case I could use another component instead, which component has similar functionality and can be right aligned?
Atlantic Viking
Edited by: Atlantic Viking on Feb 3, 2009 7:22 AM

Hi,
I have tried the sample for this :
<af:panelGroupLayout id="pgl41" layout="horizontal" halign="right">
<af:navigationPane id="np1" hint="tabs">
<af:commandNavigationItem id="cn1" text="Test1"/>
<af:commandNavigationItem id="cn2" text="Test2"/>
<af:commandNavigationItem id="cn3" text="Test3"/>
<af:commandNavigationItem id="cn4" text="Test4"/>
</af:navigationPane>
</af:panelGroupLayout>
It works fine.
Is it af:navigationPage(new tag) or af:navigationPane.

Similar Messages

  • How do I find out the component ID on a certain page?

    How do I find out the component ID on a certain page? problems is that I'm using some page template which I do not have source code for that.I need to find out the component id to pass to UIComponent.findComponent(id) as parameter. is there anyway?
    Thanks

    If you go to the partial trigger property of any of your page component you can open the edit partial trigger browser.
    There you can find the components of your template and their ids

  • How to right align the buttons in JOptionPane?

    Hi,
    I am using JOptionPane in my code.
    I want all the default buttons that are created by any of the JOptionPane methods (e.g. JOptionPane.showMessageDialog()) be right aligned. Currently all the buttons are shown center aligned.
    Here is the only code that I have to display the dialog:
    JOptionPane.showMessageDialog(getInstance(), msg, "Deprecated components", JOptionPane.WARNING_MESSAGE);
    Can someone tell me how to achieve this?
    Regards,
    ParagJ

    Build your own JDialog

  • How to Right Align the output of amount with currency?

    Hi,
    I have the following SQL query, which basically is the duplication of the SAP standard Item List.  The only difference is, the stock on hand is only for Warehouse 01.
    In the output, I manage to display eg: AUD 1321.00.  However, it is aligned to the center.  Is there a way that I can make it right align like the standard report?  Appreciate your help.
    SELECT T0.[ItemCode], T0.[ItemName], (select T100.OnHand from OITW T100 where T100.ItemCode=T0.ItemCode and T100.WhsCode='01') as 'InStock',T0.[CodeBars], T1.[ItmsGrpNam], T2.[FirmName], T0.[InvntryUom],
    ('AUD'+ replicate(' ',16-len(T0.[LstEvlPric])) + Convert (char(18),(cast ((round(T0.[LstEvlPric], 2)) as decimal(16,2))))  ) as 'Last Eval Price', (T0.[LastPurCur]+ replicate(' ',16-len(T0.[LastPurPrc])) + Convert (char(18),(cast ((round(T0.[LastPurPrc], 2)) as decimal(16,2))))  ) as 'Last Pur. Price',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=1 and T200.ItemCode=T0.ItemCode) as 'L 1',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=2 and T200.ItemCode=T0.ItemCode) as 'L 2',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=3 and T200.ItemCode=T0.ItemCode) as 'L 3',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=4 and T200.ItemCode=T0.ItemCode) as 'L 4',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=5 and T200.ItemCode=T0.ItemCode) as 'L 5',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=6 and T200.ItemCode=T0.ItemCode) as 'Price List 6',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=7 and T200.ItemCode=T0.ItemCode) as 'Price List 7',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=8 and T200.ItemCode=T0.ItemCode) as 'Price List 8',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=9 and T200.ItemCode=T0.ItemCode) as 'Price List 9',
    (SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=10 and T200.ItemCode=T0.ItemCode) as 'Price List 10'
    FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode

    Thanks. 
    But, does that mean the the right alignment in SAP Item list was done through UI? 
    Another question is:
    Normally, in an SAP query, when click Ctrl + left click the mouse at the bottom, I can see the total.
    However, with the query that I have created, it seems to cut off the first number.  Eg: The total should be AUD 231,123.00, but it is showing me AUD 31,123.
    Can you see how I can fix that?

  • How do I center align the text in my text boxes if they are currently right aligned?

    I created a client questionnaire in Word and then turn it into a PDF and created the text boxes necessary. The problem I am having in Adobe XI Pro is that I want all of the text in my text boxes to be centrally aligned rather than left aligned. However, when creating and editing the text boxes, I see no option to help me do so. When clients fill out the form it looks messy because the information that the fill in tables in not centrally aligned, so it makes my tables look poorly organised. Help would be much appreciated, thank you.

    In Form Edit mode, right-click the field(s) and select Properties - Options, and under Alignment select "Center".

  • How to show required symbol on to the right of the component's label

    Hi,
    In our application, we wanted to show the required symbol (*) to the right of the label for a input text box(currently it shows the * to the left of the label).
    Can anyone help me how to do this. Can we achieve this using styling??
    We are usign Jdev 11.1.1.5
    Thanks.

    Required Symbol for Input Text Fields

  • How can I right-align a table header?

    Does anyone know a way to right-align a table header?
    For example, in the table below I want the word 'Price' to be right-aligned. I could set the table's 'header renderer' to be a right-aligned DefaultTableCellRenderer, but then the header would look like a cell, not a header. Why can't swing be simple, like table.getColumn(1).setAlignment(Column.RIGHT) ????
    public class TestTableHeader {
         public static void main(String[] args) throws Exception {
              JFrame frame = new JFrame("Test");
              Object[][] rowData = new Object[][] { { "General Electric", "$100.60" },
                        { "IBM", "$5.20" }, { "Wal-mart", "$17.00" } };
              JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
              DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
              renderer.setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
              table.getColumnModel().getColumn(1).setCellRenderer(renderer);
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setVisible(true);
    }

    I modified your code an came up with a solution to the problem.
    import java.awt.Component;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    public class TestTableHeader {     
         public static void main(String[] args) throws Exception {
              JFrame frame = new JFrame("Test");
              Object[][] rowData = new Object[][] {
                        { "General Electric", "$100.60" }, { "IBM", "$5.20" },
                        { "Wal-mart", "$17.00" } };
              JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
              RightAlignRender right = new TestTableHeader().new RightAlignRender();
              table.getColumnModel().getColumn(0).setHeaderRenderer(right);
              table.getColumnModel().getColumn(1).setHeaderRenderer(right);
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setVisible(true);
         public class RightAlignRender extends DefaultTableCellRenderer {
              public Component getTableCellRendererComponent(JTable table,
                        Object arg1, boolean arg2, boolean arg3, int arg4, int column) {
                   Component toReturn = table.getTableHeader().getDefaultRenderer().getTableCellRendererComponent(table,
                             arg1, arg2, arg3, arg4, column);
                   switch (column) {
                   case 0:
                        ((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.CENTER);
                        break;
                   case 1:
                        ((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
                        break;
                   return toReturn;
    }

  • Where/How do I programmatically build the component tree?

    Hi! I'm having a lot of problems trying to make my JSF application work...
    Here's the situation:
    - I have to display a form (questionnaire) consisting of a tree (form - subforms - sections - groups - questions - checkboxes/dropdowns...). Each of these parts are custom components, with custom renderers.
    - This display is only a small part of a wider application (so the custom ViewHandler solution seems impossible to me), and it is done in an imported jsp (using <jstl:import ...>). In this jsp, there is only one component, representing the "root" of the questionnaire, because the structure of the questionnaire is unknown at the beginning.
    - I need to build programmatically (in Java) the component tree of my questionnaire (according to the structure loaded from a database) and integrate it in the component tree of the whole application.
    - The problem is I can't get this to work properly in the JSF lifecycle (either the restoreState/saveState methods aren't called, or the "main" tree doesn't contain my "sub-tree" although everything is rendered properly...). I searched on a lot of forums, I tried a lot of solutions (new UIComponent() vs. application.createComponent(...) / create the tree in the component constructor vs. in the component renderer... ) but none of them seemed to meet my requirements, since it seems to be a tricky situation.
    So, does anyone knows how to achieve this? How and where to build my component tree?
    (ask me if a you need more information about my code!)
    Thanks in advance!!
    Adriano

    Bit_happens wrote:
    - I'm using the "createComponent" method to build my tree (instead of just calling the component constructor), is that right? For example:
    UISubform subformComponent = (UISubform) application.createComponent(UISubform.TYPE);
    //UISubform subformComponent = new UISubform();What is the difference with the plain constructor call?You are not implementation dependent then.
    - Apparently, I have to explicitly add the panelGroup to the component tree, or else it won't be part of the tree. Is that normal? Shouldn't JSF add it to the tree automatically when it finds it in the JSP? I have to do the following:
    UIComponent parent = facesContext.getViewRoot().findComponent("form_subview").findComponent("main_form");
    parent.getChildren().add(panel);
    panel.setParent(parent);- Is there a difference between creating the "sub-tree" in an ascending way, or in a descending way? I.e. first creating the leaves and then going up the branches until I plug the root component into the main tree, or first creating the root component and then going down the branches until all the leaves are created?No, there isn't.
    - I think my custom components themselves should be right, and they're declared in faces-config. It looks like the panelGroup doesn't renders its children, but it should by default, right? When I look at the rendered page source code, the panelGroup is empty:
    <span id="form_subview:main_form:formPanel"></span>- Do you think of anything else I should check? Any tricky setting I could have forgot?Try adding existing components to the panelGroup, e.g. HtmlOutputText. If that works, then I rather think there is a flaw in your component.

  • How to set Right Alignment for a JTable column

    Hi,
    I am using a JTable for displaying database records using AbstractTableModel. It works fine. But, for the numeric fields I want to make records right aligned using setHorizontalAlignment. I tested with TableColumn.setHorizontalAlignment but it ends up with an error. Is there a solution? Please help me. Thanks in advance.
    bhuvana.

    In you table cell renderer you can specify the alignment of the text.
    public class MyTableCellRenderer extends JLabel implements TableCellRenderer
    public MyTableCellRenderer
    setOpaque(true);
    setBackground(Color.white);
    public Component getTable.....(JTable table,Object value,......) //fill all these things
    setFont(table.getFont());
    if(value instanceof Float)
    setHorizontalAlignment(SwingConstants.RIGHT);
    setText(value);
    return this;
    This would set all the Floats to RIGHT alignment.
    Thanks,
    Kalyan

  • Right Align the Currency values in ALV report

    Hi Friends,
    I have developed a report and displayed the output using the ALV. I have columns for currency values in the output table.
    The fields for currency values are character fields. The values in the table for display, is properly right aligned (default for currency values). But in the output, the currency values are left aligned.
    Since I need blank lines in the output table after each entry, I have used the character fields in the output table so that I can clear them and append it to get the blank line.
    Please suggest me to get the currency values right aligned.
    Thanks in advance.

    try with this field in field catalog.
             just(1)        type c,        " (R)ight (L)eft (C)ent.
    for the currency field add this field too in field catalog. it will work.

  • How to remove and add the component to JFrame at runtime.

    Hi
    How to delete the JTabbedPane component from the Jframe at runtime and how to add the same component with different data at runtime.
    But the remaining components should not distrub.
    When i try to delete and add the component at runtime the remaing components are distrubed.
    when i minimize and maximize the screen, the components are adjusted. but i need a help on this without minimize and maximize the screen.

    Hi
    I am sending my code snippet, please look into this......i am doing the same even though i am not able to..................can u suggest anything seeing this code snippet.
    here one function called createtabpane (It creates the JTabbedpanes with the table information at runtime).
    private void getTimeSheetObj(String weekDate){
    //Object[][] rowObj=null;
    try {
    System.out.println("Inside the gettimesheet method try block");
    if(projTables!=null){
    for(int i=projTables.length-1; i>=0; i--){
    JTable jt = projTables;
    jTabbedPane_Main.remove(jt);
    System.out.println("Removing Table:"+i);
    jPanel_Tabbedpane.remove(jTabbedPane_Main);
    jTabbedPane_Main = new JTabbedPane();
    jTabbedPane_Main.revalidate();
    jPanel_Tabbedpane.revalidate();
    getContentPane().validate();
    getContentPane().repaint();
    jTabbedPane_Main.addChangeListener(new ChangeListener(){
    public void stateChanged(ChangeEvent ce){
    getTabbedPaneListenerValues();
    // this.setState(JFrame.ICONIFIED);
    // this.setExtendedState(JFrame.MAXIMIZED_BOTH);
    res = GetTimesheetResponseDocument.Factory.parse(new File("C:\\Narayana.xml"));
    response = res.getGetTimesheetResponse();
    proDets=response.getProjectDetailsArray();
    numOfPro = proDets.length;
    String taskDayValues[] = new String[8];
    System.out.println(numOfPro);
    proArr=new Object[numOfPro];
    Object[][] taskValues=null;
    for(int p = 0;p<numOfPro;p++){
    System.out.println("Inside1");
    taskDet = proDets[p].getTaskDetailsArray();
    taskValues = new Object[taskDet.length][8];
    for(int t=0;t<taskDet.length;t++){
    System.out.println("Inside2");
    taskValues[t][0] = (taskDet[t].getTaskName());
    taskValues[t][1] = (taskDet[t].getDay1HH()+":"+taskDet[t].getDay1MM()).toString();
    taskValues[t][2] = (taskDet[t].getDay2HH()+":"+taskDet[t].getDay2MM()).toString();
    taskValues[t][3] = (taskDet[t].getDay3HH()+":"+taskDet[t].getDay3MM()).toString();
    taskValues[t][4] = (taskDet[t].getDay4HH()+":"+taskDet[t].getDay4MM()).toString();
    taskValues[t][5] = (taskDet[t].getDay5HH()+":"+taskDet[t].getDay5MM()).toString();
    taskValues[t][6] = (taskDet[t].getDay6HH()+":"+taskDet[t].getDay6MM()).toString();
    taskValues[t][7] = (taskDet[t].getDay7HH()+":"+taskDet[t].getDay7MM()).toString();
    System.out.println("After taskvalues");
    proArr[p]=taskValues;
    createTabPanes(jTabbedPane_Main, proArr);
    System.out.println("outside");
    jPanel_Tabbedpane.add(jTabbedPane_Main);
    jTabbedPane_Main.getAccessibleContext().setAccessibleName("Proj");
    getContentPane().add(jPanel_Tabbedpane);
    pack();
    }catch(XmlException xe) {
    System.out.println("Inside the XmlException block");
    System.out.println(""+xe.getMessage());
    } catch(IOException ioe) {
    System.out.println("Inside the IOException block");
    System.out.println(""+ioe.getMessage());
    /* JOptionPane.showMessageDialog(null,
    "Values Displayed in the below tables",
    "Alert!",JOptionPane.ERROR_MESSAGE); */
    System.out.println("Initial JFrame Bounds:"+this.getBounds());

  • How do I Right-align TOC numbers if they're not

    Hello, i'm talking from Italy.
    I've a little question about TOC.
    I wrote my thesis for my degree, placing the TOC at page 5. Since this... no problems.
    Right now i finished writing and wanted to update the TOC. But... surprise... the page numbers doesn't right align as i would!!!
    I'd like to have this,
    | Title ...................1 |
    | Subtitle............2 |
    | Subtitle............6 |
    | Title..................19 |
    | Subtitle..........22 |
    ( Even without dots if it's not possible. The numbers should be aligned but here you can't see this. )
    But... i have this!!!
    | Title 1 |
    | Subtitle2 |
    | Subtitle6 |
    | Title19 |
    | Subtitle22 |
    it's such a DISASTER!
    Can i solve this problem? My university requires page numbers.
    Thank you.
    Message was edited by: giggionline

    Select the TOC by clicking in it. It will help you if you have Show invisibles on.
    Now you can align the number by pulling the small blue triangle on the ruler.
    !http://img686.imageshack.us/img686/7861/tocp.jpg!
    Now open the Inspector > T tab > Tabs > click on Leader button> choose leader

  • How can I automatically align the bottoms of two-page spreads in a long novel in CS3?

    I'm laying out a long novel in InDesign CS3. I've set the text to align to the baseline grid and have the keep options set to prevent widows and orphans. Because of these keep settings, often one page is a line shorter than the one facing it. Is there some way to set things up so that the longer page in a 2-page spread automatically breaks a line sooner, so as to match the shorter facing page -- or do I have to introduce page breaks manually, spread by spread?

    If you're the author, you might want to consider rewriting the annoying paragraphs. Perhaps changing a contraction to full words, or replacing full words with a contraction, for example. Yes, it's hard not to change meaning, so it's your call. If you have a good relationship with the author, you could consider suggesting the same thing.
    Other possibiliies that may not be acceptable options in your situation include experimenting with applying the single-line paragraph composer instead of the default multi-line composer, adjusting type and leading heights, and/or text frame size, uniformly all across the book, to see if a tiny tweak resolves all or most of the annoyances.
    The Auto-Size text frame feature just introduced in InDesign CS6 might work by setting it to a maximum and minimum height that differ by one line, "grow down from the bottom."
    Here's the dialog box:
    Search Google for terms like "InDesign CS6 auto-size text frame feature" without quotes for more info.
    [EDIT] Ooops, I just learned from Anne-Marie Conception's excellent free sample Lynda.com video tutorial that came up in the Google search I suggested above, that Auto-Size can't set a maximum frame height. So it might be tricky or impossible to find the right combination of keep lines together and other settings for your purpose of compensating for only one line of difference.[/EDIT]
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    JWKewet wrote:
    I'm laying out a long novel in InDesign CS3. I've set the text to align to the baseline grid and have the keep options set to prevent widows and orphans. Because of these keep settings, often one page is a line shorter than the one facing it. Is there some way to set things up so that the longer page in a 2-page spread automatically breaks a line sooner, so as to match the shorter facing page -- or do I have to introduce page breaks manually, spread by spread?
    Message was edited by: peter at knowhowpro

  • How do I use align="right" for text in a dl environment?

    I use a <dl> environment to control vertical line spacing extensively (thousands of pages).  Here is the objective:
    But I also need to have generation numbers, e.g. "2.2.1" right aligned on a defined width page.  I have tried various ways of achieving this using <div>, <span>, etc.  Each has unintended consequences.  The above is created using <table> in the <dt> line.  But W3C validator objects every time. 
    Here is my script:
    Or, if this is easier to read:
    <dt class="type_U_XXX"><table width="720" border="0" cellpadding="0">
      <tr>
        <td width="680">Johann Peter Bayer (*23.10.1716 Undenheim)</td>
        <td width="40" align="right">2.2.4</td>
      </tr>
    </table></dt>
    <dd class="col_0">Taufpate war Johann Peter Cohn, Gau-Odernheim.</dd>
    <dd class="col_0">Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <i>Anna Catharina Dapper aus Sörgenloch</i>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.<br /><br /></dd>
    <dt class="col_1">Kinder: (13)</dt>
    <dt class="type_U_XXXsX"><table width="680" border="0" cellpadding="0">
      <tr>
        <td width="640">Johann Mathäus Bayer (*03.04.1745, +02.10.1746 )</td>
        <td width="40" align="right">2.2.4/1</td>
      </tr>
    </table></dt>
    <dd class="col_1">Taufpate war Joh. Mathäus Lahr.<br /><br /></dd>
    How can I right-align the numbers in a <dl> environment?  It has to be in the <dt> line, not the <dd>.  Using the <dd> line indents the left margin, which is not acceptable. 
    Thanks for your help.  Please be very explicit.  Please show me the line or two of script that is needed, don't just say for example, use a <div>.

    I love your use of the definition list   However, nesting <table> in <dt> is obviously not good.
    HTML
    <dl>
            <dt>
                <div class="name">Johann Peter Bayer (*23.10.1716 Undenheim)</div>
                <div class="id">2.2.4</div>
            </dt>
            <dd>
                <p>Taufpate war Johann Peter Cohn, Gau-Odernheim.</p>
                <p>Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <em>Anna Catharina Dapper aus Sörgenloch</em>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.</p>
            </dd>
            <dt>
                <div class="name">Johann Peter Bayer (*23.10.1716 Undenheim)</div>
                <div class="id">2.2.4</div>
            </dt>
            <dd>
                <p>Taufpate war Johann Peter Cohn, Gau-Odernheim.</p>
                <p>Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <em>Anna Catharina Dapper aus Sörgenloch</em>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.</p>
            </dd>
    </dl>
    CSS
    dl {
    width: 720px;
    dl > dt > div.name {
        float: left;
        width: 680px;
    dl > dt > div.id {
        float: left;
        padding: 0 0 0 10px;
        width: 30px;
    dl > dd {
        clear: left;
    You may need to tweak the CSS a bit but you get the general idea.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • How to right align JTextField content

    Is there a way to right align the content of a JTextField?

    In the JDK1.4.2 API for JTextField, the are 7 methods that start with "set...". It shouldn't be to hard to guess which one would be used for right aligning the contents of the JTextField.

Maybe you are looking for