Can i create an oblect directly on applet instead of panel what is the erro

I am trying to create objects for applet instead of panel and this is giving error at compile time
import javax.swing.*;
import java.awt.*;
//<applet code = Applicant width = 400 height = 400></applet>
public class Applicant extends JApplet
JLabel lblAppId;
JLabel lblAppName;
JTextField txtAppId;
JTextField txtAppName;
JButton btnOK;
JButton btnCancel;
JPanel panel;
public void init()
panel = new JPanel();
lblAppId = new JLabel("Applicant Id");
lblAppName = new JLabel("Applicant Name");
txtAppId = new JTextField(50);
txtAppName = new JTextField(20);
btnOK = new JButton("OK");
btnCancel = new JButton("Cancel");
Applet.add(lblAppId); // error is cannot find symbol same for the rest 6 applet/
Applet.add(txtAppId);
Applet.add(lblAppName);
Applet.add(txtAppName);
Applet.add(btnOK);
Applet.add(btnCancel);
getContentPane().add(panel);
}

What explanation i got was this
JApplet() is an Toplevel Swing Container where atomic components cannot be placed .
So that is why we place the atomic components on the JFrame and then on the JApplet.
Is this right.

Similar Messages

  • Can we create a developersite in O365 SP Online programiatically ? what is the template code for it ?

    Hi
    I am trying to create sites programmatically in O365 SharePoint Online. So, just want to know that can we create a DeveloperSite ?? what is the template code for it viz. Team site- STS#0, etc
    If possible provide me the MSDN link where I can refer for available site templates for O365 SP Online sites creation.
    Thank you 

    http://community.office365.com/en-us/f/154/t/61145.aspx
    Are you meaning to create sites on SharePoint Online by invoking web services in your own program? SharePoint Online indeed provide some web services for custom programming, however, the web methods for creating a new site seems not included in them. Here
    are some resources for the development of SharePoint Online for your reference:
    SharePoint Online for developers
    http://msdn.microsoft.com/en-us/sharepoint/gg153540.aspx
    Code example for SharePoint Online: Accessing Web Services
    http://code.msdn.microsoft.com/office/SharePoint-Online-0bdeb2ca
    As to create a site collection, the parameter "Template" is the name of the template you want to use, as to find the name of the custom site template, you can use the powershell command "Get-SPOWebTemplate",
    it will list all the templates with the names.
    Note, The Template and LocaleId parameters must be a valid combination as returned from the Get-SPOWebTemplate cmdlet.
    Also check
    http://stackoverflow.com/questions/21268629/creating-new-site-collection-in-office-365-from-an-app
    If this helped you resolve your issue, please mark it Answered

  • Can i create a WAD directly into the production?

    Hi all,
    Can i create a WAD directly into the production?
    thanks
    Pooja

    Dear Pooja,
    yes you can if you have such authorizations in production system.but its not the good practice to do such testings on live system.because of the lot of loads and burdens will be there on live OLAP server.so instead of creating it in produtcion diredctly create it in dev or Quality and check your data quality and see whether your query needs tuning techniques and all then after making it all.transport the query to production and it will be deliverd to release version to the client to test it.otherwise may be your query creates some performance issues on the production system. so always follow the best practices and which is beneficial to you.
    assign points if it helps...
    Thanks & Regards,
    Ashok

  • Can I create a separate icloud account for my husband but still use the same itunes account?  I want our contacts, photos and storage capacity to be separate but be able to share music and apps we purchase.

    can I create a separate icloud account for my husband but still use the same itunes account?  I want our contacts, photos and storage capacity to be separate but be able to share music and apps we purchase.

    Welcome to the Apple community Pammy.
    Yes, that's exactly what I'd suggest for the vast majority of users.

  • I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    What do you mean a moderator

  • Can I create an album on my iphone and have it stores all the photos I take from then on to that folder/album?

    can I create an album on my iphone and have it stores all the photos I take from then on to that folder/album?
    I think that would be super useful before you go to an event, create a folder on the phone for that event and just use it to take pictures.  All the pictures for the event will be in that album and no need to move pics around at a later time!

    That would be great, but unfortunately, all new pictures automatically go into the Camera Roll.
    I wish that once you created an album and selected it to import from the Camera Roll, it would delete from the Camera Roll.

  • Can I create and manage collections in itunes instead of on the ipad?

    Can I create and manage collections in itunes instead of on the ipad? I have hundreds (maybe thousands) of PDF files for technical work items that I need to categorize and use on my ipad but it is a bit cumbersome to manually move them one at a time on the ipad.

    While you can add pdf files to iTunes it is not really intended to be used for organizing things other than a music collection.  It will only accept PDF files and media (audio, movie) files.  On the other hand if you can creatively come up with a way to make it work for you then go for it.

  • How can I creat a 802.1x Profile without Lion Server? I miss the plus-button in Lion to creat a 802.1x Profile.

    How can I creat a 802.1x Profile without Lion Server? I miss the plus-button in the Network Configuration (OS X Lion) to creat a 802.1x Profile.

    Tried this?
    http://blog.affien.com/archives/2011/03/16/802-1x-configuration-profile-on-lion- mac-os-x-10-7/

  • I'm told there is a virus associated with Adobe Reader. How can I tell if my machine is effected and if so what is the cure. I'm running OS X10.6.8 on an iMac with safari 5.1.5

    I'm told there is a virus associated with Adobe Reader. How can I tell if my machine is effected and if so what is the cure. I'm running OS X10.6.8 on an iMac with safari 5.1.5

    There are no viruses currently affecting the Mac but there is something called Flashback which is malware that has been doing the rounds and affected many Mac users. Apple have released some updates to Java that should remove it and improve protection. Run Software Update to see if there is anything for downloading.
    A few precautions that can help prevent your Mac becoming infected:
    If you use Flash only download it directly from Adobe.
    In all web browsers disable Java (but do leave Javascript on as that's something else).
    In all web browsers make sure downloaded files aren't set to automatically open after downloading.
    Consider disabling Java completely (launch Java Preferences in the Utilities folder and disable it - you'll likely rarely, if ever need it. If you do just turn it on and off again when your done).
    You can also check out this link:
    http://lifehacker.com/5900434/how-to-find-out-if-your-mac-was-infected-by-the-fl ashback-trojan-in-one-click

  • My itunes wont auto sync my iphone 4 after i connect it to itunes. But it can auto sync when i connect it to my old laptop. what's the problem that it can't auto sync and when i did a backup in my new laptop, it was corrupted the next day.

    But it can auto sync when i connect it to my old laptop. what's the problem that it can't auto sync and when i did a backup in my new laptop, it was corrupted the next day and i was forced to use back a backup which i did in my old laptop 4 months ago. do i have to reinstall the itunes? will my backups be corrupted after i sync again? pls guide.
    P.S/ its the latest version of the itunes whenever i did the backups.

    iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup? 

  • Hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    Only the carrier to whom the device is locked can authorize it's unlocking.  Contact the carrier to see if they offer unlocking and if you qualify.

  • HT1657 Can I watch my rented movie for just 24 hours? What about the 30 days? The countdown on my library returned in days countdown rather than hours. Can anyone clarify me about this?

    Can I watch my rented movie for just 24 hours? What about the 30 days? The countdown on my library returned in days countdown rather than hours. Can anyone clarify me about this?

    Read the article you linked
    iTunes Store: Movie rental frequently asked questions (FAQ)
    How long do I have to watch a rented movie?
    You have 30 days from the time of rental to watch your movie, and 24 hours (in the US) or 48 hours (elsewhere) after you've started viewing to finish it. Once the rental period expires, the movie will disappear from your iTunes library."

  • I can't attach files to my e-mails instead of embedding them in the body of the e-mail. Any ideas?

    I can't attach files to my e-mails instead of embedding them in the body of the e-mail. Any ideas?

    Mail sends certain kinds of graphical attachments as inline content. The decision to do that was made for you by Apple. There's no built-in way to override it, as far as I know.
    The recipient's mail client may or may not take Mail's suggestion to display the content inline.
    You have these options:
    Zip the files before attaching them to the message.
    Use something like Attachment Tamer. (That's not an endorsement — it may cause problems.)
    Use another mail client that allows for more control over the format of outgoing messages.

  • I can't use my software to reinstall CS6 Master Collection. What is the problem?

    I can't use my software to reinstall CS6 Master Collection. What is the problem?

    uninstall everything cs6, clean (Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6) and then reinstall.
    if that fails, expalin what you see when trying to reinstall that indicates to you that there's been a problem.

  • How can I create a PDF directly from RH10?

    It seems a bit absurd that the creators of PDF don't have any way to output a RH10 project directly to a PDF without using Word. Perhaps I'm missing something but I don't get why the resulting PDF ALWAYS has a screwed up TOC. It doesn't recognize the bookmarks as does HTMLhelp or WebHelp. (My source docs are HTMs for all projects)

    Going via Word also generally produces a better document. Today I printed a single topic direct to PDF and the images were a mess that Word fixes as it creates the document.
    When you print you have choices, map the styles to a Word template, use a single CSS to apply to all topics, or use the topics individual CSS files. All three of them then create a single document with the styles defined.
    I have many projects and use the same Word template for all. The projects have different CSS files. In the last page of the print dialog I map the project styles to the template styles. If for some reason I do need a different appearance in a document I amend the Word template or create a new one according to which is most expedient. The Word template gets changed in Word.
    Yes having Word installed is a prerequisite to importing from Word, linking to Word and generating printed documents. As you are working with linked documents I assume you must have Word and you will find using that is the way to go, your TOC problem aside. Are you perhaps letting your Word prejudice get in the way?
    I think you would do better if we focus on why you have TOC problems. Where exactly are these bookmarks? In linked documents or in Rh topics?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Index in .chm file is incorrect

    Hi, I'm using RoboHelp X5 with Windows XP SP3. I have an index that is correct in RoboHelp but not in the .chm file. In RoboHelp, I have General Ledger as a keyword and several sub-keywords. However, in the .chm file, the sub-keywords show up under G

  • Changes Made in PS5 not Always Recognized in LR3

    I use LR 3.0, PS5 on a Mac Pro 2.66 16GB Ram running OS X10.6.4 Lately I noticed that when I process an image from LR using Photoshop, sometimes when I close and save and go back to LR, some of the changes I applied to the PSD file are not showing in

  • Can i create pdx programmatically in c# ?

    Can i create pdx programmatically in c# ? If yes, then is it must to use adobe sdk for it ?

  • Guided procedures & WebDynpro (SAP-EU software component)

    Hi, I'm trying to develop a Webdynpro component that is going to be used in Guided Procedure (CAF) in 2004s SPS08. This snippet is in the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/de/8976417f2d5558e10000000a1550b0/content.htm">tutorial

  • Glitch in exported file

    i exported my project using the quicktime conversion. i'm bringing the exported file into another sequence. when i play it back using quciktime or in FCP there are scanline glitches that appear. Anyone know a good seeting to use ??? -Thanks!