Depreciation in different area

we have three depreciation area , 01(local), 15(tax), 30(group), asset 100023-0 is acquired in
2009 and depreciated in year 2009 and 2010 for local book, 01 depreciation area 01, but never in depreciation area 30.
now we want to depreciate in 30 and historically post and adjust, I use OAXE to define new transaction type Z1 and limit posting to area 30.
but in ABSO, I already enter 0 for 01 area during ABSO pposting, but it displays error, how to solve?
In area 01, you can only post manual dep. up to the amount               0
Diagnosis
This posting cannot be performed, since manual depreciation can only be posted in the amount of               0 in area 01.
Procedure
Check the transaction type entered, or change the posting amount.
Caution:  If the amount concerned is 0, this could be the result of two situations:
1. The asset does not have any net book value; in this case, you should check the transaction as described above.
2. The asset has a depreciation key with automatic depreciation calculation. However, if you want to include depreciation in addition to the automatically calculated depreciation, it has to be unplanned depreciation.
Otherwise, you should use a depreciation key that does not calculate automatic depreciation (SAP-supplied key: MANU).

Hi,
please check your transaction types and if you have Current-year acquisition transaction or prior-year acquisitions  
on the asset.
(TABWG-XZUGNE = X = Current-year acquisition transaction)
Regards Bernhard

Similar Messages

  • How to post depreciation to different depreciation areas

    Hi,
    Can any body explain how to post depreciation to different dep areas other than 01 book dep,
    and how to take the reports according GAAP and IAS.
    Regards,
    prasad

    Hi,
    When you create depreciation areas like Book, Tax, Costing etc., the system posts values like APC and Depreciation simultaneously in all the areas. You don't need to do any thing.
    Just posting values through F-90, F-92, etc and for Depreciation AFABN.
    This above holds good as long as you are posting to a single ledger.
    The above answer is slightly different in case you are having parallel ledgers. Let me explain by taking an example.
    Lets assume you are implementing for an Indian client whose parent compnay is in Dutch.
    As per Indian GAAP you need to submit the local reporting on April to March basis and for Ducth Jan - Dec.
    Assets in Indian GAAP are capitalised with values including frieght, Installation and trial run till Commencement date lets say @ 20%
    Assets in Ducth GAAP are capitalised with only Cost, Frieght & Insurance (This is only an example) and the depreciation rate is 15%.
    In this scenario you will be creating two ledgers(IN SAP sense and not the accounting GLs)  with different fiscal year variants and will be defining Leding ledger and Non leading ledgers and Ledger Groups.
    IN this case lets assueme Indian GAAP is Leading ledger and Dutch GAAP is Non Leading ledger and a ledger Group lets say "LG"
    When you post using the transation code FB01L you will be using ledgers or ledger groups that are effecting with this transaction.
    If you use the regular T codes without using the Ledger Groups, System posts the transaction to all ledgers simultaneously.
    When You want to post the transaction as I said in the above example, you will be using FB01L like capitalising total cost in "LeadingLedger" and upto CIF value to "Non leading ledger"
    NOw from the configuration front you will be creating seperate set of Depreciation keys for each GAAP and will be creating a  depereciation area for Dutch GAAP.
    You will also need to create a derived depreciation area which is the difference of Book Dep Area (as per Leading Ledger) and teh Duthc GAAP depreciation area (Non leading ledger). You can use the Wizard here which will guide you.
    For Book depreciation are its always realtime posting and for other areas its periodic posting. i.e. as a monthend process you need to do,
    For this you need to run TCODE ASKBN (Periodical posting ) anad AFABN.
    ASKBN checks for the difference in APCs, Depreciations, Loss or gain on account of retirements differently for diffrent depreciation areas and posts the values.
    When it comes to reporting all Standard reports will give you the flexibility of taking the reports based on Depreciation areas.
    You have a TCODE "OARP" where in you will get all the asset related transaction reports.
    The above scenerio is explained with an assumption of you using SAP Version above 4.7EE.
    Reward if you find this explanation useful.
    Sarma

  • How can I switch out graphics in different areas of a movie?

    I have a project that I'm working on for a flooring company. They want a Flash movie that allows the user to change the look (product and color) of different areas of the floor.
    I have a menu on the left side that designates the three different areas of the floor. I have the two products along with color swatches along the top. I currently have each of the three areas as separate movies that load into a main movie.
    These three area movies each contain the color swatches on the top as buttons to change the color of that area using "On Release > Go To Frame Label" actions that displays each of the different colors. These movies each load on a different level based on the selection of the left side menu.
    I want the user to be able to go to each of the three areas and change the product/color attributes without losing what they had already done. For instance, if they choose PRODUCT A in RED for AREA 1, then they want to change the product/color on AREA 2, I still want the movie to display PRODUCT A in RED for AREA 1, etc.
    The problem I run into is that when you go back and forth between the three areas, the navigation only controls what movie is on the top level and doesn't allow the user to go back to a previous area and change the product/color attribute.
    Keep in mind I'm a designer, not a developer. My knowledge of Actionscript is very superficial so don't throw a bunch of "geek speak" at me ;-)

    It is not clear how you have the design arranged timeline-wise, but what you should do is get away from using the timeline as much as using movieclips.  Have each area as a different movieclip that you control with the selection buttons.  That way, changing one movieclip's current frame will not disturb another's.

  • Is there a way to define 2 different areas using boundaries in a Java app?

    Hi,
    Im tryig to create a game for kids were they can learn how to write! In one of the games there will be a template of a letter, for example A, the A wii be hollow inside so that the kids can folow the outline! But if they go over a line i want the program to display a message telling them this and having to restart drawing from the mouse!
    I know how to draw the lines fron the mouse i just dont kno if it is possible to define different areas according to the shape of a letter??
    Hope you can help
    RSH

    This code will get you a java.awt.Shape representing the outline of any String.
    import java.awt.Shape;
    import java.awt.Graphics2D;
    import java.awt.Font;
    import java.awt.font.FontRenderContext;
    //Whatever other code you need
    //Getting shape of text, put somewhere you can get a Graphics from
    FontRenderContext context = g2d.getFontRenderContext();        //where g2d is a Graphics2D
    Font anyFont = new Font("Arial", Font.BOLD, 20);
    String myText  = "ABCDEFG";
    TextLayout textShaper = new TextLayout(myText, anyFont, context);
    Shape outline = textShaper.getOutline(null);           
    //you can pass a AffineTransform to getOutline( ) if you want some kind of transformation, probably be best
    //if you used it to move (translate) the text outline so you can check to see if it contains the mouse pointer.With the Shape representing the outline of the text, you can call contains( ) on it, passing it a Point2D or the x and y locations of the mouse in double precision which returns true if the Shape contains the mouse.
    I'm pretty sure that it should work.

  • My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house.  Is there a way to use the second Airport Extreme for file storage on this network?

    My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house.  Is there a way to use the second Airport Extreme for file storage on this network?  Network is administered through an iMac running OS X Yosemite 10.10.2.  Ideally, would like for the second Airport Extreme hard drive to appear on the list of devices in the Finder window.

    Ok.. gottcha
    The problem is network wise.. Yosemite is about equal to tin cans and string.. pathetic.
    Here is my usual set of instructions to get anything working on Yosemite.
    The best way to fix problems is a full factory reset of all the AE in the network.
    Factory reset universal
    Power off the AE.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the AE to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    Then redo the setup from the computer with Yosemite.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg AEgen5 and AEwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use AE24ghz and AE5ghz with fixed channels as this also seems to help stop the nonsense.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the AE always takes the same IP address.. this is not a problem for AE which is router.. it is a problem for AE which is bridged.. you will need to set static IP in the main router by dhcp reservations or use static IP in the AE which is tricky.
    4. Check your share name on the computer is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric..
    5. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.
    6. Now mount the disk of the second AE in finder... manually.
    Use Go, Connect to Server and type in the AE ip address.
    SMB://10.0.1.2
    Where you will replace that address with the actual address. The network resource should be discovered and then it will request the password.. type that in and make sure you tick to save it in your keychain.
    There is a lot more jiggery pokery you can try but the above is a good start.. if you find it still unreliable.. don't be surprised.
    Do as much as you want of the above... not all of it is necessary.. only if you want it reliable.. or as reliable as Yosemite in its current incarnation can manage.
    The most important thing is point 6.. mount the disk using direct IP address and not names.. dns in Yosemite is fatally flawed.
    See http://arstechnica.com/apple/2015/01/why-dns-in-os-x-10-10-is-broken-and-what-yo u-can-do-to-fix-it/

  • Depreciation posting rules are not define for area 00 in company code

    Dear Expert,
    Would like to seek for help, when I run a customize report (AUC without PO not yet capitalized report the system prompt the error depreciation posting rules are not define for area 00 in company code only on the march 2011 on ward but before march 2011 the report is able to display as usual.
    Between., does SAP have the standard report to list the asset which is AUC and not yet capitalized?
    My version of SAP is ECC 6.0.
    Kindly advise.
    Regards,
    Karen

    Hi,
    Thank you for the prompt reply, why the system prompt the error depreciation posting rules are not define for area 00 in company code only on the march 2011 on ward but before march 2011 the report is able to display as usual?
    Please help.
    Regards,
    Karen

  • My story of transferring a different area code number during activation

    When I got my iPhone, I wanted to port my current number (which was in a different area code from my billing address) to the iPhone. I got stuck on the second page of the activation with a "you cannot transfer this number" message.
    I called the AT&T corporate store that I purchased the iPhone from and encountered the worst help in a person that basically said that he didn't know anything about that problem, there was no other person here (i.e. supervisor) and he really couldn't help me and doubted that anyone else could. When I said, "So, there isn't anything I can do at all whatsoever? Like there's no phone number at AT&T or Apple that I can call and get any help activating my iPhone?" He finally, like a light bulb went on, said "I suppose you could call the 800-My-iPhone number. The people at that AT&T corporate store must only hire the most brilliant people. I suppose it could have been his first day or for that matter his first call, but still....
    I called 800-My-iPhone and the guy there couldn't figure out why it wasn't letting me activate, so he went off and made a little call to AT&T and came back and said that I have two options. 1) I could just activate with a new phone number and transfer my old phone number later (you have 30 days to transfer--the 30 days probably avoids a transfer fee, but that's a guess) or 2) I would have to put in a request to transfer my number and that might take up to six days. I decided to go ahead and just get a new number and deal with the transfer later. Once I got the iPhone activated and got the new phone number, I started the porting process.
    When I called the AT&T Porting phone number to start the process, I got the nicest lady that pretty much told me "I wish they had sent you to us first. The reason you couldn't activate with this phone number is because your phone number is in a different area code from your billing address. When the activation process asked for your billing zipcode, you should have entered a zip code from the area where your old phone number's area code was and not your current billing zip code." According to her, that would have allowed the transfer to occur. I wish the 800-My-iPhone people knew this and yes I sent a "One-Way" unacknowledged feedback message into the Apple abyss.
    So now the story goes that since I have activated my iPhone in a different area code, the SIM card is locked into that area code. I can still transfer my number, but AT&T has to send me a new SIM card with another temporary number in that area code. Then they have to get the iPhone activated with that SIM card and then they start the whole phone number transfer process.
    If I understand this correctly, I will have had two temporary numbers and two SIM cards before the transfer process is over.
    It's not over yet, so the story isn't done. I'll see in the next couple of days how the whole "transferring the old phone number" process unfolds.
    I can't wait to see how iTunes handles the whole process. That's probably a whole different headache.

    Well, you were right about looking for problems in the billing. Even though I had made sure they had closed down the extra account. The problem stems from how they advance bill for next month's service.
    When they shutdown the first account (with the temp phone number) they never refunded the advanced payment for the next month, they just kind of forgot about that and didn't have any kind of entry for refunding that pre-paid service.
    On the second account (with my current number), I paid for two months of service, but I was paying again on the same month I paid for in the first account. That extra month of service was about $75 of extra charges.
    There were all sorts of charges on the first account (like a $175 charge for canceling my account early), which they turned right around and removed. All the extra charges and credits, just confused the issue for not only me, but the customer service agent as well. He kept saying that they had credited me for some $235 of billing and was using that to say that AT&T could not credit me any more.
    Finally, I was able to show them that they had not only charged me twice for message service for November, but they also charged me twice for phone service in November too. I think it helped when the agent realized that I only had one phone and one line of service active.
    The customer service agent was nice, but with all the other charges and credits, it took a while to get to the bottom of what charge was for what service and where the double billing took place.
    Anyway, I did get it straightened out. Thanks for warning me about this. It was that little flag that helped me look for those extra charges. Thanks!
    Message was edited by: kae

  • Diversity and trying to conver two different areas

    So the whole purpose of diversity is to provide/improve coverage in a same area.  Basically two antennas placed with a reasonable distance from each other and the concept is that one antenna might receive a better signal than other and then both signals can be combined to get a single stream.  End result better communication.
    Now something I have noticed that people are doing is taking the two antennas and putting them like 25 to 50 feet apart with diversity enabled trying to cover two different areas.  At times two different rooms so like one antenna is in one room and second one is in another room with a concrete wall between them.  Apparently they are saying that it is working for them.  I'm trying to understand the logic behind that how something like that wouldn't cause issues unless they have clients only on one side?

    I've seen set-ups like this before and people at the site can (and will) say that it's "working".  
    Until I get a wireless sniffer out or do some scanning, it seldom works.  They will say that it's working purely for political (don't want to get themselves into trouble) and/or financial (they can't afford to put two APs) or both.  
    This may work (somewhat) in 802.11a/b/g but stick 802.11n/ac and I'm certain it won't work.  When I mean it won't work, I mean you won't see the full benefit of connection speeds of >155 Mbps. 

  • Special depreciation negative in Area 53 ( Derived Area ) , Error AA627

    Hello Forum,
    I try to post the special depreciation in the transaction ABAA, using the transaction type 620 ( transaction type group 62).
    I get the error: AA627, Special depreciation negative in area 53
    Could anybody help me resolving this?
    Thanks
    Best Regards
    D. Swathi

    HI
    Explanation using an example:
    Period              Transaction        Amount in EUR     Exch Rate Vs USD     Amount in USD
    February 2008     Acquisition     100              1.4                        140
    February 2008     Depreciation     -10              1.4                        -14
    March 2008     Depreciation     -10              1.5                         -15
    As at 31.03.08     NBV     80                   111
    April 2008     Write-up     20     1.6     -29
    As you see, when we are doing manual depreciation the entire depreciation which is posted for this asset, we would be entering the value as 20 EUR which would convert automatically to 32 USD at the prevailing rate (20*1.6). But the amount in USD should only be 29 because thatu2019s the amount that has actually been posted as ordinary accumulated depreciation. If we donu2019t manually enter 29 USD, then the ordinary accumulated depreciation would be calculated as -3 (29-32) which is what the system is showing as an error.
    If you have any query pl let me know.
    Thanks & Regards,
    Venkataraju Khottari

  • AR02-Asset Historysheetreport -001 Ordinary depreciation positive in are 01

    In AR02 -Asset History sheet report,we are getting the below error displayed for few specific assets  .The asset values  are displayed in correcltly till October and however in December 2009. it shws correct values.
    The message displayed :
        001 Error occurred during processing of asset -cocode -Asset number -sub no.
        001 Ordinary depreciation positive in area 01
    Error occurred during processing of asset Message no. AB076
    Diagnosis
    Errors occurred during depreciation calculation when the system was processing asset 104000000311-0000 in company code X003.
    System Response
    Processing of the asset did not end correctly. Therefore you should check the values in the output list.
    Procedure
    In an output list, refer to the error log (Goto -> Error Log). For background processing, refer to the job log. These logs list the assets that have errors and the errors that occurred.
    In some cases, the problem can be corrected for the asset(s) by using the Recalculate values function.
    This particular asset was retired.Retirement with affliated company in the month of February and hence from then the APC value is Zero.From february till nov 09  there is problem with the asset it doesnt show value as zero and however when we now run report as on 31.12.2009 it shows zero.
    However when we run the report for the period 30.11.2009 it displays the message -
    Errors occurred when processing assets. See the Error Log  on the top of the AR02 report and the error long shows the above two messages.
    Please suggest why this report shows error from FEB to  NOV only and not in DEC .
    Edited by: mysap query on Dec 3, 2009 1:54 PM
    Date -4/12/2009
    I have noticed that we made a chane in the dep key in the scrap value method -Consideration is controlled by cutoff value key to Base value is reduced by scrap value amount.
    The changes we had done it in the month of NOV.
    So till nov it shows the error but from december it shows correct values.Anty further config to be made please suggest.
    regrads
    Edited by: mysap query on Dec 4, 2009 7:06 AM

    Could you post the  solution of this error ,How you got it resolved ?
    I am getting the same error when processing the intracompany asset transfer report.
    Thanks
    SKE

  • Ordinary depreciation positive in area 10, ABT1N

    Hello,
    While i was posting the ABT1N (inter company transfer), I am getting the following error:
    Ordinary depreciation positive in area 10
    Message no. AA624
    Asset affected: 100000000014-0000
    The asset was related to investment related. I have settled the asset in period 10. I have not run any depreciaiton for any of the periods so far.
    Asset capitalized date is 26.11.2011 (period 10)
    dep start date:
    area             description                       Dep Key       useful life    period          Dep start date
    01     Book deprec.     ZLIN     50     0     27.11.2011
    10     ACRS/MACRS     ZSTS     39     0     27.11.2011
    11     ALT MIN AMT     ZSTS     39     0     30.10.2011
    12     State Tax     ZSTM     39     0     30.10.2011
    13     US GAAP     ZLIN     50     0     27.11.2011
    20     ACE     ZSTL     39     0     30.10.2011
    30     Group GBP     ZLIN     50     0     27.11.2011
    31     Book USD     ZLIN     50     0     27.11.2011
    Not sure where i am doing the mistake. Can you please help me.
    Any help is highly appreciated
    Best regards
    Surya

    Hi Surya,
    Please make sure that in OABN, for all of your dep areas, selection must be Only negative values and zero allowed.
    Double click on dep areas to verify this in OABN.
    I am sure this will resolve your issue.
    Regards,
    Srinu

  • Used to use the Mac.  How different are menus between Mac and Windows?

    I used to use the Mac.  How different are the PowerMac menus from those of Windows OS?

    Hello,
    They're pretty different, after a short while the Mac will be easier, key is to not expect it to work like Windows... I use both.
    I think these may answer some of your questions...
    http://switchtoamac.com/guides/mac-os-x/mac-os-x-basics/mac-os-x-101-using-a-mac .html
    http://www.apple.com/support/macbasics/
    Feel free to ask if you have questions after looking at them.

  • Skype Number with a different Area Code

    Good afternoon Ladies and Gents.
    I'm from Brazil, and today I tried to create a Skype Number, because I work offshore, and on the Rig, it is not possible to call numbers with different area codes.
    My question is:
    I'm from Rio de Janeiro(Area Code 21), but I would need a number from Macaé (Macaé is a city of Rio de Janeiro state), and its code is 22, but I have no option to choose another area code, because 21 is only for Rio de Janeiro city, and I have to select Rio de Janeiro(state), but cannot select the area code. Is it possible to create a number with the Macaé area code (something like +55 22 4002-6663)?
    Thank you, and I am waiting your comments.

    Yes the Skype number is attached to your account no matter what calling subscription you have.
    You can stop your UK subscrition and buy the European subscription, maybe even buy the Euro subscription before the UK one runs out if you can't wait.
    Skype can recognise multiple subscriptions and charge the call accordingly.

  • 2 renderers in layout set reading from different areas of km repository

    Good Day
    I have a layout set which contains 2 collection renderers.
    Each renderer must display content from different areas of the km repository in a way that is controlled by the KM Navigation iView parameters "Path to root folder" & "Path to initially displayed folders"
    For example :
    Renderer 1 should display content from the path specified in "Path to root folder"
    and Renderer 2 should display content from the path specified in "Path to initially displayed folder"
    Is this possible? If yes, then how can i do this?
    Renderer 1 is a custom renderer that displays folders almost like in a tree structure.
    Renderer 2 is a EntryPointsCollectionGridRenderer
    Kind Regards
    B

    Hi B
    I don't think you are aware of the use and limitations of the KM Navigation Iview. Have you read the documentation at http://help.sap.com/saphelp_nw04/helpdata/en/b6/29892e91601940bb7a2cd673a1dff5/frameset.htm?
    "When i view the page it only displays the LSROOT layout set. It actually only displays whatever layout set is specified under the parameter "Layout Set for Root Collection". The page does not display LSFOLDER.
    Have i done something wrong?"
    Since I don't know exactly what your layousets consists of and how you have configured the KM Navigation Iview, this is hard to say. But perhaps it is caused by you specifying a path in "Path to initially displayed folder" that is not a subordinate to "Path to root folder for navigation".
    "Would it be possible for LSROOT and LSFOLDER to display contents from different paths in the repository?" Yes, it is possible to display two different paths with two different layout sets. Thats what the "Path to root folder for navigation"/"Layout Set for Root Collection" and "Path to initially displayed folder"/"Layout Set" are for.
    But no, it is not possible to display (merge) the content of two different folders using the KM Navigation Iview. Then you will have to create a taxonomy first or create some other kind of workaround. But I don't know if that was your aim in the first place.
    Kind regards,
    Martin

  • Align JLabels and JTextFields vertically in different areas

    I like to have 3 TitledBorders for 3 different areas of my frame.
    Each area has its own components - JLabels, JTextField, etc.
    How to align JLabels and JTextFields vertically in different areas?
    e.g. for the following test program, how to configure label1, label2, label3 so that their right sides all align vertically and
    tf1, tf2, tf3 so that their left sides all align vertically?
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.GridLayout;
    import java.awt.Insets;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.border.TitledBorder;
    public class TitledBorderDemo extends JFrame {
      public TitledBorderDemo() {
        super("TitledBorderDemo");
        JTextField tf1 = new JTextField("hello", 6);
        JTextField tf2 = new JTextField("hello", 12);
        JTextField tf3 = new JTextField("test");
        JTextField tf4 = new JTextField("test2");
        JLabel label1 = new JLabel("1234567890ertyuiyup label");
        JLabel label2 = new JLabel("zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz long label");
        JLabel label3 = new JLabel("short label");
        JLabel label4 = new JLabel("test");
        JPanel panel_tf = new JPanel(new GridBagLayout());
        JPanel panel_pf = new JPanel(new GridBagLayout());
        JPanel panel_ftf = new JPanel(new GridBagLayout());
        GridBagConstraints constraints = new GridBagConstraints(0, 0, 3, 3,
                0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
                new Insets(10, 10, 10, 10), 0, 0);
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.gridwidth = 2;
        constraints.anchor = GridBagConstraints.WEST;
        panel_tf.add(label1, constraints);
        constraints.gridx = 2;
        constraints.gridwidth = 1;
        constraints.anchor = GridBagConstraints.EAST;
        panel_tf.add(tf1, constraints);
        constraints.gridx = 0;
        constraints.gridy = 1;
        constraints.gridwidth = 2;
        constraints.anchor = GridBagConstraints.WEST;
        panel_pf.add(label2, constraints);
        constraints.gridx = 2;
        constraints.gridwidth = 1;
        constraints.anchor = GridBagConstraints.EAST;
        panel_pf.add(tf2, constraints);
        constraints.gridx = 0;
        constraints.gridy = 2;
        constraints.gridwidth = 2;
        constraints.anchor = GridBagConstraints.WEST;
        panel_ftf.add(label3, constraints);
        constraints.gridx = 2;
        constraints.gridwidth = 1;
        constraints.anchor = GridBagConstraints.EAST;
        panel_ftf.add(tf3, constraints);
        constraints.gridx = 3;
        constraints.gridwidth = 1;
        constraints.anchor = GridBagConstraints.WEST;
        panel_ftf.add(label4, constraints);
        constraints.gridx = 4;
        constraints.anchor = GridBagConstraints.EAST;
        panel_ftf.add(tf4, constraints);
        panel_tf.setBorder(new TitledBorder("JTextField1"));
        panel_pf.setBorder(new TitledBorder("JTextField2"));
        panel_ftf.setBorder(new TitledBorder("JTextField3"));
        JPanel pan = new JPanel(new GridLayout(3, 1, 10, 10));
        pan.add(panel_tf);
        pan.add(panel_pf);
        pan.add(panel_ftf);
        this.add(pan);
      public static void main(String args[]) {
        JFrame frame = new TitledBorderDemo();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(600, 450);
        frame.setVisible(true);
    }

    Thank you! It works!
    I add some labels & components to your demo program.
    Most of the components align vertically.
    How to align the "Country", "Test2" & "Extension" labels on the right sides?
    How to align their corresponding components so that their left sides all align vertically?
    How to make the Cancel button stick to the Save button
    (i.e. eliminate the gap between the Cancel and the Save button)?
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class TitledBorderDemoNew extends JFrame {
      public TitledBorderDemoNew() {
        super("TitledBorderDemoNew");
        JLabel nameLabel = new JLabel("Name");
        JTextField nameText = new JTextField(20);
        JLabel addressLabel = new JLabel("Address (City & State)");
        JTextField addressText = new JTextField(40);
        JLabel countryLabel = new JLabel("Country");
        JTextField countryText = new JTextField(30);
        JLabel testLabel = new JLabel("Test");
        JTextField testText = new JTextField(20);   
        JLabel test2Label = new JLabel("Test2");
        JTextField test2Text = new JTextField(20);   
        JLabel phoneLabel = new JLabel("Phone");
        JTextField phoneText = new JTextField(20);
        JLabel extensionLabel = new JLabel("Extension");
        JTextField extensionText = new JTextField(5);
        JLabel postalCodeLabel = new JLabel("Postal Code");
        JTextField postalCodeText = new JTextField(6);
        JButton saveButton = new JButton("Save");
        JButton cancelButton = new JButton("Cancel");
        JButton commentButton = new JButton("Comment");
        int longWidth = addressLabel.getPreferredSize().width;
        GridBagConstraints constraints = new GridBagConstraints();
        JPanel p1 = new JPanel(new GridBagLayout());
        p1.setBorder(createBorder("Name"));
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,6,4,6);
        p1.add(nameLabel, constraints);
        constraints.gridx = 1;
        constraints.anchor = GridBagConstraints.WEST;
        p1.add(nameText, constraints);
        constraints.gridx = 2;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.weightx = 1.0;
        p1.add(Box.createHorizontalGlue(), constraints);
        constraints.gridx = 0;
        constraints.gridy = 1;
        constraints.fill = GridBagConstraints.NONE;
        constraints.weightx = 0.0;
        p1.add(Box.createHorizontalStrut(longWidth), constraints);
        JPanel p2 = new JPanel(new GridBagLayout());
        p2.setBorder(createBorder("Address"));
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,6,4,6);
        p2.add(addressLabel, constraints);
        constraints.gridx = 1;
        constraints.anchor = GridBagConstraints.WEST;
        p2.add(addressText, constraints);
        // extra label & component
        constraints.gridx = 2;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,36,4,6);
        p2.add(countryLabel, constraints);
        constraints.gridx = 3;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.insets = new Insets(4,6,4,6);
        p2.add(countryText, constraints);
        constraints.gridx = 0;
        constraints.gridy = 1;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,6,4,6);
        p2.add(testLabel, constraints);
        constraints.gridx = 1;
        constraints.anchor = GridBagConstraints.WEST;
        p2.add(testText, constraints);
        // extra label & component
        constraints.gridx = 2;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,36,4,6);
        p2.add(test2Label, constraints);
        constraints.gridx = 3;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.insets = new Insets(4,6,4,6);
        p2.add(test2Text, constraints);
        constraints.gridx = 4;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.weightx = 1.0;
        p2.add(Box.createHorizontalGlue(), constraints);
        constraints.gridx = 0;
        constraints.gridy = 2;
        constraints.fill = GridBagConstraints.NONE;
        constraints.weightx = 0.0;
        p2.add(Box.createHorizontalStrut(longWidth), constraints);
        JPanel p3 = new JPanel(new GridBagLayout());
        p3.setBorder(createBorder("Phone"));
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,6,4,6);
        p3.add(phoneLabel, constraints);
        constraints.gridx = 1;
        constraints.anchor = GridBagConstraints.WEST;
        p3.add(phoneText, constraints);
        constraints.gridx = 2;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,6,4,6);
        p3.add(extensionLabel, constraints);
        constraints.gridx = 3;
        constraints.anchor = GridBagConstraints.WEST;
        p3.add(extensionText, constraints);
        constraints.gridx = 2;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.weightx = 1.0;
        p3.add(Box.createHorizontalGlue(), constraints);
        constraints.gridx = 0;
        constraints.gridy = 1;
        constraints.fill = GridBagConstraints.NONE;
        constraints.weightx = 0.0;
        p3.add(Box.createHorizontalStrut(longWidth), constraints);
        JPanel p4 = new JPanel(new GridBagLayout());
        p4.setBorder(createBorder("Postal Code"));
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4,6,4,6);
        p4.add(postalCodeLabel, constraints);
        constraints.gridx = 1;
        constraints.anchor = GridBagConstraints.WEST;
        p4.add(postalCodeText, constraints);
        constraints.gridx = 2;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.weightx = 1.0;
        p4.add(Box.createHorizontalGlue(), constraints);
        constraints.gridx = 0;
        constraints.gridy = 1;
        constraints.fill = GridBagConstraints.NONE;
        constraints.weightx = 0.0;
        p4.add(Box.createHorizontalStrut(longWidth), constraints);
        JPanel p5 = new JPanel(new GridBagLayout());
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.insets = new Insets(4,6,4,6);
        p5.add(commentButton, constraints);
        constraints.gridx = 1;
        constraints.anchor = GridBagConstraints.WEST;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.weightx = 1.0;
        p5.add(Box.createHorizontalGlue(), constraints);
        constraints.gridx = 2;
        constraints.gridwidth = GridBagConstraints.RELATIVE;
        constraints.fill = GridBagConstraints.NONE;
        constraints.anchor = GridBagConstraints.EAST;
        p5.add(cancelButton, constraints);
        constraints.gridx = 3;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.anchor = GridBagConstraints.EAST;
        p5.add(saveButton, constraints);
        JPanel panel = new JPanel(new GridBagLayout());
        constraints.gridx = 0;
        constraints.gridy = 0;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.weightx = 1.0;
        panel.add(p1, constraints);
        constraints.gridy = 1;
        panel.add(p2, constraints);
        constraints.gridy = 2;
        panel.add(p3, constraints);
        constraints.gridy = 3;
        panel.add(p4, constraints);
        constraints.gridy = 4;
        panel.add(p5, constraints);
        this.add(new JScrollPane(panel));
      private Border createBorder(String title)
        TitledBorder b = new TitledBorder(title);
        b.setTitleColor(Color.RED.darker());
        return b;
      public static void main(String args[]) {
        JFrame frame = new TitledBorderDemoNew();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setVisible(true);
    }Edited by: 833768 on 26-Apr-2011 10:32 AM

Maybe you are looking for

  • Very simple question re: sharing an iMovie

    I feel really dumb. I'm an experienced Mac user and I decided to try iMovie for the first time using my 2.66 iMac's iSight camera. I made a short movie. Then I pulled down the Share menu and... all the options are grayed out. I've tried everything I

  • Move pair of 1 TB HDs from G5 PPC to new INTEL Machine?

    I have had a workhorse PPC G5 for many years, but software upgrades demand I graduate to an Intel-based machine. Can I simply move the two 1TB Hard Drives from the old machine to a new one or are they incompatible? They are both about a year old.

  • How to Hide a Tab in a jTabbedPane

    Hello, I am trying to toggle the Visibility of a tab in a jTabbedPane... I have tried every permutation of these that I could think of: myTab1.Visible(False); myTab1.Hide(); myTab1.updateUI(); myTabControl.doLayout(); myTabControl.updateUI(); myTabCo

  • BranchCache Hosted Server also Content Server

    We are currently looking to use BranchCache but I have some questions that I haven't been able to find an answer on.   We want to configure a content server for our HQ.  That's fine. We want to have a Hosted Cache Server at each remote office.  That'

  • How to read flushed cluster array from input queue?

    Hi! I'm new to LabView. Can someone please help me? I want to use a subvi to read a queue which I created in another vi. The created queue holds an array of clusters that I want to unbundle in a for loop in the reading vi. But the output of the flush