Which tag may I use to include a code fragment in the javadoc

I want to include a fragment of my code in the javadoc, but I want it formatted in the Java style ..
how can I do that ??
like as:
* public Demo() {
* super("demo");
* UIDefaults defaults = UIManager.getDefaults();
* for(Enumeration keys = defaults.keys(); keys.hasMoreElements() ;) {
* Object key = keys.nextElement();
* System.out.println(key + ":\t\t " + defaults.get(key));
*/

It did not worked:
* The following code print out the complete UIManager values:<br>
* <code>
  import javax.swing.*;
  import java.util.*;
  import java.awt.*;
  public class Demo extends JFrame {
         public static void main(String[]args) {
                 Demo p = new Demo();
         public Demo() {
                 super("demo");
                 UIDefaults defaults = UIManager.getDefaults();
                 for(Enumeration keys = defaults.keys(); keys.hasMoreElements() ;) {
                         Object key = keys.nextElement();
                         System.out.println(key + ":\t\t " + defaults.get(key));
* </code>
* @author Felipe Ga�cho
* @version 1.0 (16/02/2004)
*/

Similar Messages

  • Which Bag do you use for your Camera? What about the GadgetBag 300EG?

    Which Bag do you use for your Camera? What about the GadgetBag 300EG?

    I agree - it's all about preference.  I use the ThinkTank Retrospective 7.  I *love* ThinkTank's attention to detail...  everything from having a rain cover included with the bag, to having ingenius use of velcro (sp?) patches to enable you to "silence" the bag so it doesn't make the big "SCRATCH" sound when opening the bag during a quiet event, etc.
    My best advice would be to do your research (which you're clearly doing) and have a clear understanding of the return policy wherever you buy it, and then don't be afraid to return it if you get it and feel it doesn't meet your needs.  A restocking fee is a small price to pay to not be stuck with a bag that doesn't work for you.  And if for any reason you get it and can't return it, there's always eBay. 

  • I own a iPhone 2G Today  He underwent updated Software He gave me this message "The SIM card inserted in this iPhone does not appear to be supported. Only compatible SIM cards from a supported Carrier may be used to activate iPhone. Please insert the SIM

    I own a iPhone 2G Today
    He underwent updated Software
    He gave me this message
    "The SIM card inserted in this iPhone does not appear to be supported.
    Only compatible SIM cards from a supported Carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported Carrier's store to receive a replacement SIM card.
    I did not know what to do??

    Follow this article: iPhone: Troubleshooting No Service or No SIM
    Symptoms
    In certain situations, iPhone may present one of the following symptoms:
    "Invalid SIM" or "No SIM Card installed" alert appears intermittently.
    Status bar displays "No SIM" when a SIM card is installed.
    Resolution
    If you encounter any of the above symptoms on your iPhone, try these steps to attempt to resolve the issue:
    Update your iPhone to the latest version of iOS.
    Toggle Airplane mode On and Off.
    Try turning iPhone off and then on again.
    Check for a carrier settings update. Tap Settings > General > About. If an update is available, a prompt will appear.
    Remove the SIM Card and verify that it is a valid, carrier-manufactured SIM. Also verify that it is not damaged, worn, or modified. Then reinsert it.
    Restore the iPhone.
    If you still are unable to resolve this issue, contact Apple support for further assistance.

  • When you open iTunes this message appears. The sim card inserted in this iPhone does not Appear to be supported. Only compatible SIM cards from a supported Carrier may bre used to activate iPhone. Please insert the SIM card That cam with your iPhone or vi

    When you open iTunes this message appears. The sim card inserted in this iPhone does not Appear to be supported. Only compatible SIM cards from a supported Carrier may bre used to activate iPhone. Please insert the SIM card That came with your iPhone or visit a supported Carrier's store to receive a replacement sim card.

    dear sir.
    where i get this replacement sim card.i live in bangladesh.not have support carrier in my coutry..
    so how get..please help me..

  • HT4623 The SIM card inserted in this iPhone does not appear to be supported. Only compatible SIM cards from a supported Carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported Carrier's store to r

    The SIM card inserted in this iPhone does not appear to be supported.
    Only compatible SIM cards from a supported Carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported Carrier's store to receive a replacement SIM card.

    I got the same message.
    I bought an iPhone 5 at full retail price from an AT&T store. I requested the phone to be unlocked through their unlock portal. The AT&T unlock system asked for the IMEI number, a copy of my receipt showing that I bougth the phone at "No Commitment" price. A few hours later I received a message from AT&T stating that the unlock request was approved. I then followed the instructions to back up the phone and restore it through Itunes. The phone activates normally with the AT&T SIM card. But when I insert my VODAFONE SIM I get the massage "THE SIM CARD... etc.
    I tried again to back up & restore the phone 3 or 4 times, no success. I have also allowed 24 hours for the unlock process to complete. Still no luck.
    I have checked again on the AT&T Unlock Status portal and it shows "Unlock approved".
    Where is the issue here? Do I have to call Apple or return the phone to AT&T and get the unlocked phone through the Apple Store?
    Thanks for any help on this.

  • TS4148 The SIM card inserted in this iPhone does not appear to be supported. Only compatible SIM cards from a supported Carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported Carrier's store to r

    The SIM card inserted in this iPhone does
    not appear to be supported.
    Only compatible SIM cards from a supported Carrier may be used
    to activate iPhone. Please insert the SIM card that came with your
    iPhone or visit a supported Carrier's store to receive a
    replacement SIM card.

    It appears that you have an iPhone that is locked to a carrier other than the one you were using. Now that you have tried to update the iOS, it has relocked. That is what happens if you are using a phone that has been hacked to unlock. You have also forfeited support from Apple and from this forum.

  • My iPhone won't sync calendar to iCloud, only to Google calendar, which I've never used. Events from iCloud sync to the phone and to Google.  Huh???

    My iPhone 3GS (ios 5.1) won't sync calendar to iCloud, only to Google calendar, which I never authorize or use.  Yet when I entere an event on the iCloud calendar, it syncs to the iPhone (and to Google calendar) just fine.  Any suggestions?

    Welcome to the Apple community.
    iCloud cannot sync with Google calendars, so it would seem that you may be using the wrong calendar account. Click on the calendar button in the top right hand corner of the calendar app and check which calendar you are adding your events too.

  • HT201263 Hi All, My iphone Model A1387 EMC 2430 FCC ID:BCG-E2430A IC:579C-E2430A and i am unable to activate my iPhone shows SIM Not Valid and Only compatible SIM cards from a supported carrier may be used to activate iPhone. Please insert the SIM card th

    Hi, My iphone Model A1387 EMC 2430 FCC ID:BCG-E2430A IC:579C-E2430A and i am unable to activate my iPhone shows SIM Not Valid and Only compatible SIM cards from a supported carrier may be used to activate iPhone.or visit a supported career 's store to receive a replacement sim card.
    how can i solve this?? please let me know.
    thank you.

    Sounds like the iPhone is locked to the original Carrier
    and you are trying to use  a sim from another carrier
    and only that original  carrier can unlock the iPhone

  • Which tags do i use for these functions...

    Hi guys,
    Im creating an online newspaper/fanzine website. It will
    contain content management system at the backend, all in
    coldfusion.
    Im aiming for it to do the following, and was wondering if
    you guys could tell me which CF tags i need to use for each one
    (it's been a while since i've touched CF!).
    - Front end will display news articles. Back end will need
    to submit articles for front end output. Apart from a text input
    form, i will need the client to be able to add images, of a certain
    size, to each article for display underneath the text. In short -
    an area to upload article + associated image for front end output.
    -A page containing links to download .rar files of the back
    issues of the paper, each file is approx 20mb, there will be around
    10 files available. (are these files going to have to be stored in
    a folder, within the website, and the links will go to the folder,
    and allow the client to download?) The website must be able to
    allow clients to download .rar's of the back issues.
    - Back end page to upload adverts, that will need to be
    trimmed/scaled to fit a specific DIV size at the front end.
    Thats it for now, although i may come up with others.
    Hope someone out there can give me some pointers.
    Cheers in advance guys,
    Dave

    Your question is quite broad, so it's difficult to provide an
    answer that's
    more use than "read the CFWACK".
    However you seem to have a requirement for form processing,
    so read this
    lot:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/dynamicForms_01.html
    And maybe image processing:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Images_01.html
    And, in general, reviewing the capabilities of CF:
    Tags:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags-pt0_01.html
    Functions:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_01.html
    I recommend at least glancing over all the tag and function
    summaries, so
    you know what CF can do.
    You might also want to think about not reinventing the wheel,
    and look at a
    CMS like FarCry:
    http://www.farcrycore.org/
    Or if you want to be more in a "roll your own" situation,
    then at least
    look at Model-Glue and ColdSpring:
    http://www.model-glue.com/
    http://www.coldspringframework.org/
    And use either Reactor or Transfer for handling your DB tier:
    http://www.reactorframework.com/
    http://www.transfer-orm.com/
    Tranfer seems to be the flavour-of-the-month of these two,
    but it always
    seemed a bit jerry-built to me: I prefer Reactor. Reactor is
    in a bit of a
    developmental hiatus @ present, but it has an active and
    helpful community.
    I strongly, strongly recommend resisting the thought that
    using a framework
    seems like a lot of effort, and you'll probably be all right
    just winging
    it. You'll be wrong. Model-Glue & ColdSpring seem a bit
    daunting at
    first, but really they are not. There's a few decent
    tutorials out there
    to get you up to speed quickly.
    I am purely a maintenance coder at present, so I don't have
    much choice in
    what I'm doing (goddammit! ;-), but I would not undertake any
    project - of
    any size - without using a framework.
    Adam

  • Which functions may one use? CRM_ORDER_MAINTAIN?

    Hi,
    I see a lot of posts where people are calling CRM_ORDER_MAINTAIN, amogst others.
    Is there an official document from SAP (maybe in the note or some other from) that says that customers may call this function? It is not released for customer use.
    Thanks and Regards,
    Martin

    Martin,
    I agree the function modules are not really "officially" released for public use, however there are a certain set of function modules you can use with not much worry.  For business transactions function modules in the CRM_ORDER_API are generally safe.  You can also use the CRM_<SEGMENTNAME>_<ACTION>_OW function modules without much issue.  You also need to use this API, if you are writing BADI's implementations for busines transactions. 
    However if you want to maintain business transactions externally then yes BAPI's or the XIF adapter is the way to go.  However this route is normally used for batch processing, and not user-exits. 
    I don't personally see any issues in using the "internal API".  The API modules are still very high-level(not making table updates directly), that it will not cause you to have system inconsistencies if used properly.  The API is relatively stable and does not really change between major releases.  SAP tends to just change the UI layer that calls UI or enhances the "structures" contained in the API.
    Let me know if you have further questions.
    Good Luck,
    Stephen

  • Include using jsp:include for a file from the docroot directory.

    Hello,
    I try to include one file from the doocroot but only can import files from the context (War deployed).
    when I put
    <jsp:include page="/foo.htm">
    to include this file: http://www.mydomain.com/foo.html
    it try to show this file: http://www.mydomain.com/mycontext/foo.html
    it puts ever the context before the name of my file.
    How can I include this file.
    Thanks
    PD: obviously 'foo.html' is in the doocroot.

    From within a JSP you have a reference to a PageContext called pageContext. This has a method getServletContext(). From the ServletContext you can find the real path the servlet lives in. So...
    File basePath = new File(pageContext.getServletContext().getRealPath("/"));Now basePath contains your path $Catalina/webapps/webservices. Then it's just a matter of working relative to that, e.g.:
    File usersFile = new File(basePath, "users.txt");

  • Which browser are you using? I've noticed in maintaining the NSNX car threads that Firefox is nearly useless, Safari works decent, and Chrome works pretty well.

    I created a Google Maps, map for keeping a railroad database for interesting locations. However I did use and continue to use IE for this and Email only, Firefox is my go to workhorse browser. It appears as though some forum members are having problems using the Personalized maps created in Google maps using Firefox. One of the members continually lost data unless he saved after each and every entry.

    I created a Google Maps, map for keeping a railroad database for interesting locations. However I did use and continue to use IE for this and Email only, Firefox is my go to workhorse browser. It appears as though some forum members are having problems using the Personalized maps created in Google maps using Firefox. One of the members continually lost data unless he saved after each and every entry.

  • HT201328 "The SIM card inserted in this iPhone does not appear to be supported. Only compatible SIM cards from a supported carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported carrier store." w

    im trying to unlock my orange phone to tesco mobile, i phoned orange n they sent a set of instructions, following the instructions it comes up with this error "the sim card doesnt seem to be supported, please contact your carrier" please help

    How long ago did you contact them regarding the unlock? It takes time.... time as in days or weeks, not hours.

  • Which one better to use - jsp:useBean or import statement

    Hi,
    I just want to know that which one is better to use jsp:useBean or import statement .
    I can instantiate and call method of myclass -
    1) by importing the class through import tag in jsp as <%@page import="myclass"%. or
    2). by using <jsp:useBean tag....
    i have these two option to do the same thing. i know that basically useBean is used to call setter and getter method of bean class and but it can be used to call a normal java file that have some logic .
    so what should i used , which one is better and why?
    useBean provides scope and object instance so no need to create object by new operator. and with import you have to create an instance .
    but which tag should i use in my jsp?
    i am confused???

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • Url will use to include in crawl rules settings and in content source

    HI
    i have a internet application and i want to add some urls to crawl rules to not display in search results.
    below is  alternate access mappings settings , which has an url for Default zone , and one for Intranet zone
    which url i will use to include in crawl rules settings and in content source
    adil

    Hi,
    As I understand, you want to know which Url of the application should be added to the crawl rules setting and content
    source.
    I recommend you to use default Url.
    If you use non-Default zone Url, it will impact at query time by crawling the non-Default zone, because the query processor
    attempts to translate the URL to the Default zone's Public URL before processing the query.
    The article below is about Alternate Access Mappings (AAMs) *Explained.
    http://blogs.msdn.com/b/sharepoint_strategery/archive/2013/05/27/alternate-access-mappings-explained.aspx
    Best regards
    Sara Fan
    TechNet Community Support

Maybe you are looking for