Why the appletViewer not working

i want to run my applet program through AppletViewer, but when I type
AppletViewer tree.html, there is no error, but nothing promp up too,
if I use the broswer IE to run the tree.html file, it is work
any one know why I can not use the appletViewer to see the applet?

hi, thanks your reply
yes, I had give the resource code to the file
<html>
<applet code = tree.class height = 600 width = 600>
</html>
so, are there any other work I need to insert?hi,
the code is okay but you might have to make it like this:
/*<html>
<applet code = "tree.class" height = 600 width = 600>
</html>*/because it does not need to be complied.
with this much and the command,
appletviewer tree.java
at the command line would work fine.
hope you get through.
P.S. if you are having problems, please try posting the error too.
[email protected]

Similar Messages

  • Applet Working in the AppletViewer not Working in Explorer

    After a few compilation of the following code the changes I made to the java file were only viewed by the appletviewer, not the explorer, the change I have made and is not shown in the explorer is setting the foreground and back round of calPanel label. Please compile the code yourself:
    import java.awt.*;
    import java.lang.*;
    import java.awt.event.*;
    public class JavaCal extends java.applet.Applet implements ActionListener {
    // The 2 variables contain the numbers
    // for the action to take place
    double doubleBuf1 = 0;
    double doubleBuf2 = 0;
    // Contains the numbers and act in string format
    StringBuffer totalBuffer = new StringBuffer();
    // Interface components
    Button calPercent, calSqr, calClear, calDev, calSeven, calEight, calNine, calMul, calFour, calFive, calSix, calSub, calOne, calTwo, calThree, calAdd, calNull, calDec, calEquals;
    Label calPanel = new Label("0", Label.RIGHT);
    void buildConstraints(GridBagConstraints gbc, int gx, int gy,
    int gw, int gh, int wx, int wy) {
    gbc.gridx = gx;
    gbc.gridy = gy;
    gbc.gridwidth = gw;
    gbc.gridheight = gh;
    gbc.weightx = wx;
    gbc.weighty = wy;
    public void init() {  
    setBackground(Color.white);
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints constraints = new GridBagConstraints();
    setLayout(gridbag);
    //Calculator Panel label field
    buildConstraints(constraints, 0, 0, 4, 1, 0, 2);
    constraints.fill = GridBagConstraints.BOTH;
    gridbag.setConstraints(calPanel, constraints);
              calPanel.setForeground(new Color(65280));
              calPanel.setBackground(new Color(0));
    add(calPanel);
    constraints.fill = GridBagConstraints.NONE;
    //Button %
    buildConstraints(constraints, 0, 1, 1, 1, 100, 100);
    constraints.fill = GridBagConstraints.BOTH;
    calPercent = new Button("%");
    gridbag.setConstraints(calPercent, constraints);
    add(calPercent);
    calPercent.addActionListener(this);
    //Button Sqr
    buildConstraints(constraints, 1, 1, 1, 1, 100, 100);
    calSqr = new Button("sqr");
    gridbag.setConstraints(calSqr, constraints);
    add(calSqr);
    calSqr.addActionListener(this);
    //Button Clear
    buildConstraints(constraints, 2, 1, 1, 1, 100, 100);
    constraints.fill = GridBagConstraints.BOTH;
    calClear = new Button("c");
    gridbag.setConstraints(calClear, constraints);
    add(calClear);
    calClear.addActionListener(this);
    //Button \
    buildConstraints(constraints, 3, 1, 1, 1, 100, 100);
    calDev = new Button("/");
    gridbag.setConstraints(calDev, constraints);
    add(calDev);
    calDev.addActionListener(this);
    //Button 7
    buildConstraints(constraints, 0, 2, 1, 1, 100, 100);
    calSeven = new Button("7");
    gridbag.setConstraints(calSeven, constraints);
    add(calSeven);
    calSeven.addActionListener(this);
    //Button 8
    buildConstraints(constraints, 1, 2, 1, 1, 100, 100);
    calEight = new Button("8");
    gridbag.setConstraints(calEight, constraints);
    add(calEight);
    calEight.addActionListener(this);
    //Button 9
    buildConstraints(constraints, 2, 2, 1, 1, 100, 100);
    calNine = new Button("9");
    gridbag.setConstraints(calNine, constraints);
    add(calNine);
    calNine.addActionListener(this);
    //Button *
    buildConstraints(constraints, 3, 2, 1, 1, 100, 100);
    calMul = new Button("*");
    gridbag.setConstraints(calMul, constraints);
    add(calMul);
    calMul.addActionListener(this);
    //Button 4
    buildConstraints(constraints, 0, 3, 1, 1, 100, 100);
    calFour = new Button("4");
    gridbag.setConstraints(calFour, constraints);
    add(calFour);
              calFour.addActionListener(this);
    //Button 5
    buildConstraints(constraints, 1, 3, 1, 1, 100, 100);
    calFive = new Button("5");
    gridbag.setConstraints(calFive, constraints);
    add(calFive);
              calFive.addActionListener(this);
    //Button 6
    buildConstraints(constraints, 2, 3, 1, 1, 100, 100);
    calSix = new Button("6");
    gridbag.setConstraints(calSix, constraints);
    add(calSix);
              calSix.addActionListener(this);
    //Button -
    buildConstraints(constraints, 3, 3, 1, 1, 100, 100);
    calSub = new Button("-");
    gridbag.setConstraints(calSub, constraints);
    add(calSub);
    calSub.addActionListener(this);
    //Button 1
    buildConstraints(constraints, 0, 4, 1, 1, 100, 100);
    calOne = new Button("1");
    gridbag.setConstraints(calOne, constraints);
    add(calOne);
              calOne.addActionListener(this);
    //Button 2
    buildConstraints(constraints, 1, 4, 1, 1, 100, 100);
    calTwo = new Button("2");
    gridbag.setConstraints(calTwo, constraints);
    add(calTwo);
    calTwo.addActionListener(this);
    //Button 3
    buildConstraints(constraints, 2, 4, 1, 1, 100, 100);
    calThree = new Button("3");
    gridbag.setConstraints(calThree, constraints);
    add(calThree);
    calThree.addActionListener(this);
    //Button +
    buildConstraints(constraints, 3, 4, 1, 2, 100, 100);
    calAdd = new Button("+");
    gridbag.setConstraints(calAdd, constraints);
    add(calAdd);
    calAdd.addActionListener(this);
    //Button 0
    buildConstraints(constraints, 0, 5, 1, 1, 100, 100);
    calNull = new Button("0");
    gridbag.setConstraints(calNull, constraints);
    add(calNull);
    calNull.addActionListener(this);
    //Button .
    buildConstraints(constraints, 1, 5, 1, 1, 100, 100);
    calDec = new Button(".");
    gridbag.setConstraints(calDec, constraints);
    add(calDec);
    calDec.addActionListener(this);
    //Button =
    buildConstraints(constraints, 2, 5, 1, 1, 100, 100);
    calEquals = new Button("=");
    gridbag.setConstraints(calEquals, constraints);
    add(calEquals);
    calEquals.addActionListener(this);
         public void actionPerformed(ActionEvent event)
              /* Declares an object named "src" to represent the event.getSource()
              * method. This shortens the code that follows.
              Object src = event.getSource();
              /* Checks to see if the source of the event which src is representing
              * is a Button and can behave like a Button
              if (src instanceof Button)
         if(src == calNull) calPanel.setText("0");
         if (src == calOne) calPanel.setText("1");
         if(src == calTwo) calPanel.setText("2");
         if(src == calThree) calPanel.setText("3");
         if(src == calFour) calPanel.setText("4");
         if(src == calFive) calPanel.setText("5");
         if(src == calSix) calPanel.setText("6");
         if(src == calSeven) calPanel.setText("7");
         if(src == calEight) calPanel.setText("8");
         if(src == calNine) calPanel.setText("9");
         if(src == calAdd) calPanel.setText("+");
         if(src == calSub) calPanel.setText("-");
         if(src == calMul) calPanel.setText("*");
         if(src == calDev) calPanel.setText("/");
         if(src == calDec) calPanel.setText(".");
         if(src == calEquals) calPanel.setText("=");
         if(src == calClear) calPanel.setText("c");
         if(src == calSqr) calPanel.setText("sqr");
         if(src == calPercent) calPanel.setText("%");                         
    }

    Well,
    ata the end of init() method add two lines:
    doLayout();
    validate();

  • I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    A reply to similar question (Q & As , in product page Apple Store) says:
    "...dissable the internal reader hardware from devices setup. Then plug the external usb superdrive and that's it."  Answered by Enrique T from Lima Oct  25 2013.
    If you can locate an external Apple USB 'Air" superdrive for earlier model MacBook Air, that should work. The newer one for the Air is the same as for iMac, now.
    You may be able to use other brands of external USB optical drive with your older intel-based iMac, as some of them function capably. A few should also be able to see system discs or other bootable utilities on DVD.
    Hopefully this helps.
    Good luck & happy computing!

  • Why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    Facetime only works via WiFi. Are you trying to set up Facetime with a T-Mobile account?

  • HT202853 I have many project made in move HD that are not updating to the new iMovie 10 on my new iMac.  Why is this not working as stated?  How do I get my projects back from backup after old iMac crashed?

    I have many projects made in imovie HD that are not updating to iMovie 10 on my new iMac.  Why is this not working as stated on the article HT202853?  How do I get my projects back from backup after old iMac crashed?

    According to:
    Update projects and events from previous versions of iMovie in iMovie (2014) - Apple Support
    you can update from iMovie versions 7, 8 and 9, but iMovie HD is iMovie 6.
    Maybe you can update in two steps, first from iMovie 6 to iMovie 7, 8 or 9 then to iMovie 10. 
    Geoff.

  • TS3297 I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    I want to buy the double coins from the game subway surfers! But they told me to contact the itunes support! I don't know why it's not working.. Please help! iPhone 4ss

    These are user-to-user forums, you are not talking to Apple here. You can contact iTunes support via this page and ask them why the message is appearing : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then probably Purchases, Billing & Redemption

  • No earbuds work for the left side...why dis it not working?

    My sons and husbands iphones work just fine with earbuds that dont work on mine. Why is mine not working? Earbuds used to work but not anymore.

    Melinda1933 wrote:
    It couldnt be that cause they work just fine on my hisbands iphone. Im wondering if it can even be fixed! But its nothing i can fix with teouble shooting. Thanks though.
    Read my post again
    CHECK the earphone socket on YOUR iPhone
    The small round hole on top on left that is where the earphones are not working of course they work on
    another iPhone that is not the one wityh a problem
    If it is not debris it could be software  do the troubleshooting ..........

  • Since I joined creative cloud, I have not been able to sync. Why the difference? Worked good during initial trial. Also I had installed the Mosaic app before Lightroom mobile came out and I cannot seem to get rid of it. How can I get mosaic out? I have ca

    Since I joined creative cloud, I have not been able to sync. Why the difference? Worked good during initial trial.
    Also I had installed the Mosaic app for ipad before Lightroom mobile came out and I cannot seem to get rid of it. How can I get mosaic out? I have cancelled, I have deleted, I have looked through the files for visible remnants.

    The sync count is 60 and static. The total number synced so far is 500+. None have been synced from the ipad except for corrections made there on those already synced.
    I have deleted the Mosaic app from all machines and checked the library folder and have contacted the Mosaic tech support and they have discontinued my subscription. I still get mosaic messages on initiating Lightroom and sometimes at closing.
    I have not tried to sync fewer yet, but some catalogs that I have tried are smaller numbers. Initially, it did well on good connections. Nothing works on my home connections over satellite.

  • I had to restore my computer. After reinstalling itunes and sincronizing with my ipod, the music files were not organized in itunes as in the ipod: some songs were missing, some albums has no cover? Why is the sincronization not working properly?

    I had to restore my computer. After reinstalling itunes and sincronizing with my ipod, the music files were not organized in itunes as in the ipod: some songs were missing, some albums has no cover? Why is the sincronization not working properly?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Why is Adobe not working after I've downloaded the recommended updated version??

    Why is Adobe not working (I don't get even a picture!!, let alone audio) after downloading the recommended "updated version?"

    When I try to read the news clips...like OMG, or any of the "gossip" that involves a short video clip, a screen pops up saying that there's a new version of Adobe, which I should update to.  So I updated it...by the usual clicking where it says to click and I can see the new version being added.  But, after it's finished updating, I don't get even a picture...or sound...of the usual OMB lady speaking, nor do I get the video clips of any of the "gosspi" items or trailers, or anything else.
    There's just a big, blank space where the video would normally be showing.
    I could see the updates taking place on a separate screen that pops up, too.  It took a minute or so to finish.  I've done it at least 5 times, but I still get just a blank space in place of the picture and sound that used to pop up!  (The video clip of the father who jumped out of a moving car to pick up his daughter, who fell out of the car onto the road, for instance, does not appear...just a blank space!)
    I hope this clarifies my problem.
    What's "OS?"

  • HT1338 why is the video not working with skype on this os

    why is the video not working with skype on this os

    Try this:
    Quit Skype.
    Click on the desktop so Finder is active. Hold the option key down and click on Go in the menu bar.
    In the drop down, select Library.
    Open the Library folder and scroll down to Preferences.
    In that folder, there is a file called com.skype.skype.plist. Trash that file.
    Now try Skype.

  • Why does the alarm not work when the iphone 4 is turned off

    why does the alarm not work when the iphone 4 for is  turned  off works fine when on most other phones work when off

    The only phone I've ever had that would turn on and sound the alarm is a Blackberry. So, I'd hardly say "most phones" have this function.

  • Why does the mail not work when i updated my 5s to iOs 8?

    why does the mail not work when i updated my 5s to iOs 8?

    Thank you for the reply. But can you tell me what this configuration is about and how I should do this?

  • Why does the swiping not work to scroll down the screen

    why does the swiping not work to scroll down the screen or swipe from side to side

    Thank you for the reply. But can you tell me what this configuration is about and how I should do this?

  • TS1702 Why dose siri not work in the uk,

    Why does Siri not work in the uk?

    It does.
    All features of SIRI are simply not available in the beta version in all countries.
    http://www.apple.com/uk/iphone/features/siri.html

Maybe you are looking for

  • Moving time-dependant data from one table to another (archiving)

    Hello all I would like to know if there's an easier solution or a "best practice" to move data from one table to another. The context of this issue can be found within "archiving". More concretely: we have an application that uses several tables to l

  • Restrict the user   based on document type on migo transaction-prepare GRN

    Hi, We are running ECC6.0 R/3 system.We had a requirement as follows In MIGO transaction , we want to restrict the user on document type i.e. we want that a particular user can  prepare GRN for document type  STO only. He cannot prepare GRN for other

  • Swap image not working in IE on server

    Hi suddenly having problems with this - whether it's Win SP2 or what I'm not sure. swamp image works fine locally (off a network LAN drive) but not on the live server. I have preload images set, not restore on mouseout. The setup is an imap with a ho

  • Reg Batch determination using Process messages

    Dear all, Please suggest which BAPI to used so that we can carryout batch determination using process messages what we need is batch should be picked using FEFO during process message processing Thanks in advance Regards venkat

  • Branding Image - Dynamic Width?

    Hi there Is it possible to dynamically set the width of the branding image? I have designed an image which looks nice on my screen, but that's clearly too big for the user's machine. I can set the width lower in the theme editor, but then when you us