My applet works in the appletviewer but not in the navigator

My applet works in the appletviewer but not in the navigator
exceptions problem1 and problem2 are throwed
this is my code
import java.applet.*;
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ValiderHtml extends Applet implements ActionListener {
JButton send =new JButton("Connexion");
JScrollPane jscrollpane= new JScrollPane();
DefaultListModel lignes=new DefaultListModel();
JList lstURL = new JList(lignes);
BufferedReader reader = null;
String ligne;
URL url;
URLConnection conn;
   public void init(){   
   this.setSize(900,400);
   setLayout( new GridLayout(2,1));
   jscrollpane.setBounds(new Rectangle(19,53,160,73));
   jscrollpane.getViewport().add(lstURL,null);
   send.addActionListener(this);
        this.add(send);
   this.add(jscrollpane);
    public void actionPerformed(ActionEvent evt) {
         Send();
   public void Send(){
        try {
   url=new URL("http://www.developpez.com");
   conn = url.openConnection();
   reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
while ((ligne = reader.readLine()) != null) {
                 lignes.addElement(ligne);
    }//fin bloc try
   catch (Exception e) {
               lignes.addElement("probleme1");     
            finally{
               try{reader.close();}catch(Exception e){ lignes.addElement("probleme2");}
   }// fin Send
      public void paint(Graphics g) {
            super.paint(g);
}// fin Applet

As for tracking the source of your problem your applet sucks.
Try e.printStackTrace() on a cought exception and check the (full) trace.
url=new URL("http://www.developpez.com");
Unless yor applet is on www.developpez.com this will throw an exception in an unsigned
applet without special policies.
Signing applets:
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post and last post for the java class file
http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
4th post explaining how to set up your own policy with your own keystore

Similar Messages

  • Applet working perfectly in the appletviewer but not in the browser

    I have tried everthing that came upto mind to get the applet working in the browser, which includes
    using of the HTML Converter, downloading the java plugin, newest netscape nevigator6.23 and installing j2sdk 14. still i am unable to get the applet working in the browser where as it works perfectly fine in the appletviewer. Applet takes the gif name and the time deplay to dipaly the pictures after the delay.

    Can we see the HTML source code .and hope ur using the <object > or <embed> tag ..

  • Applets work under older compilers, but not newest

    The applets I compile using the latest release of javac (with the JDK 1.4 package) work in the appletviewer but not in IE 6.0. However, if I use an older version of javac from a couple years ago (not sure the version), the applets work in IE suddenly. Is there something I need to install in IE to make it compatible with the Sun 1.4 javac compiler? Should I just reinstall the JRE? Has anyone heard of this before? Thanks!!

    You could try installing the Java 1.4 plugin.
    http://java.sun.com/getjava/

  • Opening a new file in photoshopcc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    Graphics card is the problem.
    Trying to update drivers now.
    Thanks for your help
    john

  • The screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    the screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    Have you tried a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • Ichat works for me when I'm in the US but not in the UK.   In the UK it is like watching a tape played at about 1/10th speed.

    iChat works for me when I'm in the US but not in the UK.   In the UK it is like watching a tape played at about 1/10th speed.  I have O2 broadband (who decline to help as they "do not support third party software").

    Hi
    In iChats prefs click on video and change bandwidth limit to 500.
    Restart iChat.
    Tony

  • Same command works on the server but not on the workstation

    Scenario
    Exchange 2010 sp3
    Name                           Value
    CLRVersion                     2.0.50727.4984
    BuildVersion                   6.1.7600.16385
    PSVersion                      2.0
    WSManStackVersion              2.0
    PSCompatibleVersions           {1.0, 2.0}
    SerializationVersion           1.1.0.1
    PSRemotingProtocolVersion      2.1
    Worstation:
    Name                           Value
    PSVersion                      4.0
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    CLRVersion                     4.0.30319.18063
    BuildVersion                   6.3.9600.16406
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
    PSRemotingProtocolVersion      2.2
    I input a command from my workstation using ISE
    get-exchangeserver | Where-Object {$_.IshubtransportServer -eq $True} | Get-MessageTrackingLog -Start (get-date).AddHours(-2) -Sender '[email protected]'
    Error:
    The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the 
    parameters that take pipeline input.
    The Exact same command from the Server works.
    In my profile I have the following:
    set-Location c:\
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'http://MyExchangeServer/powershell'
    import-pssession $Session
    Import-Module ActiveDirectory
    $host.PrivateData.ErrorForegroundColor = 'green'
    Clear-Host
    From My Workstation:
    PS C:\> Get-PSSession
     Id Name            ComputerName    State         ConfigurationName     Availability
      1 Session1        MyExchangeServer  Opened        Microsoft.Exchange       Available
    Why  does the command work on the server but not on the workstation?
    Alexis

    Hi Tiri2014,
    There are some differences between Remote PowerShell and Exchange Management Shell. You cannot use the pipeline when you run some cmdlets by using Remote PowerShell.
    Here’s a link to similar case for your reference:
    Error message when you try to pipe the result of a cmdlet into another cmdlet by using Remote Powershell in Office 365 dedicated: “The input object cannot be bound to any parameters
    for the command”
    http://support.microsoft.com/kb/2701827/en-us
    Hope it helps
    Best regards

  • HELP!! WRT54G2 works for one computer, but not for the other

    I have a WRT54G2 and it is connected to 2 computers. The internet works in one computer, but not on the other. The tech support said i needed to configure it or firmware or something like that. But my product is out of warranty and I really need the internet on the other computer as well. Please Help!!!

    As your one computer is working fine then there is no problem with the router so far...
    The computer which is not working...check the IP Address on that...
    Click Start >> All Programs >> Accessories >> Command Prompt...A black box will appear(Command Prompt)...In the Command Prompt window type ipconfig and press 'Enter'...Look for Ethernet Adapter Local Area Connection IP Address , Subnet Mask and Default Gateway...
    IP Address should be 192.168.1.x, Subnet Mask : 255.255.255.0, Default Gateway : 192.168.1.1 (assuming your router is 192.168.1.1)...
    If you get the above mentioned IP Address, Subnet and Gateway Address then you should ping the Gateway, type ping 192.168.1.1 and press Enter...If it gives you request timed out then disable any firewalls, security softwares on the computer...
    If you get 4 replies then type ping 4.2.2.2 and press Enter, if you get request timed out, then you need to upgrade your router's firmware...If you get 4 replies then type ping yahoo.com and press Enter...If you get replies for Yahoo then you should get the Internet after adjusting the browser settings...
    Adjusting Browser Settings : Open an IE, click Tools >> Internet Options, then delete all files, cookies, history, forms...Goto "Connections", make sure Never Dial a Connection is checked, click on LAN Settings and make sure all the options are unchecked...Once you are done click on O.k...Close the IE and re-open it...
    If yahoo times out then provide static DNS on your LAN Connection...
    Click on the Start button >>> Settings >>> Control Panel >>>Network Connections- Right click on the icon for Local Area Connection and go to properties- On the 'General' tab select 'Internet Protocol TCP/IP' and click on the Properties button- Select 'Use the Following DNS Settings' Preferred DNS 4.2.2.2 Alternate DNS - 192.168.1.1>>Click on Ok button to Save and Click on "Close" on main Properties window...You should be able to go online...

  • Why would a rented movie work on the ground but not in the air?

    This is the craziest thing.  I rented a movie from my MacBook Pro and then transferred it to my iPad 2 for a flight.  However once I got on the plane each time I tried to open it I received a message that the movie could not be opened.  OK.  I figured I made a mistake in the transfer.  Once I got home I tried to open the movie again (in Airplane mode, just to be sure) and it loaded right up.  I didn't press play since I was leaving on another flight in two days.  Got on the flight and had the exact same problem.  Once I landed I tried it again and it loaded right up, but I didn't hit play because I have another flight on Friday.  What are the odds it will occur three times in a row?  I have 20 days left on the rental and about six more flights.  This could be fun.
    To lend a little irony to the situation the movie is "Up In The Air".  Anyone have any clue what the heck is going on?  The only variable among the two instances is that in the air I had headphones plugged in, but on the ground I didn't.

    Hi Dominique:
    First-if your mac can control the camera but not see the video,
    *Open Garageband
    *Play a note or two
    *Close Garageband
    *Open iMovie
    The camera will work now-REALLY!!
    If not, look here:
    http://docs.info.apple.com/article.html?artnum=43000
    Sue

  • TS1347 just recently my iphone is not syncing calendar to my macbook.  It has worked all along until about a week ago.  It does transfer new items from the computer to the iphone but not from the iphone to the computer.

    just recently my iphone is not syncing calendar to my macbook.  It has worked all along until about a week ago.  It does transfer new items from the computer to the iphone but not from the iphone to the computer.

    Plug you iPhone into your computer, select the iPhone, select the photos tab. Now check (not uncheck) the sync photos from... Select the folder where the photo came from, click apply then sync, now uncheck the sync photos box, click apply, it will ask you if you want to remove the photos click remove, it will not delete other photos exept the ones in the folder that was synced. Then click sync and the photos will be removed

  • My movies and music videos won't show up on screen, I can hear the sound but not see the video how do I fix this?

    My movies and music videos won't show up on my computer screen, I can hear the sound but not see the video how do I fix this? I'm not sure what to do as far as turning my purchased movie into DVD goes either. I just want to put the movie onto a DVD disc but my itunes won't even show that I have a blank disc in the drive, I'm not sure what is wrong or how to fix this, any help at all would be much appreciated.

    Hi @anthony7722 ,
    Thank you for your query, I will do my best to help!
    I grasp that you uninstalled the Intel graphic driver and the catalyst control.  You reinstalled the Intel driver and now you can view and hear videos on the Internet but you are unable to set the resolution as high as previously.
    When I checked the specifications for your notebook I see that you have switchable graphics.
    Here are two links that I believe will help.
    Overview of Switchable Graphics or Dual GPUs
    Switchable Graphics on Notebooks Configured with Intel and ATI GPUs
    Here is a link to HP Pavilion dv7-6150eb Entertainment Notebook PC Drivers
    Please try this process.
    1. Download the chipset driver, and both graphic drivers and save them  but do not install them yet
    2, Delete the chipset driver and install the updated one.
    3. restart your notebook
    4.Delete the Intel driver and install the updated one
    5. restart your notebook
    6. Delete the AMD driver and install the updated driver. 
    You should now have a Catalyst Control Center.
    This should now allow you to use the higher graphic card which should support the higher resolution.
    I hope this helped.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • I can see iMovie in my dock and at the top of the computer but not on the screen.  What am I doing wrong?

    I can see iMovie in my dock and at the top of the computer but not on the screen.  What am I doing wrong?

    Uncheck the box marked Translucent menu bar in the Desktop & Screen Saver preference pane. If that doesn't work, see below.
    My toolbar at the top of my screen is suddenly blackened

  • Our IPod connects to the WIFi, but not to the internet.

    Our IPod connects to the WIFI, but not to the internet.  We have a wireless router which we connect our MACBOOK to the internet and our IPod.  The MACBOOK works fine, but not the IPod.  It shows to be connected to WIFI, but whenever we try to connect to an internet site i.e. Sarfari, we get an message "Safari cannot open the page becuase it is not connected to the internet".  We have tried rebooting, but it has not helped.

    Try:
    - Resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Setting
    - iOS: Troubleshooting Wi-Fi networks and connections

  • TS3972 My Apple TV connects to the wifi but not to the internet.

    My Apple TV connects to the wifi but not to the internet. Currently using a D-Link Router and Shaw Cable in BC Canada.
    Apple says "Connections through proxy servers are not supported". Would that be Shaw? How can I update the ATV
    software without connecting to a TV and the internet? Can I connect it to my MacBook Pro? ATV worked very well in Arizona
    using CenturyLink as an ISP provider and their modem/router. ATV software is 5.0.

    What happens when you try to connect? I would contact your ISP

Maybe you are looking for

  • Need to know the column names in my dynamic select clause

    Dear All, Please go through the following code. While executing the following code i am getting an error saying that dbms_sql.describe_columns overflow, col_name_len=35. Use describe_columns2. Please guide me how to proceed further. Or please help me

  • I can't get Photoshop CS3 to start up?

    Just installled SL and CS3 won't start up? Just hangs on loading screen? New MBP. Any idea's Thanks

  • Name_in(date field) is converted in which format

    using name_in with a date parameter is automatically converted to dd-mon-yyyy character format. How to change this returning format?

  • Is it a must to use Solution manager for ECC 6.0 upgrade

    Is it a must to use Solution Manager for ECC 6.0 (FICO & HR) upgrade? I am told Solution Manager is required only if it has ABAP and JAVA stacks, or involves Enhancement Packages; and could be optional if it is only ECC 6.0 with ABAP stacks.

  • Apexexport utility

    Trying to run the utility gives: Z:\application_express\V4_0_1\apex_4_0_1\apex\utilities\oracle\apex>java oracle. apex.APEXExport Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apex/APEXExpor t Caused by: java.lang.ClassNotFoundExc