How to fix the position of table columns.

Hay all,
Can anybody tell me that how to fix the position of columns in a table.By default the columns can be moved to any position in the table.
Regards,
Sharad Agarwal

table.getTableHeader().setReorderingAllowed(false);this will do...
Regards,
Byju

Similar Messages

  • How to fix the position of different component?

    Hay all,
    Can anybody tell how to fix the position of any component so that they cant be moved from there initial positiion
    Regards,
    Sharad Agarwal

    Set layout to null and set bounds of the component to whatever you like.

  • How to fix the first field or column in classical report while scrolling

    i want to know, how to fix the first field or column in classical report while scrolling
    horizontally. the first  should be constant when i scroll the report horizontally .
    please help me.
    it's urgent.

    Hi,
    Suppose your first field is itab-matnr.
    WRITE :/ itab-matnr.
    SET LEFT SCROLL-BOUNDARY.
    WRITE :/......."Remianing fields

  • How to fix the position of controls, so table expands into whitespace and doesn't push lower controls down (invoice report in SSRS 2005)

    I am designing an invoice report. There are some controls at the top of the report (company logo, date, invoice number etc), followed by a table listing the items in the invoice, followed by some controls at the bottom (subtotals, returns address etc). The report should always print onto a single page.
    I want the controls at the bottom to have a fixed position on the page. There is sufficient whitespace between these controls and the table above for the table to expand to list many items. However whenever it expands it pushes the lower controls down. This results in them spilling onto a second page.
    Is there a way to fix the position of controls and suppress the "gets pushed down when controls above expand" effect?

    Thanks for that. I found a good solution using rectangles here: SQL Server 2005: Report Design Best Practices and Guidelines
    Here's the relevant part (see underlining):
    Using Rectangles to Keep Objects Together
    Rectangles in Reporting Services can be used either as graphical elements or as containers of objects. As object containers, they keep objects together on a page and control how object move and push each other.
    To keep multiple objects together on a page, put the objects within a rectangle. You can then put a page break before or after the rectangle by using the PageBreakAtStart or PageBreakAtEnd properties for the rectangle.
    Using Rectangles to Control Item Growth and Displacement
    Items within a rectangle become peers of each other and are governed by the rules of how peer items are positioned on the page as they move or grow. For example:
    Items will push or displace each other within the rectangle.
    Items will not push or displace items outside the rectangle, because they are not their peers.
    If necessary, a rectangle will grow to accommodate the items it contains.
    You can use this logic to your advantage when dealing with objects that expand. For example:
    If you want to leave a blank space in your report for a table to expand into, group the blank space and the table in the same rectangle. When the table grows, it will push the blank space .
    If you want to prevent a matrix from pushing items off the right edge of the page, put the matrix within a rectangle with blank space to its right. Now, the matrix is no longer a peer to the other item on the page and will not be able to push it until the matrix can no longer be contained within its rectangle.

  • How to fix the size of table data in html

    I want to fix the size of table data in html. ie if i want to insert only 50 char in a <td> field then it contain only 50 character, after that it switched to another line and contain the remaining character. Means <td> field wil not get automatically adjust there size according to data.

    you cant specify how many characters a td cell can have but u can specify the pixel width of a td cell
    <td width=50>
    as long as you have wrap text on, then text will not force the box size over the 50 pixels
    this wont limit it to only 50 chars though, you will probably have to use some javascript to cut the string down to size (unless youre using something like php or asp then that will do the trick too)

  • How to fix the position of JInternal frames added in JFrame

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    In Jframe I added one rootPanelI don't know what a rootPanel is or why you think you need to add one.
    The general code should probably be something like:
    frame.add(userPanel, BorderLayout.CENTER);
    frame.add(buttonPanel, BorderLayout.SOUTH);
    frame.pack();Read the section from the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for more information and working examples.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to fix the position of JInternalFrames added in JFrame.

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    import javax.swing.plaf.basic.*;
            BasicInternalFrameUI internalframeUI = (BasicInternalFrameUI)frame1.getUI();
            internalframeUI.getNorthPane().addMouseListener(new MouseAdapter() {
                public void mouseReleased(MouseEvent evt) {
                    frame1.setBounds(0, 0, frame1.getWidth(), frame1.getHeight());
            });

  • Please help me ! how to fix the position of NSWindow ?

    Hello everybody,
    I have a NSwindowController < NSWindowDelegate > (with windowWillUseStandardFrame implemented) which is supposed to fix the position of my window.
    Except never this method is called ! Nevertheless there is indeed a delegate...
    In fact in the launch of my soft, the system makes little as it wants: it cascades me windows or keeps me the last position of every window.
    I tried to deactivate the cascading, the same problem...
    All the directives concerning the NSWindow seem to be ignored !
    I do not know if it is a pure coincidence, but since I passed of a macBook 13p under 10.6 (XCode 4.0.1) in a mini mac with screen 24p under 10.7 (XCode 4.3), everything seems not to work any more as before ?!
    I wish I can align in the topleft of my screen all my windows (I tried all the concerned methods, the same problem) to loosen me of the resolution of the screen.
    If you have an idea, it will be welcome.
    Thanks you in advance.
    FM.

    OUNAS wrote:
    I find very openly the management of the positioning of a window very complex while it is a basic task !
    Thanks.
    FM
    Bonjour Ounas,
    It is not complex, within Cocoa simple things are easy to implement (and complex are possible). If you find it the other way you made a mistake somewhere.
    In your case I would start by putting a breakpoint in the methods and run the application in Debugg Mode.
    And if :
    - your method is not called
    - your window is 0x0 inside the method
    Closely look in Interface Builder if the connection is correct between your window and its variable in code and if your controller object is well assigned as its delegate. For that just select the window object in the nib and do a right/control click on it to see if it is well connected with controller's objects (alternatively use the Menu -> View -> Utilities -> Show Connections Inspector).
    As for the time to call your "fix" method what about the "- (void)windowDidLoad" call in your window controller subclass ?
    I had lots of troubles to get it called when I started with Cocoa. For it to works you have to be sure the window is well connected in IB to your window variable. And you need to load that f*¿!^ fichue window by any call to it via your controller like
    //After call window is 0x0 in the debugger if you look at it by unfolding the triangles self>controller>NSWindowController
    controller = [[RTWindowController alloc]init];
    //This one will trigger the controller's windowDidLoad method
    [controller showWindow:self];
    //a simple [controller window] is enough to bring it to life
    hth
    laurent

  • How to fix the width of sorting column about adf table ?

    I develop project with ADF in jdeveloper.
    When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
    How can I do to avoid the adjusting ?
    How can I do to fix the width of soting table header?
    Any hint will be appreciated.
    Thank you!
    Message was edited by:
    user618145

    I have set the column width like this:
    in style.css:
    /** Column Settings **/
    af|column::header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    af|column::sortable-header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    and in jsp page,write like this:
    <af:panelBox text="test" width="1000" background="dark" >
    <af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
    noWrap="true">
    <af:outputText value="#{transfers.transactionId}" escape="false"/>
    </af:column>
    </af:table>
    </af:panelBox>
    but it seems doesn't work well.

  • How to fix the value of first column in the JTable in java swing for every

    Hi ,
    I have a swing page that have table panel in which there is a table of size 7x4 now when I click on the perticulat row then that row data will displayin the table like that the selected row become the second column in the new table and the fist column of this table will remain constant for all the entry but the second column update according to the roe which is selected .How it is possible .
    Thanks in Advace,
    anu

    One thing you can do is to prevent the user from editing that column and programatically supply the values of that column yourself.
    JTable table = new JTable() {
       public boolean isCellEditable(int row, int col) {
           if(col == 0) {
              return false;
           return super.isCellEditable(row, col);
    };This allows you to prevent the user from editing the column information so you can supply some sort of a default value for the column always
    ICE

  • Fixing the position of table Display

    Hi ,
    I am trying to develop a RTF template which will generate PDF output. This is a invoice document which may have multiple invoices. For each Invoices there is line Item table and tax summary table. In both table number of rows are dynamic.The requirement here is to have Tax table always in the bottom portion for each invoice. For example if there is only one item in Line item table put sufficient gap between that table and summary table to make sure summary table is displayed at bottom.If there are multiple line items and rows get carried over to next page make sure Tax Summary table is always together and displayed at bottom portion of the page.
    Can anyone suggest how I can achieve that content portion is always fixed in the RTF layout.

    First of all Thanks for your time.
    I am not sure that I would like to remove the sub template.I only sent you a part of template. Based on different condition I need to have different sub templates and call the depending upon the type of Invoice.
    If I remove sub templates template is going to be hard to manage and understand.
    I did try the last -page first approach but the problem with that is it prints the last page header if it is only one page.

  • How to fix the positions of two Mail.app viewer windows on the screen?

    I use Mail.app as my main IMAP Mail application. I work with two Mail viewer windows which I position on the screen so that the upper window shows the Inbox and the lower window the Send-box. The windows are aligned to each other and do not overlap. Fine.
    But when I quit Mail.app and open the program again, the windows have forgotten their postions. They "jump" to a new location on the screen. This is in contrast to all other applications I use. Another bad example of window managment is the Mail.app-Preferences window which also does not stick to a given position.
    Is this a (known?) bug or does it only happen on my Macs? (two: one in the office, one at home, both running 10.4.6)

    I guess the difference is that my description text is longer.
    Try this text for a new rule:
    "From: blacklisted senders 1 - move to SPAM-blacklisted-addresses"
    When you want to see this text completely with the default font, you will need to enlarge the Preferences window for "Rules". After that, click to "Signatures": the window stays at the enlarged width. Then click on any of the other areas in Preferences, and the window goes back to the "normal" width. When you then click on either "Signatures" or "Rules", the Preferences window will stay at the "normal" width (resulting in a truncated display of the rule description text).
    Also: when you have moved the Preferences window to a position not covered by a (large) viewer window to access it with a mouse click, close the window and re-open Preferences, it is back to a position covered by the viewer window. Again not accessible when the viewer window is the front-most Mail.app window. BTW: the "Activity viewer" window does a better job in sticking to a fix position.

  • How to get the position of a selected cell in a table without using the mouse event?

    Dear All,
        I have a question about table:After clicking the cell of a table, the cell is into the edit status. How to know the row number and column number of the cell, when I click a button?
       The link below is using the mouse down event:
       http://forums.ni.com/ni/board/message?board.id=170&message.id=260102&query.id=55917#M260102
       Is there any other way to do it? Having tried to using the "edit position"  property, but it seems not working well.
       Thanks for any suggestion.
    Hugo 
    Attachments:
    table.vi ‏17 KB

    It works well with the "edit position" property.
    See attached
    Attachments:
    table.vi ‏12 KB

  • How do you fix the position of an object vertically only ("static" position horizontally)?

    I want to fix a "title" bar of a table vertically, but allow it to scroll with the rest of the page content horizontally. At the moment it's position is "fixed" which fixes the position vertically but horizontally too. I would like to have the coloured cells move horizontally with the rest of the table in the case that the browser window is not wide enough.
    Can this be done? If so, how?
    (this picture shows that the horizontal positions are different - would like them to remain in line with each other)
    Sorry if this is a silly question, I've only started using Dreamweaver yesterday... Thank you in advance for any help and advice.

    If you want to align your item horizontally center, left or right (along with other website content), you can put that item within a fixed position container, then align the item within the container however you see fit.
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <div id="container" style="position:fixed; top:0px; height:100px; width:100%; border:1px solid orange;">
         <div id="item" style="width:300px; margin:auto; border:1px solid black">Some Content</div>
    </div>
    </body>
    </html>
    In the simplified example above, the container div is fixed to the top of the page, the item div is also then fixed at the top, however using css, it is  centered to the browser window. The border properties are there for illustrative purposes

  • Fixing the width of a column in a pivot table.

    Hi,
    I have a report with a pivot table view.
    In that pivot table i have a column called category and a measure called Amount.
    My issue is, i need to fix the length of the the measured column to particular extent like $111,111,111,111.11 (Bold) for all the columns.
    I went to Format Values for that column and add width=50 in the additional charting options.
    But it's not reflecting for all the columns.
    Is there any other way to resolve this one.
    Thanks,
    chinna.

    Hi,
    Thanks for the quick response.
    I tried to fix the width of a column by putting 20% ,30% ....suggested by you.But it's not reflecting in the report.
    is there any other way?
    thanks,
    chinna

Maybe you are looking for