Pop up in Applet (NOT JApplet)

How do i create a single button pop up information box using applett.
I want to be able to define text within it too.

There are lots of ways to do this. Look at [url http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Dialog.html] java.awt.Dialog. You could also use a [url http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Frame.html]Frame opening from your within your applet, or a [url http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Window.html]Window or even a [url http://java.sun.com/j2se/1.4.1/docs/api/index.html]PopupMenu

Similar Messages

  • I always get an error: applet not inited

    ok here's my code
    public class Payroll extends javax.swing.JApplet {
        /** Initializes the applet Payroll */
        public void init() {
            try {
                java.awt.EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        initComponents();
                        //initialize a  frame
                        f = new PFrame();
                        f.setVisible(true);    
            } catch (Exception ex) {
                ex.printStackTrace();
        /** This method is called from within the init() method to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {....} // </editor-fold>                       
        // Variables declaration - do not modify                    
        // End of variables declaration                  
        private RecordInput recordinput;
        private PFrame f;
    }basically i want my applet to create a frame during initialization, its working ok in netbeans but when i tested it in IE it always shows an error saying applet not inited.

    here's my html for testing purposes
    <html>
    <head>
    <title>Payroll App</title>
    </head>
    <body bgcolor="#000000" text="#FF00FF">
    <center>
    This a Java applet:<br>
    <object height=150 width=300
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase="http://java.sun.com/products/plugin/autodl/j
    install-1_4_0-win.cab">
    <param name="Code"
    value="E:\Payroll\build\classes\payroll\Payroll.class
    >
    You need a Java-enabled browser to see this.
    </object>
    </html>Doesn't look correct. Google on how to create html page for an applet.
    Kaj

  • When i try to boot itunes, screen goes black and a message pops up and says not compatible with the visual elements. how do i fix this? itunes wont even open at this point. please help. thanks :)

    When i try to boot itunes, screen goes black and a message pops up and says not compatible with the visual elements. how do i fix this? itunes wont even open at this point. please help. thanks

    Let's first try the following document, only be sure that none of the boxes in the compatibility mode tab are checked (not just the compatibility mode box itself):
    iTunes for Windows: How to turn off Compatibility Mode

  • Applet not viewable in browser

    Hi
    applet not viewable in browser any website that uses java code seems not to run on my browser though it runs normally well on my friends computer. The browser shows a screen area in grey colour with an error message like "Exception: java.lang.ClassNotFoundException:GUIDemo.class" (im using Win NT4 and IE 5.5) checked the tools/internet options/advanced seettings the browser support is enabled. tried installing the newer version of JRE still not working ..Please guide about any settings that need to be modified or how can i fix this problem ..
    Regards
    anant
    [email protected]

    Hi
    Just a thought, but what broswer are you and your friend using? Are they different by any chance?
    There is an inconsistency between browsers and java, and unfortunately it can result in the error you saw.
    Basically, bog standard Internet Explorer uses its own JVM, whereas Netscape, Mozilla, Opera etc tend to use the java plug-in. To make matters worse, if you install the plug-in on a machine that has Internet Explorer installed, it over-rules the Microsoft version to make itself the default (but this can be undone by looking in the Options menu for Java-plugin and un-ticking the box). Give that a try first.
    Another cause that I have encountered was when using NT on a network, which had been configured not to accept Java Applets at all! Are you on such a network, or stand alone?
    Hope that helps.

  • I tried to set up my new ipod shuffle and a error message popped up saying Ipod not found cannot update.  I can't sync my ipod now but it is showing on itunes.  What should I do?

    I bought a new 4th gen ipod shuffle and tried to sdet it up last night.  I installed the latest itunes software and started to sync my ipod, but error boxes kept popping up saying ipod not found cannot sync.  It was showing in itunes, then it would disappear, then it would come back.  I am not very good with computers so I don't know what to do.  Can someone help?

    Do you have an iCloud backup?  If you backed up your old phone to iCloud you can go to Settings>General>Reset>Erast All Content & Settings (which will erase your phone), then go back through the setup screens again and when prompted choose Restore From iCloud Backup.  However your backup won't contain everything in your iTunes library (such as your music) so you'll need to be able to sync with your computer unless you purchased everything from iTunes and want to redownload it to your phone.

  • Applet not running in the broweser.

    Hello everyone I have a problem that is bugging me.
    in my pc at home i have operating system window xp i have oracle9i installed and also java and j2ee and version of internet explorer is 6.0
    .there is no proble running html pages but the problem is the applet are not running in the broweser even the java demo from sun is not running
    .when i try to run the applet a dialog box appears and shows this
    " jvm not find Download now" i do not have internet connection.
    and one more thing i want to down load or save file in webserver
    i donot know whether my pc is having default webserver but when i type this "http://localhost" a page of oracle is display listing jserver ,appache server and so many thing.
    do i have a webserver that can be used by me for java program(adv java) or i have to get one .as i told you there is java1.3 and j2ee1_2_3
    something like this i donot remember is there no default webserver along with them .how can i use them for my java programe .
    let me remind you the applet not getting downloaded in the browser is a bigger problem for me.
    i appreciate your concern please help me out
    have a nice day bye.

    1} The applet is not getting loaded in my internet
    browser.Error messages? Are you sure your setup is correct? Search. "Applet not working" usually has only a small range of reasons, all well-covered here.
    2}why the oracle page is displayed when i type
    "http://localhost".
    Maybe because you have some Oracle webserver?
    3} Do i have any default webbrowser in my system.Yes. The one that opens when you double-click on an HTML page.
    >
    thanks.

  • When I have headphones plugged into my iphone it says warning'' high volume'' and becomes first a red and then plop a number of red pops but it will not be so for someone else I know. My sound will be much lower than anyone else in the music, and when I t

    When I have headphones plugged into my iphone it says warning'' high volume'' and becomes first a red and then plop a number of red pops but it will not be so for someone else I know. My sound will be much lower than anyone else in the music, and when I talk by phone headset

    Hi! I have the same problem when I use my headphones .
    iPhone 4s England, iOS 6.1.2

  • HT1926 When I open itunes, this message keep popping up, "itunes was not properly installed. If you wish to import or burn CDs you need to reinstall itunes".

    When I open itunes, this message keeps popping up, "itunes was not properly installed.  If you wish to import or burn CDs you need to reinstall itunes."

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • "save as" pop up box does not allow me to save the document.

    Hello ,
    "save as" pop up box does not allow me to save the document. Shows a blank screen. Any idea what would cause this? I just purchased acrobat pro dc.
    Thanks!

    Found this solution:
    The default "Save As" dialog in Acrobat DC is different than the dialog that you've had in earlier releases of Acrobat, it also allows you to save to the cloud and previous locations you've saved files to. It is possible that when Acrobat tries to connect to "the cloud", it runs into problems. You may want to try to turn this feature off to see if that brings your save as dialog back: Open up Acrobat's preferences, then go to the "General" category and deselect "Show online storage when saving files":

  • Certain pop up windows are not apperaing on my screen.  Save as PDF and Doc preferences never appear

    Certain pop up windows are not apperaing on my screen.  Save as PDF and Doc preferences never appear, and lock me out until I press return.  So they are active, I just can't see them.  Any ideas?

    They are obviously off the screen somewhere. Did you have a dual monitor set up at one time? You can try increasing the resolution of your screen to see if you can get a part to show or maybe just resrt the preferences (Cmd(Ctrl)+Opt(Alt)+Shift as you restart AI) to reset the defaults.

  • Java applet not working savevid keepvid

    Hi all,
    I'm sure I'm not the only one who has been confounded by Java applets not working in certain download web services; in my case, keepvid.com and savevid.com to download copies of youtube videos.  It has been a huge headache and even debilitating in my case.  I teach film and video to middle schoolers, and we often use youtube as a resource for our class projects. 
    I found a solution today, I think, and wanted to share it:
    I installed the browser called "Torch" and it seems to work fine, so far.

    thanx 4 replying
    using the browser to view Applet is not recomended that is because if u change the the source-code and recompile the applet then run it using the broswer it will run the old-version
    Also i've found the solution here
    http://www.cs.utah.edu/classes/cs1021/notes/lecture03/eclipse_help.html

  • My macbook air with snow leopard OS. migrated to OS lion and have installed Java RE. a Bank website while opening in Java shows one error which window activity shows some applets not opening. it was fine in snow leopard. will somebody help?

    My macbook air with snow leopard OS was purchased last year. Recently migrated to OS lion and have also installed Java RE. A Bank website while opening in Java shows one error which window activity shows some applets not opening. But it was fine in snow leopard. Will somebody help?

    My macbook air with snow leopard OS was purchased last year. Recently migrated to OS lion and have also installed Java RE. A Bank website while opening in Java shows one error which window activity shows some applets not opening. But it was fine in snow leopard. Will somebody help?

  • I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store notice. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard (command-C).
    In the Finder, press the key combination command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • Pop up box is not handel in BDC program

    hi to all experts,
    in tcode ' IP10 '  one pop up box is came in simple processing and recording also. but when i used the system source code in program , this pop up box is not encounter on this conditions. how can i solve this issue.
    Help is appriciated.
    Regards:
    Mahesh

    hi,
    if the warning message coming in a pop-up window then it can be supressed in the following way.
    1. comment the lines of the code of bdc recording of that pop-up screen along with the perform of bdc ok code '=ENTE".
    2. use the structure ctu_params and fill the correspondings fiels, particularly the field nobinpt = 'X' and then use this structure in the call transcation statement as
    call transcation 'ME11'
    using bdcdata
    options from opt ( structure of ctu_params )
    3. At the time of recording use the option of check box " no batch input session ".
    regards,
    Alok

  • Applet Not found in Tomcat

    Hi, I am using tomcat and put a ChatApplet.class under the directory ..../YYY/WEB-INF/classes/abc, and ChatApplet.class like this:
    package abc,
    public class ChatApplet extends Applet{
    And a JSP under the /YYY/chat directory like this:
    <applet CODE=abc.ChatApplet.class>
    </applet>
    How the JSP can't show the Applet and it said "Applet Not Found"
    PLEASE HELP

    Have you set up the context for this in your tomcat
    config files.
    Check out
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
    For set up information.
    Amlan

Maybe you are looking for

  • Missing Baggage Folder in RH 7

    Hi, there. I'm trying add baggage files to an RH project, which I've done a zillion times in older projects, but in my new project there is no Baggage Folder to be found anywhere. Any idea why? How to fix? I have to add some PDFs and link them to top

  • Crystal Reports 13 for VS2013 Hangs when report deployed via Clickonce

    Hi, We have upgraded from vs2008 to vs2013 one of our .net C# projects. Project consist of a Server and a windows client. Reports are run in the client, and data transported with disconnected Datasets ( No direct connection to the database ). We use

  • Communiocation channel: Value with name asmaBaseFileName not available

    Hi friends, After upgrade our Dev system to PI 7.1. Whne i try to start the communication channels  from Communication channel monitoring. I am getting error for all the channels as follows : Configuration error: Value with name asmaBaseFileName not

  • Thank you,sharkura,I've solve the IO problem myself

    finally, I figure it out if you try to use FileReader to read the java program you are writing ,you will get in trouble. as I mentioned before,I get confused when I use FilreReader to read sth written by FileOutputStream(which should write binary fil

  • Up sizing

    It seems that trying to upsize image files are a problem with lightroom, ie producing j-pegs of 50meg from DNG 15meg.  increasing width and height in export works in a haphazzard fashion.  producing a 34meg tiff from an 11meg dng, exporting it, then