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.

Similar Messages

  • 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

  • Fixing the position of TitleWindow component.

    Hello,
    I am trying to create an application which has different pages using Flex. Each page is a Flex Title window.
    When I click on an icon in the main application window, another page should open (which is actually a title window).
    I am trying to fix the position of title window from moving. I should not be able to drag title window in the browser.
    I am trying to find a way but was failing each time
    Can you please help me in resolving this problem?
    Thank you for your cooperation.
    Cheers,
    KK

    Try using a Panel component instead of TitleWindow.
    HTH,
    Kenny Yates

  • 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 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 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 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

  • How to fix the size of JFrame

    Hi Friends,
    How to fix the size of JFrame so that it can not br able to resize beyond a
    certain limit .
    i want this because i my screen if it is resized as small then the component of screen changes there location and position.
    plz help.

    You can... sort of
    The setSize() method is nasty because you don't get the event until you release the button, so the frame resizes and then snaps back. However, if you put the ComponentListener on the frame's JRootPane, you get a stream of resize events (because the window typically needs to be able to dynamically redraw itself). You can still use the setSize() method, but it is potentially confusing to the user, because the window border gets disconnected from the cursor, and as the mouse is moved further, the frame flickers between its instantaneous new size and max size.
    For a better user experience, use Robot to programmatically reposition the mouse back to the screen location equivalent to the maximum dimension.

  • How to lock the position of text in XML RTF

    Hi Experts,
    I am working in XML Publisher reports. I am working on invoice report, i have following issue.
    RTF:
    <?for-each:headergroup?> --header
    <?header-data1?> <?header-data2?>
    --inside table
    <?for-each:linegroup?> --lines
    <?line-data1?> <?line_data2?>
    <?end for-each?> --lines
    --end of table
    <?Total?>
    <?end for-each?> --header
    **My requirement is, if i get more line data, it will push the <?Total?> to next page, but i want to fix the position of <?Total?> at same place. if line data is more, just lines should go to next page,but <?Total?> should be in the same position.**
    Kindly help.
    Thanks in advance.

    Hi,
    Thanks for your reply. Actually my requirement is, i have 2 page template.
    RTF:
    page1
    <?for-each:headergroup?> --header
    <?header-data1?> <?header-data2?>
    --inside table
    <?for-each:linegroup?> --lines
    <?line-data1?> <?line_data2?>
    <?end for-each?> --lines
    --end of table
    <?Total?>
    <?end for-each?> --header
    page2
    SOME DESCRIPTION IS THERE RECORDING INVOICE
    Output Using above RTF:
    Page1:
    header-data1 header-data2
    line-data1 line-data2
    Total
    Page2:
    Description.
    page 3
    header-data1 header-data2
    line-data1 line-data2
    Total
    page 4:
    Description.
    After each header and line info, it will print Description.
    Till now it's perfect.
    Requirement: In first page, i need to have a footer, no footer in second page.
    For this, i put a section break in page1, now there is no footer in page2.
    But the output is coming like below.
    page1:
    header-data1 header-data2
    line-data1 line-data2
    Total
    page2
    header-data1 header-data2
    line-data1 line-data2
    Total
    page3
    header-data1 header-data2
    line-data1 line-data2
    Total
    page4
    Description.
    After keeping section break, it's not printing the DESCRIPTION after header and line info page.
    Could somebody help me, how to achieve the DESCRIPTION after header and line info with no footer on second page.
    Kindly help.
    Thanks in advance.

  • How to fix the above mentioned, *"special Incoming Closed margins"*.

    Valuation runs (TPM1) fails with the error below:
    Unfixed bus. trans. with posting date 02/23/2012 before key date (long text)
    Message no. TPM_TLV1028
    Diagnosis
    The position that is to be valued contains a position-relevant business transaction Close margin listed options and futures in status Scheduled with posting date 02/23/2012 This is earlier than the valuation key date.
    Question is how to fix the above mentioned, "special Incoming Closed margins".
    PLease note that TPM18 or TBB1 does not work....
    Regards,
    Rahul

    Hello Lorenz,
    I get no flows selected but report tpm13 clearly shows there is an OUTGOING CLOSED MARGIN update type in scheduled status ?
    Any ideas. This issue has been reported before but no results.
    Regards,
    Rahul

  • How to copy the  positions and their relationships of one org.unit to other

    f there about 20 organization units among which 6 org.units have same positions and same relationships ,i know that we can create one org.units and their relationships among 6 similar org.units and then copy the same position and relationships to other 5 org.units as well instead of individually creating positions and assigning relationships to them  which results in wasting a quality time.but i dont know how to copy it? so please help me by informing me in details how to copy the positions n their relationships to other org units.

    Hi.
    This may sound like a bit of a pain in the *** but why not save the channel strip settings into your own folder then that way you can open them up in other songs and you have some channel strips to try out when you cant find anything else to fit. Plus its fun to open up lots of different audio onto the tracks and see what the effects sound like, Brian Eno style.....
    Hope this helps

  • How to fix the Timing issue in Discoverer reports

    Hi,
    While running the discoverer report in Discoverer plus is taking more than 1 hour to complete( Gen.time + Extract to excel)
    where as the same report completes quickly in discoverer desktop.
    how to fix the timing issue in discoverer plus 
    Thanks
    Srinivas

    Timo Hahn wrote:
    There is a problem with autoHeightRows and columnStretching used together in 11gR1.
    Have you tried without columnStretching?
    Or have you tried if it works in 11gr2?
    TimoHi Timo, Thank you very much for taking time to respond to my question.. :)
    Back to my question...
    I tried removing the columnStretching although my requirement really requires this but no effect really happens even if I remove this.
    Based on my investigation on the generated HTML, I notice the following items:
    1. A table is being wrapped in a div that is being set at a fixed height.
    2. On first load, if your autoheight rows is set to 6, the framework is setting a height of 96px to the div. This height would almost cut the last row of the table.
    3. If you try to refresh the page or try to re-PPR the component, the framework resets it to 102px which causes the last row to be fully displayed.
    My only concern is that IE is perfectly displaying this while Chrome and FF are having problem.
    Based on my understanding, the framework is messing up the height only on first load. Not sure but this is how I see it. I am really not confident also on my findings
    and I would most likely hear other's comment.
    Thanks.

  • How to fix the E225 error on the MF 4380 dn printer

    How to fix the E225 error on the MF 4380 dn printer

    Hi okekeP,
    The imageCLASS MF4380dn was not released by Canon USA in the United States, but was distributed in other markets such as Canada, Europe and Australia.  I would recommend to referring to the Canon support group for your geographical area to ensure the proper support application is being used for your product. However. I will be happy to offer some assistance.
    The closest US model would be the imageCLASS MF4370dn. The recommendation when the error occurs with this model is to perform a reset the product.  If you have not done so already, please attempt to reset your laser printer as outlined below:
    1. Disconnect the power cord attached to your machine while "on" for up to 10 minutes.
    2. Reconnect the power cord for the unit and plug it into a different known working outlet direct to the wall (not a surge/power strip) to ensure it is receiving full power.
    4. Once your unit has initialized, confirm an error is not displayed in the LCD.
    If unresolved, please refer to your Canon support contacts for further assistance and whether a firmware update may be available to address the issue or if service may be required.
    In case helpful to you, here are direct links to the product page for your laser product:
    - if your product was purchased in Canada, you can visit the product page for your laser device on the Canon-Canada website, www.canon.ca.
    - if your product was purchased in Australia, you can visit the Canon-Australia website, www.canon.au.
    - if purchased in Europe, you can visit the Canon-Europa website, www.canon-europe.com
    I hope this is helpful to you.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for