Centre text in a "region"

Howdy,
Forgive my ignorance, I'm jus' a simple compooder pwogrammer.
How do you paint some text centred in a jPanel (for instance).
What I can't figure out is how to get the font height, and the width of this string... paintComponent takes a Graphics object right... and that graphics has a current Font, right... so How do I get the height of the font (as user scale), and the width of a given string as it appears in that font (in user scale)?
I've been lost in the API doco for about for about an hour, and I think I'm gonna cry ;-)
It took me 15 minutes to work out the the Graphics passed in isa Graphics2D FFS!
Cheers, Keith.

Keith, if using a JTextPane suits your purpose, you can center-align the text via methods of the StyledDocument and StyleConstants classes. This is a (slightly modified) code I posted on another thread some time ago.import javax.swing.JFrame;
import javax.swing.JTextPane;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.StyledDocument;
public class TestAlignment {
    JTextPane textPane;
    public void createEverything (){
        textPane=new JTextPane ();
        StyledDocument doc = textPane.getStyledDocument ();
        addStylesToDocument (doc);
        // Doesn't work if you comment the next line
        textPane.setLogicalStyle (doc.getStyle ("bold"));
        try{
            doc.insertString (doc.getLength (),
                    "Keith Corlett",
                    doc.getStyle ("bold"));
        } catch (BadLocationException ble) {
            ble.printStackTrace ();
        JFrame frame=new JFrame ();
        frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
        frame.add (textPane);
        frame.setSize (400,300);
        frame.setVisible (true);
    protected void addStylesToDocument (StyledDocument doc) {
        Style def=new StyleContext ().getStyle (StyleContext.DEFAULT_STYLE);
        Style heading = doc.addStyle ("bold", null);
        StyleConstants.setFontFamily (heading, "SansSerif");
        StyleConstants.setBold (heading, true);
        StyleConstants.setFontSize (heading,30);
        StyleConstants.setAlignment (heading, StyleConstants.ALIGN_CENTER);
        StyleConstants.setSpaceAbove (heading, 10);
        StyleConstants.setSpaceBelow (heading, 10);
    public static void main (String args[]){
        TestAlignment pane=new TestAlignment ();
        pane.createEverything ();
}For painting text centered on any Component, with word wrap when the width does not permit displaying the text in one line, the TextLayout class is useful. Here's an example, resize the frame narrower than the text to see it in action:import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.font.FontRenderContext;
import java.awt.font.LineBreakMeasurer;
import java.awt.font.TextAttribute;
import java.awt.font.TextLayout;
import java.text.AttributedString;
import java.util.ArrayList;
import javax.swing.JComponent;
import javax.swing.JFrame;
public class LineBreak extends JComponent {
    Font font = new Font ("TimesRoman", Font.PLAIN, 14);
    String breakText;
    ArrayList<TextLayout> layouts = new ArrayList<TextLayout> ();
    public LineBreak (String inText) {
        breakText = inText;
    public void breakLines (FontMetrics metrics) {
        if (0 < breakText.length ()) {
            final AttributedString attStr = new AttributedString (breakText);
            attStr.addAttribute (TextAttribute.FONT, font);
            final LineBreakMeasurer measurer =
                    new LineBreakMeasurer (attStr.getIterator (),
                    new FontRenderContext (null, true, true));
            TextLayout layout;
            while (null != (layout = measurer.nextLayout (getWidth ()))) {
                layouts.add (layout);
    @Override
    public void paintComponent (Graphics g) {
        Graphics2D g2 = (Graphics2D) g;
        FontMetrics metrics = g2.getFontMetrics (font);
        layouts.clear ();
        breakLines (metrics);
        int textHeight = metrics.getHeight ();
        int top = textHeight;
        for (TextLayout layout : layouts) {
            layout.draw (g2, (float) (getWidth() - layout.getBounds ().getWidth ()) / 2, top);
            top += textHeight;
    public static void main (String[] args) {
        String inText;
        if (args.length > 0) {
            inText = args [0];
        } else {
            inText = "Keith likes sweets.  Most of all, Keith likes icecream and chocolate.";
        JFrame frame = new JFrame ("Test Frame");
        frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
        frame.setSize (400, 200);
        frame.setLocationRelativeTo (null);
        frame.add (new LineBreak (inText));
        frame.setVisible (true);
}Yup... this one too is slightly modified from something I posted on another thread ;-)
cheers, db

Similar Messages

  • Adding text to editable region creates space in the rest of my layout

    I created my layout in PS, sliced the images and then imported to DW (html and images).
    Layout looks great.
    I created editable regions in the template I created from the .html
    One I start inserting text into these regions, my container moves and it throws the rest of the layout off by adding space between the editable region and the area above it (a big black line horizontally through the page).
    Is there a way to keep the container/editable region from moving or growing with the text so that it doesn't change my layout?
    On a side note, this change doesn't appear in live view. When I preview in browser, Safari layout looks great, but text doesn't appear. In firefox, text appears, but layout is a mess.
    Here is the code from the editable region to which I am trying to add text:
    <!-- TemplateBeginEditable name="main_content_area" -->
            <div id="site_layout_contentmain">Content for  id "site_layout_contentmain" Goes Here</div>
          <!-- TemplateEndEditable --></td>
    ANY help is GREATLY appreciated!!!!!

    MHarvey2001 wrote:
    Yes, the design is appearing to pull apart when I add content, but only in the Firefox preview.
    If it pulls apart in Firefox, chances are it pulls apart in all browsers when text size is increased.
    The problem with Photoshop code is that it is a) rigid, b) unstable and c) invalid.  
    To illustrate, run your code through the on-line validation tools below.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Photoshop is OK for designing quick comps to show the client but they won't hold up on a real site.
    IMO, the benefits of starting over far outweigh the inconvenience.
    HTML & CSS Tutorials - http://w3schools.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Centre text in a JOptionBox

    Can any one tell me how to centre text in the box. The bit i want centred is the "Click on the OK to start".
         JOptionPane.showMessageDialog(null,"The game has three rounds loosing a dice at the end of each round."+"\n"+
                                            "You are able to roll the dices agian at the end of each round but only ones"+"\n"+"Click on 'Ok' to start");

    You can pass a component rather than a string, so your best bet is to pass a JPanel containing a JLabel per line. Centreing those should be easy.

  • Centre text

    How do I centre text in within the border of a multiline Dynamic text field?

    assign its autoSize property to "center"

  • Apex 4.1 different font text in Reports Region and Interactive reporting

    Hi everybody,
    In my APEX 4.1 page, I have two regions using the same ''Reports region" Template but font text are different. Why The first region is an interactive reporting. The second it's a report. I know that each one has his own data for sure but the same region template .Spaces between colons are different. Is it normal ?  I want to have the same font text for the two regions.
    Thanks in advance. Bye.

    Apex4.0+HTML_DB1.6 wrote:
    Theme 13 is not an APEX 4.x theme ? How I can know that is one of this serie ?
    Legacy themes are flagged with a "*" in the theme gallery. Standards mode themes are not. (I don't have access to APEX 4.1 at present to be able to identify specific themes.)
    Properties of interactive report components, is it possible to take a look on this properties or it's a "black box" ?
    You can either look in the global APEX style sheet, or (probably more usefully) use a browser web inspector to examine the CSS properties of the IR components in the page.

  • Centre text and image side by side.

    Hi, I was able to centre two images side by side fine with my old website page but once I changed one of the images into text I cant seem to align them side by side anymore.
    Old (image next to image):
    http://dkphotos.net/About/About.html
    New (text next to image):
    http://dkphotos.net/AboutNew/About.html
    Any help would be very appreciated.
    HTML:
    <!doctype html>
    <html>
    <head>
    <link rel="shortcut icon" href="favicon.ico" >
       <link rel="icon" type="image/gif" href="../../animated_favicon1.gif" >
    <title>About</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="layout.css">
    <!--Latest jQuery Core Library-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
              <script type="text/javascript" src="//code.jquery.com/jquery-latest.js"></script>
              <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
    <script src="js/jquery-1.7.2.min.js"></script>
    <style type="text/css">
    <style>
    body,td,th {
                  font-family: "josefin-slab";
              font-style: normal;
              font-weight: 400;
              font-size: 15px;
              color: #444444;
    /**LINKS**/
    a {
    font-family: "Josefin Slab";
    font-size: 15px;
    font-weight:400;
    text-decoration:none;
    color: #777777;
    a:link {
              color: #444444;
              font-style: normal;
              font-weight: 400;
              font-family: josefin-slab;
              font-size: 15px;
    a:visited {color: #444444;}
    a:hover {color: #60baec;}
    a:active {
              color: #444444;
              font-style: normal;
              font-weight: 400;
              font-family: josefin-slab;
              font-size: 15px;
    a:focus {color: #60baec;}
    ul {
    list-style:none;
    margin:0;
    padding:0;
    li {float:right; padding-right: 30px}
    body,td,th {
              font-family: josefin-slab;
              font-style: normal;
              font-weight: 400;
              font-size: 15px;
              color: #444444;
    abou
    p1 {
              font-family:josefin-slab;
              font-style:normal;
              font-weight:400;
              font-size:18px;
              color:#444444;
    p2 {
              font-family:josefin-slab;
              font-style:normal;
              font-weight:400;
              font-size:18px;
              color:#444444;
    </style>
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
    <script>var __adobewebfontsappname__="dreamweaver"</script>
    <script src="http://use.edgefonts.net/josefin-slab:n1,n4:default.js" type="text/javascript"></script>
    </head>
    <body>
    <div class="wrapOverall">
    <div class="container" id="headerContainer">
       <div class="header"><a href="../Home/Home.html"><img src="images/Home-Page_03.png" width="448" height="69" class="logo" id="Logo" onMouseOver="MM_swapImage('Logo','','images/home_03-roll-over.png',1)" onMouseOut="MM_swapImgRestore()" alt="Dovydas Kaltanas"/></a></div>
      <div class="navMain">
              <div class="navMain">
    <ul class="navBar"
        style="width: 530px; float: right; font-weight: 400; font-family: josefin-slab; font-style: normal;">
                        <li><a href="Contact.html">CONTACT</a></li>
                        <li><a href="">BLOG</a></li>
                        <li><a href="../About/About.html">ABOUT</a></li>
                        <li><a href="">PRICING</a></li>
                        <li><a href="../Portfolio/Portfolio.html">PORTFOLIO</a></li>
                        <li><a href="../Home/Home.html">HOME</a></li>
              </ul>
            </div><!--END navMain-->
    </div><!--END logo-->
    </div><!--END header-->
    <!--MAIN CONTENT-->
    <div id="Container">
    <div id="leftAbout">
    <p1>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </p1>
                                  <p2><br /><a href="../CurriculumVitae.pdf">Curriculum Vitae</a></p2>
    </div></p></div>
    <p></p>
    <p><div id="rightAbout"><img src="images/profile.jpg" width="450" height="736">
    <p></p>
    </div>
    <!-- END MAIN CONTENT-->
    <div id="containerFooter">
    <div id="Box1" style="font-family: 'Josefin Slab'">
    <p>All content <span style="font-size: 20px">©</span> DKphotos 2013</p>
    </div> <!--end Box1 -->
    <div id="Box2">
    <p><script type="text/javascript">
    // BeginOAWidget_Instance_2149022: #OAWidget
              var urlToLike = 'http://www.facebook.com/DKphotos.net';
              if (urlToLike == '') {
                urlToLike = window.location.href;
          urlToLike = encodeURIComponent(urlToLike);
          var font = encodeURIComponent('arial');
    document.write ('<iframe src="http://www.facebook.com/widgets/like.php?locale=en_US&href='+urlToLike+'&layout=button_cou nt&show_faces=false&width=450&height=150&action=like&font='+font+'&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; border-color:#ffffff; overflow:hidden; width:450; height:150"></iframe>')
    // EndOAWidget_Instance_2149022
      </script>
      </div><!--END fbLike-->
    </div> <!--end Box2 -->
    <!--float clearing-->
    <hr class="clearing" />
    </div> <!--end Container -->
    </div><!--END wrapOverall-->
    </body>
    </html>
    CSS:
    @charset "utf-8";
    /* CSS Document */
    body {
              background-image:url(images/bg_body.jpg);
              background-color:#ffffff;
              background-attachment:fixed;
              background-position:top;
    .wrapOverall {
              width: 1920px;
              display: inline;
    img { border: 0; }
    ul.navBar {
      margin: 18px 0px 0px 0px;
      padding: 0;
      white-space: nowrap;
      width: 950px;
      overflow-x: auto;
      display:inline-block;
    ul.navBar li {
              display:inline;
    .header img.logo{
              float: left;
              margin: 0px 15px 0px 15px;
    .container {
              min-width: 1050px;
    #Container {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    border: 0;
    width: 900px;
    margin:0 auto; /*centered*/
    overflow:hidden; /*float containment*/
    #Container {
         clear:both;
         width: 100%;
         min-width: 900px;
    #left {
              width: 300px;
              min-height: 550px;
              margin-bottom: 200px;
              border: 0;
              /*to reduce float drop issues in IE*/
              word-wrap: break-word;
              margin-left: auto;
        margin-right: auto;
    #ContentBox1 {
              width: 450px;
              min-height: 550px;
              margin-bottom: 200px;
              border: 0;
              /*to reduce float drop issues in IE*/
              word-wrap: break-word;
              margin-left: auto;
        margin-right: auto;
    /**Clear floats after the boxes**/
    .clearing {
    clear:both;
    visibility:hidden;
    line-height:0;
    font-size:1px;
    display:block;
    #containerFooter {
    width: 100%;
    min-width: 650px;
    max-width: 100%;
    color:#444444;
    font-style:normal;
    font-weight:400;
    font-family:josefin-slab;
    font-size:15px;
    text-decoration:none;
    #containerFooter {
    font-family:josefin-slab;
    border: 0;
    margin:0 auto; /*centered*/
    overflow:hidden; /*float containment*/
    #Box1, #Box2 {
              width: auto;
              min-height: 10px;
              border: 0;
              /*to reduce float drop issues in IE*/
              word-wrap: break-word;
    #Box1 {margin-left: 8px; float: left;}
    #Box2 {margin-left: 20px; float: left;}
    /**Clear floats after the boxes**/
    .clearing {
    clear:both;
    visibility:hidden;
    line-height:0;
    font-size:1px;
    display:block;
              #containerFooter {
                        width:100%;
                        float:left;
                        #containerFooter {
              position: fixed;
              bottom: -145px;
              z-index: 500;
              background-color: #FFF;

    Overall width of the website is 1920px???? That's way too wide.
    Anyways you would need to 'float' the leftAbout and rightAbout containers if you want the text to be to the left of the image:
    #headerContainer {
        overflow: hidden;
    #leftAbout {
        float: left;
        width: 400px;
    #rightAbout {
        float: left;
        width: 450px;
    #containerFooter {
        clear: both;
    I'll leave you to ajdust the width of the text container - leftAbout

  • Quick qn on displaying text fields from region.

    My doubt is that i have a page where
    there are 2 Regions..top and bottom Regions
    we can enter a person's details on the bottom region and hit submit..then that person get stored in the database and visible on the top region
    i have a situation where i need to grab these people from the top region and display in side email message
    my text field in the bottom region is not constant..so i am not able to capture them..
    Its like this:
    TOP REGION:
    tommy lee Male address 1
    kanan jones Male address 1
    babu lee Male address 1
    Note: Sometimes there may be only one person..sometimes more than 1 like 2 or 3
    Bottom Region:
    text fields to enter (we can enter for only one at a time)
    ..I am able to grab it from the table in the DBase..But how can i get it to the email message..
    Appreciate your help
    thanks
    kp

    You can select the entire field and use the cold fusion left
    function. However, it would be more efficient to simply select
    select the 1st 20 characters in your query. How you do this depends
    on the db you are using.

  • How to hide "Note that the search is case insensitive" text from Query Region

    Hi,
    When create a search page with Query region : Autocustomizationcriteria mode, page is showing automatically "Note that the search is case insensitive" text is showing automatically.
    this is not needed. can you please let me know how to hide this one from page.
    Regards,
    Ram

    Check this link:
    https://forums.oracle.com/message/9227812#9227812
    --Sushant

  • Horizontal alignment for Text of Header Region

    Hi,
    The content of Text property for a header Region appears left aligned by default.
    Is it possible to set horizontal Alignment = Middle(of the Page)For the Item Type, Header I do not see any property called Horizontal Alignment in the Property Inspector.
    Thanks,
    Gowtam.

    Header component does not expose any property to align the text.
    Can you check whether, the following layout helps.
    TableLayout (Horizontal Alignment - center)
    |
    -- RowLayout (Horizontal Alignment - center)
    |
    --- CellFormat (Horizontal Alignment - center)
    |
    ---- Header

  • Change the text of a region when mouseover an image

    Well I have a table of images (4x3) and above it I want the
    description for each product to display when the user mouses over
    the image. How can this be done so that it will work in both IE and
    Firefox?
    Thanks

    Use the DW Behavior called "Set Text", to set the text of
    that display
    region to any value you want.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Tucker Companies" <[email protected]> wrote
    in message
    news:g2oosr$9tk$[email protected]..
    > Well I have a table of images (4x3) and above it I want
    the description
    > for
    > each product to display when the user mouses over the
    image. How can this
    > be
    > done so that it will work in both IE and Firefox?
    >
    > Thanks
    >

  • Vertically centring text

    I'm looking to vertically centre some text in a dynamic text
    field... is that possible, and if so, could anyone help me work it
    out?
    Thanks in anticipation.
    Andy
    (Also posted under General Discussion)

    I'd see two ways to solve it, the first would be to determin
    the height of the text in the text field and than place the
    textfield on the position inside the graphical field accordingly.
    the second would be to determin the number of line your text
    has in the tecxtfield (scroll properties, a bit tricky) and add te
    appropriate number of empty lines a the start of the string.

  • How to centre text?

    I have a simple program - which works - but would appreciate any help on how I might change the colour of the text which appears in the text (not on the click button) and how I might centre the text. Is left justified a default value?
    Many thanks for any help
    import java.awt.Color;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.*;
    class SwingUI extends JFrame
    implements ActionListener {
    JLabel text, clicked;
    JButton button, clickButton;
    JPanel panel;
    private boolean _clickMeMode = true;
    SwingUI(){ //Begin Constructor
    text = new JLabel("I'm a Simple Program");
    button = new JButton("Click Steve");
    button.addActionListener(this);
    panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setBackground(Color.white);
    getContentPane().add(panel);
    panel.add(BorderLayout.CENTER, text);
    panel.add(BorderLayout.SOUTH, button); } //End Constructor
    public void actionPerformed(ActionEvent event){
    Object source = event.getSource();
    if (_clickMeMode) {
    text.setText("Steve Clicked");
    button.setText("Click Again");
    _clickMeMode = false;        }
    else {         
    text.setText("Am I a Simple Program?");
    button.setText("Click Don!");
    _clickMeMode = true;
    public static void main(String[] args){
    SwingUI frame = new SwingUI();
    frame.setTitle("Example");
    WindowListener l = new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.addWindowListener(l);
    frame.pack();
    frame.setVisible(true);
    }

    It's in the documentation.
    use:
    text.setForeground(fg);
    text.setHorizontalAlignment(SwingConstants.CENTER);where fg is an object of type color.Hello
    Many thanks for your reply. I'm grateful. I am only new to this, so a lot of it is just hit and miss at the moment. For instance I copied and pasted what you proposed and it never worked. I wasn't sure if I had pasted it in the right place. Then I typed in color.blue (where your fg was) and it still didn't work. So I then tried Color.blue (Color is easy for us to make mistakes with because we would use colour or Colour, normally - I'm from the UK), and hey presto! And the text was centred!
    You mention documentation. If I digested that, maybe I could stop bothering people like yourself! Is it the normal JDK documentation?
    Anyway, many thanks again - I feel as if I've learnt something tonight.
    Best wishes

  • Paint type application for centred text

    Looking for the above as I am creating a jpeg and want to add text and be able to control where that text is on the jpeg.
    Tried Paintbrush 1.2 but it is not easy to control the text.
    Anyone any suggestions..... looking for freeware application ( or something I already have within Mac OSX and didn't realise ! )

    I use Preview to do it.
    First, add the Annotate tools to the Tool Bar:
    View > Customize Tool Bar
    Add the Annotate tools
    Second, click and hold on the Annotate Tool in the Tool Bar until you see the Note Tool.
    Click on the Note tool.
    Use the mouse to draw a rectangle in the picture.
    You will see the word "text" centered in the rectangle.
    Select the word text and type what you need.
    You can choose fonts and colors.
    Good luck.
    Roberto

  • Tabs not working as expected with centred text

    Hi,
    I'm trying to make a contents page in Indesign but having trouble with aligning the text correctly.
    I want the page titles to be centered but when I select the paragraph style onto centered the text moves away from the Tab stop keeping it in the right place - - the result of this is each page title in the column is in a slightly different place.  If I leave the paragraph style on left align the page title stays by the tab stop where I expect it to but I don't like how it looks!
    Note in the examples below how in the centered example the S has moved over to the right away from the Tab stop.
    Any suggestions?
    Many thanks,
    Adrian
    E.g.  left aligned
    e.g. 2  centered

    My first thought is that tabs don't mix well with centered text and you should use one or more fixed-width spaces between the number and the title, but I'm not really sure what look you want.

  • Position text box  in centre part of region

    Hi
    I want to position of componentes (text box, buttons, combo box) in region at center.
    i.e if i have region having only two text boxes and i want to put it in centre part of form/region.
    How it can be done, do i need to write any code or from APEX it can be done?
    Thanks in advance

    For information, <center> tag is deprecated.
    Use <div align="center">...</div>or CSS (text-align, margin, etc...) instead.
    Yann.

Maybe you are looking for

  • 2006 MacBook Pro

    So my 2.33 late 2006 MBP recently started displaying jagged artifacts on startup, and i've narrowed the problem down to the ATI X1600 graphics card, or something related to that in the logic board. Obviously, the machine is far out of warranty, but a

  • Lenovo S10-3t Part of the touchscreen not Working

    Hi, I have lenovo s10-3t with win 7 home premium. Recently I found out that part of my touch screen is not working. I tried calibrating and resetting the calibration data, but no success in getting the touch screen working correctly. Then I reinstall

  • Hi, How to save UTF-8 encoded string into Mysql DB with jdbc?

    Mysql doesn't support UTF-8, right? is there any way we can bridge it?

  • Publishing changes only to Folder

    I am wondering if anyone can tell me how to publish only changes to a folder. I takes a while each time I make a slight change or correct an error to upload the entire site to my .com server. I am using Transmit FTP client which is slick but it has t

  • 4200/128 video noise

    Hi,  Wonder if anyone can help me with a problem I get with S-Video In. I get a good picture but there is a line of noise at the top of the picture that I can only describe as video noise(?) It may be data within the video stream, but it's annoying.