Code Convention for Swing

Can Anyone please point to a document or site which has information
about Naming or Code Conventions on SWING.
There are lot of documents for J2EE ,JSP and JMS naming conventions,
but could not find anything on SWING.
Any Help would be greatly appriciated.

"Code Conventions for the Java Programming Language" is found at
http://java.sun.com/docs/codeconv/index.html. Swing is no exception to these recommendations.

Similar Messages

  • Naming convention for Swing components?

    What are the official naming conventions for Swing components such as JButton, JFileChooser and so on?
    I know that "btn" is used for JButton variables. But where is a official list for all the prefixes?

    Well, if you unpack src.jar and consult the component classes you'll find how they set up their names.
    You can also call setName yourself to set a different name.
    - David

  • Code Format for Swing.

    Hi , anyone knows how can Jdeveloper use automatically getters and setters to add components in my frame, for example , in the usual way jdeveloper add a new component making : this.getContentPane().add(jButton1, null);
    but I want this : getContentPane().add(getButton1(),null) ; like eclipse do .
    Thanks

    Hi , anyone knows how can Jdeveloper use automatically getters and setters to add components in my frame, for example , in the usual way jdeveloper add a new component making : this.getContentPane().add(jButton1, null);
    but I want this : getContentPane().add(getButton1(),null) ; like eclipse do .
    Thanks

  • Conventions for XML-files

    Hi!
    I'm working on the text of a Bible translation that will be quite an extensive file when it's finished. The publisher has requested that I make an XML file in addition to the print-ready inDesign files they will use themselves. This is because there will be other publishers and companies that will want to use their translation (or parts of it) and it's inconvenient to send them inDesign files. An XML file with all of the paragraph styles, character styles and footnotes would be more convenient.
    Now, I've been trying to find information on how such a XML should look. Are there any code conventions for it? Most of the issues on this forum concerns importing xml files for use in indesign - but what I'm wondering is what I must think of when exporting XML files that other people will use?
    Also, is it possible to create inline xml tags based on character styles? (Such as bold, italic, suberscript etc.)
    I'm using CS6 and Mac OS X Lion.
    EDIT: Another thing just struck me. If anyone thinks that XML is not the best format for this then I'd very much like to hear about any other suggestions.

    InDesign has a native "Export XML" option, but that requires that you tag each separate item as an "XML item". Some of this can be automated, using "Map Styles to Tags". I don't have any experience with it, positive or negative, but if you exclusively used paragraph and character styles to layout your text it should be straightforward.
    Fastest way to get re-usable text in a not too difficult to parse file format is to export as Tagged Text. It's not really proper XML, but it may be Close Enough; if the above route is too complickated, try this (and send your publisher a test file).
    SimonLinden wrote:
    I've been trying to find information on how such a XML should look. Are there any code conventions for it? Most of the issues on this forum concerns importing xml files for use in indesign - but what I'm wondering is what I must think of when exporting XML files that other people will use?
    There are no "conventions". XML itself only has some very basic requirements (the way of writing element and attribute tags, correct nesting, some special characters that may not be used in plain text; that sort of things). So you can make up your own set of tags, or, to not confuse your receiving party, use a well-known set of tags such as XHTML (ie., <p> is for Paragraph, <i> is for Italic, and so on) or DocBook. There are also Scripture specific schema's of XML; http://ebible.org/usfx/ is one found with a quick Google.

  • Where have the code conventions gone?

    The java code conventions used to be reachable from Code Conventions for the Java Programming Language: Contents. It seems that these pages have been moved because all the links now return a 404 page not found error when clicked. Does anybody know the new address of the code conventions?

    jwenting wrote:
    your fallacy is in assuming that "old == bad". If the original was good there's no real need to touch it (and IMO it was good).
    Maybe add a few sections explicitly making statements relating specifically to things like generics and lambdas, but most of that can be derived easily enough from what's in there as is).
    I'm equalling old with "may be outdated" but I leave it to Oracle to decide if so and when to update. But if Oracle has decided now is the time then my guess is that Java 8 has a lot to do with it.
    But maybe I shouldn't have posted an opinion so I withdraw my guess. Happy?

  • PO Naming Convention for specific company code

    Hi experts!
    Is there any way to know this PO naming convention is belongs to which company code?
    For eg: PO naming convention starts with 600*******.
    How will i know which company code is using the naming convention for their purchase order?
    Please help.
    Thanks.
    Crystal

    Hi Crystal,
    Naming convention is based on document type not company code :
    Refer the below customsing path:
    SPROMaterials ManagementPurchasingPurchase Order--Define Document Types
    SPROMaterials ManagementPurchasingPurchase Order--Define Number Ranges
    Regards
    Ramesh Ch

  • Code Inspector - Naming conventions &mExtended Naming conventions for Progs

    Hi experts,
    I had a look into the naming conventions enforced by 'DEFAULT' variant of code inspector (SCI).
    the relevant categories are: "Naming Conventions", and "Extended Naming conventions for Programs" under "Programing conventions".
    in the "Extended Naming conventions for Programs" category, for functions, (applicable while calling the functions) it says,
    importing parameter : I[:type:]_
    exporting parameter : E[:type:]_
    changing parameter  : C[:type:]_
    tables parameter    : T[:type:]_
    but in the "naming conventions" category, for functions (applicable while defining the functions), it says,
    importing parameter : P_*
    exporting parameter : P_*
    changing parameter  : P_*
    tables parameter    : P_*
    I felt, while defining the function too, its better to have beginning with  I_, E_, C_ or T_ instead of P_
    is the 'DEFAULT' variant of code inspector is provided and recommended by SAP?
    for easier maintenance and clearer understanding, which naming convention is more suitable, or is there any official guidelines released by SAP for ABAP developers.
    appreciate the opinions from experienced abap developers.
    thanks,
    Madhu_1980

    Frank,
    Thanks for your answer.
    But what about Entity Objects, View Objects, View Links, and Application Modules.
    I would like my developers to have an easy way to name them and also find them via intellisense.
    So I was thinking in naming them the following way :
    Entity Objects :
    EO_Employee
    EO_Department
    View Objects :
    VO_Employees
    VO_Departments
    View Links :
    VL_EmployeesToDepartments
    Application Module :
    AM_HRService
    However the use of "_" is not so "Java naming oriented".
    So other alternatives would be:
    1. take the "_" :
    1.1 EOEmployee (I don't like the fact of having 3 capital letters together).
    1.2 EoEmployee (I don't like the fact of having Entity Object with a lowercase "o").
    2. Use the prefix at the end, but this way I loose the intellisense feature I want:
    ex: EmployeeEO
    Which naming approach are you using for big projects ?
    Thanks,
    Claudio.

  • Where can I find some appications' source code  written by swing

    hello, everyone
    I have studied swing for one month, and I have some basic idea of the swing.
    but I want to learn more about the swing. can anybody tell me how can I improve
    myself now or show me where can I find some appications' source code written
    by swing in the internet.
    thank you very much!
    your help is very appreciated!

    Check this tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    It explains all the Swing components with many code samples.
    HTH
    stefan

  • Code Conventions

    Hi All,
    being a complete Java(TM) newbie here is a very silly question.
    After reading the "Java Code Conventions" (see http://java.sun.com/docs/codeconv/)
    and studying here and there the Java core library source code (see src.zip
    on your SDK installation) I was wondering what the heck is the characters
    sequence @(#) behind the file class name in the header comment.
    You can see it in all classes' source code and in paragraph 11.1 of the
    aforementioned JCC. For example,
    * @(#)WhatIsIt.java 1.82 04/09/02
    * Copyright [...]
    All the best

    It is some kind of a marker for the source code control system that Sun uses. When you make changes to the file the system knows to update the revision number ("1.82") and the modification date ("04/09/02") automatically thanks to the presence of "@(#)".
    I think Sun uses a system called SCCS; you'd write something else.if you used RCS or CVS for instance.

  • Project Conventions for J2EE Apps Early Access...

    Hi
    I am trying to set up a standardized directory structure for J2EE apps that is flexible enough from a simple webapp to a complex J2EE App with multiple EJB components, WARs...etc..etc...
    For this, I turned to Java Blueprints Guidelines, Project Conventions for Enterprise Applications Early Access 1 posted on the Sun's web site...
    This document states among follwoing that (quote)
    -----(quote)
    These conventions, which the Java BluePrints team has followed with its applications (which can be accessed from http://java.sun.com/blueprints/code/index.html), assume that developers use the Ant tool for building projects. Developers using other build tools may have to make slight modifications to the conventions.
    ----(end quote)
    I have downloaded the latest J2EE SDk which has samples directory containing the famous , Adventure BUilder, Petstore, etc, etc.....But they do not follow project directory structure as outlined in this document...Moreover, I found each app has different project directory structure even for the same functional part..
    1. Are the J2EE sample apps bundeled with J2EE SDK different than the ones available as separate download?
    2. If they are not, where can I download sample apps that demonstrate project conventions outlined in the guidelines document...
    Any comments are welcome...
    Thanks
    zambak

    Hi,
    The project conventions are new and early access version1. So it will be changing a little bit and as a result the apps may get a little out of sync. We are currently switching the apps over to match with the project conventions. For an app that dempnstrates project conventions, please see the adventure builder on java.net at https://adventurebuilder.dev.java.net/
    We are working on a revised version of the project conventions, so your feedback/comments would be highly appreciated.
    -Smitha
    Hi
    I am trying to set up a standardized directory
    structure for J2EE apps that is flexible enough from a
    simple webapp to a complex J2EE App with multiple EJB
    components, WARs...etc..etc...
    For this, I turned to Java Blueprints Guidelines,
    Project Conventions for Enterprise Applications Early
    Access 1 posted on the Sun's web site...
    This document states among follwoing that (quote)
    -----(quote)
    These conventions, which the Java BluePrints team has
    followed with its applications (which can be accessed
    from http://java.sun.com/blueprints/code/index.html),
    assume that developers use the Ant tool for building
    projects. Developers using other build tools may have
    to make slight modifications to the conventions.
    ----(end quote)
    I have downloaded the latest J2EE SDk which has
    samples directory containing the famous , Adventure
    BUilder, Petstore, etc, etc.....But they do not
    follow project directory structure as outlined in this
    document...Moreover, I found each app has
    different project directory structure even for the
    same functional part..
    1. Are the J2EE sample apps bundeled with J2EE SDK
    different than the ones available as separate
    download?
    2. If they are not, where can I download sample apps
    that demonstrate project conventions outlined in the
    guidelines document...
    Any comments are welcome...
    Thanks
    zambak

  • Number convention for Secondary cost element

    Hi,
    Anyone can guide me how to check the number convention for secondary cost element being set up in SAP?
    thank you

    Hi,
    The best way so far i have experienced is:
    Start the numbering with two digits from your company code and then cost element category and then the numerics.  If you have too many Cost elements, better to have 10 Digit numbering system.
    Assumption: You have multiple company codes
    For Example you company code is TP01
    Activity Type Cost element:
    TP43000001 - Labour Hours
    TP43000002 - Machine hours
    and so on
    This is easy for identifying either from the consultant point of view of the end user point of view
    Best Regards
    Surya

  • Can anyone tell me the naming conventions for PSa tables

    hi all,
    After the data is loaded into the psa. how to look at the records that are there in psa. And can anyone tell me the naming conventions for psa tables.
    like BIC/????
    thanxs in advance
    regds
    hari

    Hi Hari,
    You want to know the naming convention of PSA table. For that there is a simple technique try this.
    Go to - T code SE11
    In the database table check box give  /BI*  and click search
    next window  in the Description Text box give the r data source name(master)  like
    YIO_ID_ATTR which is assigned to infosource. then click OK.
    then you get the psa table structure.
    You can take structure and check in the T code SE 11
    Hope this is fine.
    Regards
    Sreekanth

  • Check code conventions

    Anyone seen or have any ideas about using javadoc to check code for code conventions compliance? I read about use of it to report source where variables are not declareed private (http://www.smotricz.com/kabutz/Issue035.html) - it might be interesting to apply this to other conventions such as variable and method naming.

    No ideas here. We have a DocCheck doclet, but that checks only doc comments, not the
    code itself: http://java.sun.com/javadoc/doccheck
    A doclet based on javadoc 1.3.x could only check the declarations of code and not its
    implementation, because it does not have access to the implementation through the
    Doclet API. With 1.4, the Doclet API gives the source position (file, line number) of the
    code, which a doclet could then access and check the implementation.
    -Doug Kramer
    Javadoc team

  • Help on error message: Naming convention for menu enhancements not observed

    Hi all,
    I was trying to enhance a transaction and got into entering function code without following naming conventions (i.e. function codes should start with '+'). It is not allowing me to change it by throwing an error "Naming convention for menu enhancements not observed".
    This question was previously posted in the thread --  Re: Error in SMOD ?
    which was not answered. Can you help me in resolving this error or revert my modifications that I have done while enhancing?
    I appreciate any help in regard.
    Thank you,
    Deepak

    You shouldn't get this message if you just create the implementation. I feel that you are trying to change the definition part of the standard extension, using SMOD transaction. That's bad
    If you want to enhance, create a project using CMOD transaction, enter the extension name, then simply double-click the +... function code and enter your text.

  • Powershell naming conventions for functions

    There is a lot of information about the Verb-Noun naming convention for cmdlets.  I am trying to understand what the recommendation / best practice is for naming  functions.  Personally, I like the idea that if I see Verb-Noun, I know it's
    a cmdlet, and it supports the standard parameters.  However, I'm not sure I see the entire picture.
    Thanks!

    There are as many opinions around this as there are people.  TechNet has some good recommendations for naming conventions, but you should adopt whatever standard you are most comfortable with.  In the end it doesn't much matter which convention
    you adopt, as long as you stick to it and keep it consistent.  Most corporate code doesn't get outside or shared with other businesses and vendors, so the whole purpose of standards and conventions is to keep things straight for YOUR people.  As
    long as you consistently apply your conventions, it doesn't matter.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

Maybe you are looking for

  • Configuration file /dbentities/common/bc4j.xcfg is not found in classpath

    Hello, I used database data control and drag & dropped onto the page.If I clean and build & then run its fetching the data but if run project without build then I get the following exception. Configuration file /dbentities/common/bc4j.xcfg is not fou

  • Field "GR Non-valuated" in tab "Goods receipt" of the production order

    Hi, When creating a production order, the field "GR Non-valuated" in tab "Goods receipt" is checked by default, due to my assessment customizing. This field indicates to the system that it should not create any accounting document, whereas I would li

  • Receiver Email Adapter - Attachment Rename!!!

    Hello All, We are using PI 7.11 SP05. We have a scenario where a file has to be written in a folder as well as sent as an email attachment. The Email attachment should be zipped and the name of that attachment should be filename with extension zi. Fo

  • Error when adding line items in a Contract

    Hi All, Need your help regarding the following issue. The business user is trying to edit (to add more line items/materials) a contract with customized T.Code ZGME31K. Getting error "Enter rate USD / rate type M for 11/24/2009 in the system settings"

  • Click on an image...to pop up a message!

    Hello all... I've been trying to see if its possible to make an image 'active', meaning it should be clickable, parts of it when clicked should pop up a message. What i've tried so far... tried superimposing smaller pics on the original, but how do i