Focus issues between Applets on a web page

I have a web page that contains two applets(A1 and A2) each containing a JTable with editable cells.
If I click on an editable cell in the table in applet A1 so this I can change it and I then click on an editable cell in the table in applet A2, I now have both cells available to edit.
This is not the intent as I would like the focus to shift from A1 to A2 and editing stop on A1.
I have tried a focusListener on the applet but that never seems to get called.
Does anyone have an example of how to accomplish this?
Jim

I will try the newer SDK.
Could you offer an example of how to setup the focusListener given the an applet declaration of:
public class SimpleTableApplet extends JApplet {
    public void init() {
    public void foobar() {
}and so forth.
I would prefer not chasing phantoms.
Thanks,
Jim

Similar Messages

  • Trying to add a simple applet to a web page

    Well, I was trying to add a simple applet to a web page(php nuke Home section), it didn't fin my applet, so I changed it and added it to a simple html file to make it as simple as I could get it.
    This is the code in the html file:
    <applet code="usblock.class" width="400" height="400">The browser doesn't support applets...</applet>The directory: www/usblock.html & www/usblock.java & www/usblock.class - As you can see the files are all in the same directory/folder.
    usblock.java code:
    import javax.swing.*;
    import java.awt.*;
    public class usblock extends JApplet
         public void init()
              JPanel p = new JPanel(new BorderLayout());
              p.add(new JLabel("Heisann"));
              add(p, BorderLayout.CENTER);
    }now as I open the html local on my computer, it workes. As soon as I open the usblock.html from my website, it doesn't.
    It gives me this error here:
    load: class usblock.class not found.
    java.lang.ClassNotFoundException: usblock.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 moreSo I thought it was that it couldn't find the .class file. Well, I went through the How To add applets that I found somewhere on sun.com. It had exactly the same as I had.
    Im figuring the problem is something easy and not hard to detect. But my eyes can't find it somehow. This is my second time trying applets, and I kinda forgot how I got it to work the first time.
    Im just glad for all the help I can get.
    Thanks a lot.
    LordSvae
    PS: Sry for the size of the post, but I'm not sure how much info I was supposed to put in here, so I thought the more the better, right? :S

    Hii,
    I doesn't know the solution but same kind of problem is come with me & I found that the problem is of Path i.e. you need to set a codebase attribute . For tempory solution what i do i simply copy the .class file in to html file dir.

  • LookAndFeel issue reloading an Applet in a Web page

    Hey all,
    I have an Applet that runs on a web page (loaded by servlets and JSP's using Tomcat 3.2.1 and Apache). I created my own LookAndFeel class and have a static function in the applet that sets the LookAndFeel to my new class. Everything works fine when the Applet is first loaded. However, when you exit the applet and then reload it, the custom LookAndFeel is gone and all I get is the default Metal. If I load the applet with appletviewer, I can reload it as much as I want and it always loads my LookAndFeel class.
    The static function is as follows
    /** Static initializer to set the LookAndFeel
    static {
    try {
    UIManager.setLookAndFeel(new MyNewLookAndFeel());
    catch (Exception e) {}
    I do not get any exceptions and like I said, everything works great when loaded with appletviewer.
    I have tried adding the SwingUtilities.updateComponentTreeUI(this); in either the start(), init(), or my own createGUI() function and it still does not work.
    Any ideas? Could this be a problem with the browser caching the applet? I am using IE 5.50.

    I have the same problem
    putting them in static doesn't keep the look and feel
    putting them in the applet constructor does'nt keep it
    putting them in init() doesn't keep it
    putting them in start() doesn't keep it
    heck, even putting them in all 4 of them together doesn't keep the look and feel, it always reverts back to metal

  • How to resolve network issue or dns to access web page on snow leopard server?

    I have my network setup like as follows:
    internet > router 1 > ethernet ports > switch > router 2
    I have a mac osx snow leopard server connected to "router 1", but it is so slow when accessing a web page hosted on the server from a browser on a workstation connected to either router 1 or router 2?
    Is there a problem with my network setup or maybe because I changed the name to newservername.local?

    @Jeff and @Camelot,
    I think it is a DNS issue.  I completely reset the DNS settings on server and the local name with the steps below, but now cannot access the site hosted on the server at all
    I used a modified version of http://www.mkahn.com/2010/09/configuring-dns-on-mac-os-x-10-6-snow-leopard-serve r-for-hosting/ to reset the server set
    1.  Stop DNS Service in Server Admin
    2.  Close Server Admin
    3.  Obtain 10.6 DNS Default files (below)
    4.  Overwrite the DNS files with DNS Default files:
    /etc/dns/loggingOptions.conf.apple
    /etc/dns/options.conf.apple
    /etc/dns/publicView.conf.apple
    /var/named/named.ca/etc/named.conf
    /var/named/named.local
    /var/named/localhost.zone
    5. Restart your server
    All machines have 1ms ping responses within the network including this snow leopard server that I am trying to setup.  There is another test web server that return pages instantly within this network so I doubt it is a network issue, but a DNS issue.

  • Embedding a j3d applet into a web page

    My students have just created a new zealand tourism jsp web page using JBuilder2006 struts with tiles framework and have also created a j3d applet with an animated logo. We wish to embed the j3d graphic on our opening jsp page. We have tried the depracated <applet> tag and also now we are trying the <object> </object > tag.
    <OBJECT codetype, classid,width,height,codebase,archive ></OBJECT>
    We just get a black empty frame were the graphic should be despite our best efforts.
    How do we embed j3d graphics on web pages, is it that difficult.
    Anyone out there help or point us in the right direction.
    We are so near and yet so far.
    Regards form New Zealand
    John (Tutor)

    I think this still works. Just change the names and parameters.
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 800 HEIGHT = 800 ALIGN = middle  codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = "AlternateAppearanceScopeTest.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.2.2"  CODE = "AlternateAppearanceScopeTest.class" WIDTH = 800 HEIGHT = 800 ALIGN = middle  scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
    <blockquote>
    <hr>
    If you were using a Java-capable browser,
    you would see Hello Universe! instead of this paragraph.
    <hr>
    </blockquote>
    </NOEMBED></EMBED>
    </OBJECT>regards

  • Applets in local web pages using IE

    In IE SP2 you cannot view local (hard drive) web pages that contain scripts without answering a lot of questons. To get around this you can put th so-called 'Mark Of the Web' in the HTML and presto! Javascript scripts now run. BUT Java applets still do not. They silently fail to load .
    Without thread-creeping off into flames against MSFT, does anyone know how to work around this?

    Chk this.
    Web Page Composer – how easy it is to create and publish a web page (Part III)
    Regards
    Manisha

  • Getting applets into a web page

    I am trying to learn about Java Applets from a book, after having done a little programming at college.
    My problem is that the books first example (�Watch�) works fine when viewed through an appletviewer, but when I try to add it to a web page I get a �load: class Watch not found� error in IE. The Watch CLASS file is in the same directory as the Html file, so I cannot see how it is unable to find it.
    My only thoughts are that my IE doesn�t support Java2 and that some part of the coding falls into this category. Is it possible to check if my IE supports Java2, and if not, is there a pluggin for it?
    As this is a simple program I�ve included all my coding below.
    Watch class:
    import java.awt.*;
    import java.util.*;
    public class Watch extends javax.swing.JApplet {
    private Color butterscotch =new Color(255, 204, 102);
    private String lastTime = "";
    public void init() {
    setBackground(Color.black);
    public void paint(Graphics screen){
    Graphics2D screen2D = (Graphics2D)screen;
    Font type = new Font("Monospaced", Font.BOLD, 20);
    screen2D.setFont(type);
    GregorianCalendar day = new GregorianCalendar();
    String time = day.getTime().toString();
    screen2D.setColor(Color.black);
    screen2D.drawString(lastTime, 5, 25);
    screen2D.setColor(butterscotch);
    screen.drawString(time, 5, 25);
    try{
    Thread.sleep(1000);
    }catch(InterruptedException e){ //do nothing
    lastTime = time;
    repaint();
    HTML Page:
    HTML>
    <HEAD>
    </HEAD>
    <TITLE>WATCH APPLET</TITLE>
    <BODY>
    <APPLET
         code     = "Watch.class"
         width     = "345"
         height     = "50"
         >
    </APPLET>
    </BODY>
    </HTML>

    normally the Java Plugin is installed when you install
    the JDK.
    have a look at your Internet Settings (in IE):
    in the tab "Advanced" there should be an item called
    "Java (Sun)" (normally located directly over the item
    "Microsoft VM")Since installing JDK I have upgraded from 98SE to XP, if "upgraded" is the correct word.
    Just the "Microsoft VM" options ...... no mention of "Java(Sun)".
    Is there some way I can reinstall the plugin?

  • Hoe to deploy an RTP receiver applet on a web page?

    Hi... I am currently dealing with the RTPPlayerApplet that is embedded in a web page...
    However, i have the following errors when viewing the page...
    [Thu Jul 07 11:03:39 2005] [error] [client 127.0.0.1] File does not exist: C:/Apache-2.0.05/Apache2/htdocs/mystuff/MyTESTing4/media
    [Thu Jul 07 11:03:41 2005] [error] [client 127.0.0.1] File does not exist: C:/Apache-2.0.05/Apache2/htdocs/mystuff/MyTESTing4/jmfsample
    [Thu Jul 07 11:03:43 2005] [error] [client 127.0.0.1] File does not exist: C:/Apache-2.0.05/Apache2/htdocs/mystuff/MyTESTing4/javax/media/rtp/RTPSessionMgr.class
    Isit because i did not set the classpath for it? Or i stil need to custimize the .jar file?
    Can anyone help me to solve it?
    Thanks in advance.
    CArter

    I wish I could help you but this sample file is very out of date. I found the RTPPlayerApplet class and when I tried to compile it I found that half of the classes use have either been deprecated or don't even exist anymore. My advice is to try another sample.

  • How to Create a link between SAP and extrnal web page?

    Hi All,
    Can anyone help me solve this requirement?
    Is it possible that when I double-click on the document flow of a delivery document, it should direct me to an external web page (ie www.google.com).
    Your reply would be greatly appreciated.
    Thank you very much in advance.
    Ranilo T. Castillo
    ABAP Programmer

    Hello Ranilo
    The function module you are looking for is: <b>PRGN_START_EXECUTE_MODULE</b>
    URL_TYPE = 'URL'               
    URL      = 'http://www.google.com'
    Regards
      Uwe

  • Communicating between Applets on same web browser page.

    I one wishes to do variable/function calls between seperate applets on one page,
    -is there a simple way to do this (i.e. a global context object as a go between)?
    Could I have/be pointed to an example?

    Global context indeed. Your Applet will have a getAppletContext() method which returns an... AppletContext! And that has a getApplet(String) method which gets a reference to some other applet in the same context. The API documentation for that method contains more information than what I've posted here.

  • Reader X issues for PDFs embedded in web page

    I've just upgraded to Reader X.
    I subscribe to a private genealogy web site which has PDFs embedded in the pages.
    I have two issues with this:
    1. Some of the PDFs have links. Whenever a link is in the same place on the page as the floating toolbar, the toolbar obscures the link and I have to disable the toolbar to access the link. Very clumsy. It just makes me leave the menu bar in place instead, which devalues the cleaner look of version X over the earlier versions.
    2. Where an embedded PDF has more than one page, it takes the focus of the PgUp key, PgDn key and mouse scrollwheel, even when the cursor is outside the bounds of the PDF.  The page itself cannot be paginated or scrolled at all, I have to grab the side scrollbar and drag it up and down.  This is not browser-specific and was not a problem with version 9 and earlier. I can't find any settings to change this function.

    Disable the entry 'Display in Read Mode by default' in the preferences of Adobe Reader

  • Font issue when creating PDF from web page with Acrobat 8

    I have a group of documents created with html/css that i am converting to pdf. Everything works slick except for some reason every HTML page that spans more than one printable page in the PDF the first page body text looks bold, the rest of the text (on the subsequent pages) is not. I have 15 documents linked together and its doing it for everyone one, first page looks bold rest of pages not.
    I have checked all the font attributes in both the pdf and the html, there is nothing set to bold and all fonts have the exact same settings...
    Does anyone know what is going on? I am pretty green with Acrobat but not new to web tech.
    What am I missing here?
    Also when printed it looks fine, no issues, issues only in screen view...
    HELP!!
    Thanks
    Scott

    It may be that the page sizes are varying and you are seeing a zoom affect. Try setting the size to a specific value and see if it looks the same. That's a guess anyway.

  • I have an issue with saving some pdf web pages. (Am I in the right forum?)

    I cannot save my account statement from my bank's web site using my home laptop. The icon appears when I roll over it but it won't save when I click on it. Right click "save as" won't work either.  I can save it using my work laptop. I can save other pdf's on my home laptop with no issues at all. It's driving me mad. Help please

    Hi,
    I logged a call with AppleCare & have since had explained why this occurs (some time ago)
    I'll try to explain what was indicated to me.
    iOS has a limited Font Set & this affects what PDFs can display. You need to use iOS supported fonts in your PDFs to see/read them properly  
    These supported fonts are indicated here => http://support.apple.com/kb/HT4980
    Regards MS office docs, iOS doesn't have much of an API to work with MS Office documents at all so is stuck with 3rd Party Apps to try to do it.
    Unfortunately Mail in/on iOS uses the API to attempt to open/use MS Office attachments unless you tell it to use an App to open the attachment.
    I have had success opening & reading MS office docs now with CloudOn, but find it slow & very awkward to use.
    Not too sure if this helps others, but at least it explains why this is occurring

  • Putting an applet in a web page

    My applet connects to an Oracle database and when ran gets the following error:
    java.security.AccessControlException: access denied (java.net.SocketPermission oracle.isg.computing.dcu.ie resolve)
    Is it possible to run this without changing the java.policy file

    you don't need to buy a certificate - you can just sign the JAR your applet is in with the jarsigner tool that comes with the sdk
    you first need to use keytool to create a key (which it will store somewhere on your machine) - and you enter details like your name and company name which will appear in a dialog when your applet tries to launch
    it says something like "this applet is signed by Your Name Here - do you still want to run it?"
    the internet pages on keytool make it look complicated - which to be fair it probably is - but i've managed to use it for simple things (using webstart rather than applets)
    http://mindprod.com/jgloss/keytool.html
    I think if you just type "keytool -genkey" it might run through what you need to input one item at a time (there is a command line to do this but I can't remember what it is - sorry)
    asjf

  • Info from applet back into web page?

    I know that information can be passed to an applet via <param> tags, but can information be passed back to the page from an applet, perhaps to a javascript or php function?

    Well, you can call JS-Methods using liveconnect and the JSObject Interface
    Note that the browser has to support this which is often not the case. However IE and mozilla should be fine most time.
    have a look at docs for more info

Maybe you are looking for

  • Windows Time Server setting not following group policy

    I hardly use group policy, except for two settings: User Configuration\Administrative Templates\System\User Profiles\Exclude directories in roaming profile Computer Configuration\Administrative Templates\System\Windows Time Service\Configure Windows

  • MacBook Pro 10.6.8

    Hello Anne, My snow leopard 10.6.8 needs to have a browser update.  I do not know how to do this. I am a senior citizen with limited computer skills. I welcome any help you can give.

  • French characters in run time parameter values doesn't show up in emails

    We have a custom workflow with configurations to send email when a request is assigned to a person and also to send email on request rejections. We are encountering following issues with respect to French characters that are available in the message

  • I want to convert number to hours in oracle 10 like this.

    Dear All Some can help me I want to convert below MS-SQL query in oracle 10g. please help me. for eg: Select numasdate, Cast(numasdate / 60 as Varchar) + ' hours ' + Cast(numasdate % 60 as Varchar) + ' minutes' as [TotalHoursAndMinutes] From #SampleT

  • Audio issues when editing video clips

    Sorry if this been asked before and I'm having trouble looking for the answers on my own. I will start by saying that I have the latest built of Premiere and that's CS4.2 I'm trying to edit 720 60p clips natively from my Panasonic GH1 camcorder and I