Why should we add the components of JAppet to Container object ?

why should we add the components of JAppet to Container object ? Because we are able to run the program by adding the components to the JApplet directly without using any container objects. Both with using and without using container to add components are giving the same outputs. So why we need to add them to container ? Thanks for all replying

we are able to run the program by adding the components to the JApplet directly without using any container objectsSort of true. JApplet does have an add() method. And you can use that method rather than using getContentPane() and adding things to the Container it returns. But this method does not add things to the applet "directly without using any container objects".
The [API documentation|http://java.sun.com/javase/6/docs/api/javax/swing/JApplet.html] explains: "JApplet contains a JRootPane as its only child. The contentPane should be the parent of any children of the JApplet. As a convenience add and its variants, remove and setLayout have been overridden to forward to the contentPane as necessary. This means you can write:
{code}
applet.add(child);
{code}
And the child will be added to the contentPane. The contentPane will always be non-null. Attempting to set it to null will cause the JApplet to throw an exception"

Similar Messages

  • With the new ipad coming out soon, why should I buy the ipad 2?

    with the new ipad coming out soon, why should I buy the ipad 2?

    I can only echo what Pogo says about buying based on what it does today.
    3 weeks ago I bought a Mac Mini. A new Mac Mini model has been rumoured to come out anywhere between the same week I made my purchase and the end of August. None's been released as yet.
    I wanted one in the week of June that I bought mine so I bought it based on the fact that it did what I wanted and I couldn't imagine anything which could be added that I'd want - my MacBook Pro doesn't have Thunderbolt so the most likely addition isn't really going to be much use for me.
    Basically you have to buy what you what based on what's out at the the time.
    I can promise that within seconds of the iPad3 being released, the web will be full of rumours about the next one!

  • HT5012 Why should I click the accept button for a server certificate at every initial time although it is listed as a trusted root CA on iOS6?

    I'm now using a root CA which was listed above.
    But when I try to connect WLAN via EAP with RADIUS initially, I should click the accept button for the certificate of the RADIUS Server.
    Why should it work?

    Hi,
    I'm still looking for the reason.
    Isn't there any way which can avoid the verification for a public certificate of authentication server using EAP-TLS.
    Why should I click the accept button in initial step for authenticating with RADIUS server using EAP-TLS although the root CA of the server certificate is listed in the default trusted CA on iOS?

  • I bought 3 films and none of them had subtitles or alternative languages: why? I paid full price (like a dvd) without the same options. Why should I pay the same price? What I want is to change languages or to have subtitles (Kung Fu Panda2 and Rise..apes

    I bought 3 films and none of them had subtitles or alternative languages: why? I paid full price (like a dvd) without the same options. Why should I pay the same price? What I want is to change languages or to have subtitles (Kung Fu Panda2 and Rise of the Planet of the Apes and SpongeBob).
    Pease tell me.
    Best Regards

    You can't change languages in any of the movies offered in the store. Some movies have subtitles but it is in the same language as the movie.
    Depending on what country you are in, you may get movies in that countries native language.

  • Why should I ask the community?

    Why should I ask the community, isn’t apple the one whom I should be getting help from?
    I don’t need apple points or free staff, considering that I have to work to make my leaving. I don’t have the time or the aspiration for it. I just want to know “ Why  iweb is limited on  the web site dawn load” I understand if the web site has been designed with other software , but have no understanding otherwise and I can care less for some smart… telling me to do backups or to get told to start all over!!!
    I since I don’t have all this time and I don’t wish to make all this time for communities, I just want understand if is time to stop buying apple products.
    Oidige

    Hi everybody first my apologies to the community members, It was not my intention to offend any of you or to criticize your genuine help!
    I’m very disappointed with Apple’s business conduct and their assistance in my home town, after changing  he back cover of  my Mac book, it didn’t work anymore. I bought a new one and all my problems with iweb started.  I went to different concessionaire but they had no solution for my problem. I won’t get in the details; I just cannot understand why the iweb software doesn’t have choice to dawn load sites creates with iweb!  One  again my excuses to the community!
    Sincerely Oidige

  • How should i get the delta data for those new object's previous delta data?

    Hallo all,
    i have 2lis_11_vahdr and i am using a standard and loading delta! now i have appended some new fields in the datasource then in infosource then in ods and infocube..! now how should i get the delta data for those new object's previous delta data???
    Jimmy

    Hi,
    After appending new fields in the datasoure.It is not possible to delta load, u should have to load everything
    Thanks,
    Shreya

  • Where Should I add the path of Down loaded librearys before working on form

    Hi all,
    This is Narendra.
    I am working on oracle apps technical.
    I have been working on reports,have little Knowledge on forms.
    After Instaliation before working on forms we have to down load librearys in to local mechian and add that path at some where.
    1)where should I add That path?
    2)From where I have to add down load that librearys?
    Regards,
    Narendra.
    [email protected]

    Narendra,
    If you want to open an Oracle Apps form using Forms Builder, then please do the following:
    - Copy all pll files, TEMPLATE.fmb & APPSTAND.fmb from $AU_TOP/resource to your local pc (C:\ABC)
    - Add (C:\ABC) to FORMS60_PATH in the registry (HKLM > Software > Oracle)
    - Close/Open Forms Builder
    - Open the form

  • Why should I download the cvs in order to build one packge?

    Why should I download all the cvs server content in order to build one package?
    http://archlinux.org/static/docs/arch-i … tml#source

    The abs command gives you full access to the instructions through which all your packages are built. Having a complete abs tree in your system is definitely a good idea and does not take much space. Moreover, it is time consuming only the first time you do that.
    Abs (as a complete build system for arch) is supposed to act in such way. If you do not like it and want just the PKGBUILD for a package in the arch cvs, it is very easy to do this and there is nothing arch specific there: just use 'cvs' to grab stuff, or use the web interface. There is no need to specify this in the arch docs because this happens for any os project using cvs. On the contrary, abs is the arch peculiarity.

  • Why should we trust the web app pool account for delegation?

    Hello,
    Can someone explain to me why we must trust the web app pool account for delegation in AD?
    here's what I understood:
    {Client computer}                                    {Web server}                         
    {SQL Server}
    domain\user1 ---auth. on web portal ----> [web portal]-domain\appPool-> the appPool account takes the identity of user1
    correct ?
    Thanks !

    To enable the MBAM Servers to authenticate communication from the Administration and Monitoring Website and the Self-Service Portal,
    you must register a Service Principal Name (SPN) for the host name under the domain account that you are using for the web application pool. More via https://technet.microsoft.com/en-us/library/dn645356.aspx?
    Eswar Koneti | Configmgr Blog: www.eskonr.com | Linkedin: Eswar Koneti
    | Twitter: eskonr

  • Should I add the QuickJava 2.0 extension?

    When I opened Firefox today, a tab opened (http://quickjavaplugin.blogspot.com/2013/09/quickjava-20.html) recommending that I add the QuickJava 2.0 extension. Is this ok/safe?

    Hey there Philipp! Thanks! Ciao, jlbjazz

  • Why should I use the OpenDocument file format?

    Forgive the noobish sounding question, because I'm definitely not a linux newbie anymore. The current xkcd (http://www.xkcd.com/743) got me thinking. I never had a problem with .doc files before, because everything can read them. And I'd never used .odt files before because I only recently discovered abiword-plugins lets me read .odt files in Abiword.
    So, I'd like you to please convince me why I should use .odt files over .doc files. Thank you.

    drcouzelis wrote:
    I wonder if it would be worth it to teach people how to use LaTeX. I certainly don't think it's more complicated than writing a Word document in all cases. I can't believe how much time my coworkers spend try to "format" many of the 50+ page documents we work with. So often I hear problems like "This page break is wrong", "The index links are all messed up", "How do I get rid of this space?", and similar. Some of the time the answer is "We'll just leave it" or "I'll just re-write it". I thought all of those big fancy buttons on the top of the window were supposed to make writing a Word document easy? /rant
    Say, is there an application that allows a person to right-click on a TEX file and "Open (as PDF)" and "Edit (as TEXT)", For any OS? You know, kind of like a JIT compiler.
    ...and is this too off-topic?
    Well, I could share my experience here.
    1. LaTeX is probably similar to Perl or Vim in terms of the learning curve. I mean, it's more "learn as you work" thing: LaTeX relies heavily on it CTAN repository and there are lots of different ways to do the same thing. Which is why all the guides are more like cookbooks with recipes how to perform different kind of tasks, not a 101 tutorial.
    2. LaTeX is more oriented towards large documents, rather books than articles. Which means, one doesn't really need all of the features that LaTeX has to markup a document less than 50 pages. Most of the guides teach you how to work with books, while most of the users need to work with smaller texts. It's not a real problem for somebody who uses LaTeX for publishing his books to use it for smaller texts, but in other cases it's a bit challenging.
    Whenever you grab a LaTeX guide, you can strip it off all the advanced topics and you'll find out that merely one or two chapters are needed for most WYSIWYG converts: document structure (the essential packages, etc), beautifiers (boldface, italic, underlining, etc), paragraph formatting (alignments, columns, etc) headers/titles, tables, images embedding and footnotes. All of this can be described in 50 pages at most, and that would be totally comprehensive.
    So basically, one just needs a guide to LaTeX for word processing. Learning LaTeX for that purposes using publishing-oriented guides is really time consuming.
    Perhaps, there is even some kind of a special macro for word processing, that has less features, but makes them easier to memorize and use - I don't know.
    Actually, Pandoc's user guide could be a nice starting point, since pandoc has exactly the needed feature set. You should just expand it with some page properties (interlinear interval, page margins, etc), a review of the available tools for LaTeX (aucTeX, vim-latex, LyX, Kile, gummi, may be some popular extensions to Geany, Gedit, Kate), some popular Web resources (package reviews, tips-and-tricks wikis, etc) and some further reading.

  • Should Apple add the a swipe option to the reminders app?

    I have been using the reminder app and I think Apple should add a swipe option as the interface for removing items, next to the checkbox they are already using. To me it seems it feels good to actually really have the movement of 'crossing this off my list'.
    What do you think?

    Users forum should not be mixed with product feedback; here you can send your suggestion to Apple: http://www.apple.com/feedback/appletv.html

  • My computer crashed that had all my songs on it - why cant I add the songs from my ipod to my itunes library?

    I would like to add all the music that is on my ipod to my itunes library - for some reason the backup itunes library I have does not have all the music on it and I do not know how to get the songs from my ipod to the itunes library - I do not want to sync the ipod with the current itunes as this would wipe out all the music I have on my ipod.  please help me to get this music back on my computer or in the itunes library.

    One option is to use iTunesFS and extract songs from your iPod.

  • HT204370 Why should I buy the movie in English and in my language (Slovak) as a separate purchases?

    Here is a screen shot from my iPhone. There is finaly a movie Brave available but if I want to have both audio versions I will have to spent twice 16,99 EUR.
    I prefer the English but for kids Slovak is essential. Any ideas how should I proceed?

    In case you haven't figured it out from everyone else's posts, you don't need to spend $30 per month for the 3G. If you don't need it most of the time, and only really want to use it for trips, then you just sign up for the service for when the trip starts, pay for a single month ($15 or $30 depending on how much you plan on using the 3G service). I don't think you even need to remember to cancel the plan after the road trip ... I think you can have it automatically terminate if that is what you want.
    I'm buying a 3G version, and I will either not sign up for any plan, or sign up for the $15 per month plan for most of the time. Before a trip when I think I will be using the 3G service more often, I will probably sign up for unlimited for that month only.
    If you are on the fence, it is probably worth the $130.
    Ron
    p.s. One more benefit that is a big deal for me that a lot people aren't talking about is the GPS. I think the iPad will be a great portable GPS unit, and the WiFi only versions do not have GPS capabilities. With multi-tasking, I think that more interesting GPS like apps will be available this fall as well. I think it would be great to have the iPad log GPS locations, and then when you transfer photos to your iPad, it could automatically encode them with the GPS locations.

  • Why I cannot add the weather of another country's city?

    Recently I am traveling in China, and last weekend I upgraded my MacBook Air (13-inch, Mid 2012) to the Yosemite. But I found I could only add cities in China, such as Beijing,Shanghai etc in the weather widget of the notification center. When I typed New York,Tokyo,Berlin,Rome etc, I got no results found. Is this a bug? How can I fix it?

    Is there anyone who has the same problem with me?

Maybe you are looking for

  • Should I sell my iPod Touch 4th Gen.? If so, how much should I sell it for?

    Hi, there! I'm new to this Apple Discussions page, so greetings to all. So I am thinking of selling my iPod Touch 4th Generation in order to buy the iPod Touch 5th Generation. My iPod has 16 gigabytes; I'm planning on getting the 5th Gen. 16gb as a r

  • I have a preloader, but...

    I have an mp3 file in a Flash movie using Flash MX. The movie purely consists of the mp3 file and a stop and play button. I would like the music (or movie) to play when 50% loaded and I am searching the net to find a way. I already have a preloader w

  • Color off when printing from iPhoto if photo was scanned in.

    When I scan a photo to a file or into an application and try to print from iPhoto, the colors are off. Usually darker than they appear in the photo. If I do a direct print from the scanner to the printer the colors look normal (OK). Any idea if there

  • Survey Builder Info

    About a year ago ABD-DBA requested some documentation on Apex Survey Builder. He got no answer. I've found only this: http://apex.oracle.com/pls/apex/f?p=67351:help:109647865776560::NO::: Anybody else found something better?? Problem: in order to vie

  • Lightroom and 10.5.3

    After updating to 10.5.3 I find that when using Spaces and Lightroom 1.4.1 I do not get a Lightroom window if I am in a space that does not have LR and then select Lightroom in the dock. If I have another application in that same space as LR and sele