Component alignment issue

Hello guys.
I have a JPanel with GridLayout with dynamic number of rows and 1 column. Then at each row I insert a JPanel which looks like this:
text1 = |_________________| <- 1st JPanel
text2 = |_________________| <- 2nd JPanel
text3 = |_________________| <- 3rd JPanel
and so on. These places |____| are JFormattedTextField's. The thing is that they (TextField's) are not exactly aligned, one is like 1 mm to the right, second one is 1 mm to the left. Even '=' are not "exactly" aligned. Text's displayed before '=' are exactly of the same length (ie. they have exactly the same number of characters). Now the problem is with displaying text I guess, because 'e' takes a litte more space on the screen then for e.g. 'k'. Is there any way to fix this alignment issue?

Thank you very much, it worked of course :-)

Similar Messages

  • Component Alignment issues.

    Hello,
    I am having a very difficult time aligning my components along the y Axis. I have a JFrame with a BorderLayout. A JTabbedPane in the center of the Frame with a BoxLayout.PAGE_AXIS. Then I have a JScrollPane in a tab. Then a JPanel is added to the JScrollPane. Finally, I add some radio buttons and a JTextField to another JPanel which is added to that last Panel. I keep adding different panels to the other JPanel and each one has a JTextField with a different width. I want to keep all the radio buttons aligned to make it look nice. How would I do that?
    I tried adding BoxLayouts to every Panel and setAlignmentY (and X) to Component.RIGHT_ALIGNMENT and nothing seems to work. The tutorials dont go into much detail about alignment either. Thanks for any help.
    -Marcus

    I tried adding a simple JLabel to see if the alignment on that would work and it did. Is there a problem with aligning whole Panels with each other?
    Thanks,
    Marcus

  • Applications Treetable nodestamp column component alignment issue

    Hi,
    We have a requirement to place the output-text left aligned and icon right aligned in the node-stamp column of the tree table.  Any help greatly appreciated.
    Thanks,
    Nagesh

    Nagesh, please tell us which jdev version you are using.
    What have you tried so far?
    How about putting a panelStretchLayout into the nodeStamp and put the text into the left  facet and the image into the right facet and a spacer into the center?
    Timo

  • OBIEE 11g Calendar alignment issue

    Facts: OBIEE 11g - 11.1.5 on Windows 2003 server.
    There's an alignment issue going on with OBIEE calendar, wich happens only when the month is october. For all other months, the calendar is displayed properly. It does not depend on the year. You may change the year and select October, you'll get the error.
    You might see what happens on the link below.
    http://img210.imageshack.us/img210/7876/firefoxds.jpg
    This behavior may occur when using IE9 (both using compatibility mode or not), Mozila Firefox and Google Chrome.
    I've looked over Metalink and the forums and could not find any information about this error.
    Any tips?!
    Thanks!
    Marcos
    Edited by: BI_Creation on Dec 1, 2011 11:37 AM
    Edited by: BI_Creation on Dec 1, 2011 11:40 AM

    Hi there. Does anybody noticed this issue on calendars?! That only occurs when the month is october....
    Just updating, the correct version of OBIEE is 11.1.1.5.0.
    Thanks in advance.
    Marcos

  • JCA Binding Component connection issue in the Oracle Order Demo Application

    Hi,
    I setup the Oracle Fusion Middleware. I also deployed the Oracle Fusion Order Demo Application in the soa_server. I placed the order in the store front web.I initiated the webservice (OrderBookingService) and found the below error in the soa_server_diagnostic log file.
    =====================================================================================================================================
    Caused by: BINDING.JCA-12563
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Write' failed due to: JCA Binding Component connection issue.
    JCA Binding Component is unable to create an outbound JCA (CCI) connection.
    OrderBookingComposite:USPSShipment [ Write_ptt::Write(body) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510
    JCA Resource Adapter location error.
    Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/>
    The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/file/FODFileAdapter'.
    The reason for this is most likely that either
    1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or
    2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/file/FODFileAdapter. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR).
    Please correct this and then restart the Application Server
    The invoked JCA adapter raised a resource exception.
    =====================================================================================================================================

    Thanks Guys.
    I resolved the issue.
    The issue is that FileAdapter for FulFillment mediator is missing.
    Solution 1:
    File adapter connection factory needs to be created via the weblogic console
    The details below:     
         JNDI Name: eis/file/FODFileAdapter
         controlDir          java.lang.String     /tmp/control
         inboundDataSource     java.lang.String     jdbc/SOADataSource
         outboundDataSource     java.lang.String     jdbc/SOADataSource
         outboundDataSourceLocal     java.lang.String     jdbc/SOALocalTxDataSource
         outboundLockTypeForWritejava.lang.String     oracle
    Solution 2:
    seedFodFileAdapterResources target in $FOD_HOME/bin/common-sca-tools.xml needs to be executed to create the file adaptor.
    Thanks.
    Ilayaraja

  • More alignment issues

    hi,
    I'm hardly an expert - but I have made great strides because of helpful people who throw me a hint.
    my site: www.kirarmerica.com
    I still have JUST a FEW alignment issues.  I like to have everything centered, so now I am just down to my spec sheets.
    I know that they might not be configured ALL the same, but I am hoping I can change a few things
    please look at Kira America | Products
    click on any spec sheet and you will see that the headers menu and sometimes the footer stays centered, but the spec info jumps to the  left of the page.
    I've found the correct .css to edit.  but I cant quite figure out how to align the columns vertically on the page.
    for example if I put a margin on #right_column it put it in the right spot, but then the rest of the content jumps all over the page.
    any hints would be helpful!

    These changes will center content in white area
    #container h1, #container h2, #container h3, #container h4, #container h5, #container h6 {
        border-bottom: 1px solid #DEDACB;
        padding-bottom: 8px;
        text-align: center;
    .excel214 {
        border: medium none;
        color: #000000;
        font-family: Calibri,sans-serif;
        font-size: 11pt;
        font-style: normal;
        font-weight: 400;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1px;
        padding-right: 1px;
        padding-top: 1px;
        text-decoration: none;
        vertical-align: bottom;
        white-space: nowrap;

  • Alignment issues in my smartform

    Hi Gurus,
    I am facing alignment issues in my smartform .
    My Output with LP01differs from that of Logica Printer LOCAL.Kindly throw some light on the same.
    Deepak

    Hello,
    Please check with the basis that FONT that you are using are installed in both the printers.
    This situation happens most when you have imported a new font into SAP system, as a printer is not configured for that Font output differs.
    Thanks,
    Jayant

  • SAP script printout alignment issue

    Hi Experts,
    I have facing one Script Printout Alignment issue.
    SAP Script Form printing some Values in Table format.
    While debugging( in debug mode ), I am getting the correct Alignment ( Proper table format with values ).
    But in printout the Alignment( The vertical and horizontal lines are not printed properly ) is not correct.
    Thanks in Advance.

    HI Glen Anthony,
    I am not using any printer details.
    from the Spol (SP01) I am checking the print priview.
    Success in debug mode but not in Print.
    Please suggest.
    Thanks

  • BoxLayout alignment issue

    Hello,
    Can someone please explain why my JPanel with a BoxLayout will not align the components to the left? Can I not use the BoxLayout with a JPanel? If not, is there another LayoutManager I can use that will display the component aligned to the left going downward?
    Container pane = this.getContentPane();
    pane.setLayout( new BoxLayout( pane, BoxLayout.Y_AXIS ) );
    //the components in this panel will not align to the left
    //the components are indented
    JPanel aPanel = new JPanel();
    aPanel.setLayout( new BoxLayout( aPanel, BoxLayout.Y_AXIS ) );
    JLabel textLabel = new JLabel("test");
    aPanel.add( textLabel );
    //this panel aligns correctly
    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout( new FlowLayout( FlowLayout.LEFT ) );
    JButton okButton = new JButton( "OK" );
    okButton.addActionListener( new OkButtonListener() );
    buttonpanel.add( okButton );
    pane.add( buttonPanel ); //aligning to the left of the frame correctly
    pane.add( aPanel ); //indented 15 spaces from the left of the frame?
    Thank you.

    1) Use the "code" formatting tags when posting code, so the code retains its original formatting
    2) Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html]How to Use the Box Layout. It explains how the "X Alignment" of a component affects positioning.

  • Alignment Issues between dreamweaver and browser

    Hi
    Hoping someone can help, i'm trying to learn how to make
    better sites with advanced tools like apDIV's but seem to be
    running into an alignment issue. When I make the html file in
    dreamweaver I seem to have to off set the images and div tags
    inorder for the site to show up aligned properly in firefox,
    explorer, etc. I'm thinking there might be a problem in the actual
    code causing this but am not good enough yet to find it or the
    problem, any ideas or guidence would be greatly accepted. below if
    the links work is the difference I see between dreamweaver and when
    its launched in a browser.
    DreamweaverScreen
    BrowserScreen

    > over a centered frame
    You are not using frames - that's a table.
    Yes - there's a way to do this, but it will involve your
    working in code.
    Make your page left aligned by removing any centering.
    Then position your layer so that it is properly located over
    the table.
    Change this -
    </head>
    to this -
    <style type="text/css">
    #wrapper { width:760px; margin:0 auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser
    window without */
    /* horizontal scrollbars. */
    </style>
    </head>
    (you may need to adjust this width so that it's consistent
    with the width of
    your centering table)
    change this -
    <body ...>
    (the ellipsis represents any other attributes that might be
    mentioned in the
    body tag, and SHOULD NOT BE INCLUDED EXPLICITLY!)
    to this -
    <body ...>
    <div id="wrapper">
    and this -
    </body>
    to this -
    <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.
    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
    ==================
    "Vinx21" <[email protected]> wrote in
    message
    news:ge9t3e$92s$[email protected]..
    > thanks for the help osgood, I see now what my problem is
    and am just
    > wondered
    > if there was a way to place the absolute layer over top,
    in the right
    > position,
    or will have i have to remake one of the elements a
    > different way???
    >
    > thanks again, dave
    >

  • Alignement issue when exporting to PDF

    Hello,
    I'm having some alignment issues when exporting an InDesign file to PDF.
    I have a couple of square pictures, touching eachother at the edges. These are aligned bang on in InDesign (the lines overlap), but when exporting to a PDF and viewing in there, it seems that some seem to jump up slightly.
    Is this just a display issue or a setting issue when exporting to PDF?
    Thanks
    Benny

    The detail is cropped too tight for me to tell how many photos are intersecting there. Is there a vertical intersection as well? If not, I think you're looking at a very slightly non-rectangular frame, if there is, then you might still be looking at a non-rectangular frame, or the frames are not perfectly aligned, which doesn't surprise me if you snapped to a guide -- I find that less than 100% reliable since CS6.
    Presuming that you've zoomed in to show us the problem, that's probably a single pixel misalignment and you'd be very hard pressed to see it in printed output without a loupe.
    You can check the bottom edge of the top photo, and the top edge of the bottom photo(s) for being out of horizontal by using the direct select tool to select the corner points and seeing if the y-coordinate is the same on both sides of the frame.
    My printer tell me to always overlap frames, rather than butting them, for trapping, for what that's worth, but I don't always do what he says, and I've never had a problem.

  • CS5 HDR pro two photos alignment issue

    Although I really enjoy the new tool, I'm having trouble aligning two photograph when I open then through the HDR pro tool.
    Why is alignment of two photos so bad in HDR pro and perfect if you align the two same photos as two layers? I've even tried reopening the same files over and over and get different results each time in HDR pro.
    In view of this, shouldn't there be a realign button in the slider adjustment screen, or options for alignment, such as Use the regular auto-align?
    Since alignment works fine with layers, is it possible to have an option to use layers as a starting point for HDR pro instead of opening saved photos only? I realize this probably might not give perfect results as just fixing the automatic alignment issue...
    But hey, I'm just trying to find a workflow around this if I didn't have my tripod with me at time of shoot... and I shot only two photos to composite.

    Hi Chris,
    thanks for looking into this matter. Where do you want me to send the files (over 50 megs zipped).. they're CR2 files...
    Date: Fri, 28 May 2010 14:38:51 -0600
    From: [email protected]
    To: [email protected]
    Subject: CS5 HDR pro two photos alignment issue
    Don't know what could be going wrong.  Can we get the files so we can try to reproduce the problem here at Adobe?
    >

  • Colour alignment issues with CP1515n

    I'm having some colour alignment issues with my Color Laserjet CP1515n.  Lately, I've noticed that the 3 colours go out of alignment from the middle towards the right of my printouts.  Alignment at the left towards the middle half of the page is ok but gets progressively worse towards the right side of the page. 
    Nothing in the user interface allows me to reset the colour alignment.  What can be the cause of this and what's the remedy?  This printer is slightly over a year old and has only just gone through its first set of toner cartridges.

    I am also having alignment issues to the same nature as the post below. I have just replaced the Black, Magenta and Cyan toners. After doing this the alignment goes out of register from left to right (left edge fits right edge all colours are out of fit by 2mm).
    I have also found nothing in any manuals as to how to adjust or fix this problem. This is the second time I have replaced these colours. I have re-calibrated and taken the cartridges out several times but it is still the same.
    Any advise would be helpful. As it is at the moment the printer is unusable for my job and it's the only one I have.

  • JCA Binding Component connection issue - Help plz

    All,
    soa - 11.1.1.3
    I configured a async BPEL which reads data from DB (using DBAdapter) and write to a file. I'm getting the following error frequently. But same BPEL if I test it after few minutes it works, its very intermittent. Any clue?
    I checked the DB which is installed locally, its up and running. No issue i seen in the DB.
    Caused by: BINDING.JCA-12511
    JCA Binding Component connection issue.
    JCA Binding Component is unable to create an outbound JCA (CCI) connection.
    *OutOrderRequestMap:TerritoryPull [ TerritoryPull_ptt::TerritoryPull(TerritoryPullInput_msg,TerritoryPullOutputCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/DB/orafin11i from JNDI and get a new Connection Handle.*
    Thanks,
    sen

    Are you using JDBC Xa datasource ? Try following the steps defined in this forum link @ Re: Error at the time of Invocation of DB Adapter

  • ALV Grid - Alignment Issues in TOP OF PAGE.

    Hi,
    We have a requirement to right align text in the report header.
    We are using REUSE ALV GRID DISPLAY, but using TOP-OF-PAGE event - the whole text is left aligned.
    I tried using Class CL_DD_DOCUMENT which solved the alignment issue, but I am not able to see the header while printing/downloading to excel.
    I want the header to be available while downloading/printing the list. Any suggestions?
    Thanks in advance,
    Harveen.

    Hi
    The ALV download only the grid into the file, so not the data you're writing in TOP_OF_PAGE event.
    If you need to do that, you should create an your own buttom to download the file.
    Max

Maybe you are looking for