What's wrong in my applet code?

Hi!
I' ve a big problem with my applet. It doesn't works with some pc. For example: two same operative systems, same browsers and versions; one of that display applet without problems. The other pc (even if a jre is manually installed) doesn't show the applet, and it doesn't show me any errors.
The page who not show my applet, has this code (the applet code is commented!! Why???):
<!-- ct classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width=770 height=313 codebase="/ols/html/plugin/jinstall-1_4_2-windows-i586.cab">
<param name="codebase" value=".">
<param name="archive" value="Esiti.jar">
<param name="code" value="esiti.AppletNew.class">
<param name="type" value="application/x-java-applet;jpi-version=1.4.2">
<param name="scriptable" value="false">
<param name="requestURL" value="http://[...........]">
<param name="sid" value="2185266:0">
<comment>
<embed type="application/x-java-applet;jpi-version=1.4.2" codebase="." archive="Esiti.jar" code="esiti.AppletNew.class" width=770 height=313 scriptable="false" pluginspage="/ols/html/plugin/jinstall-1_4_2-windows-i586.cab" sid="2185266:0" requestURL="http://[....]">
<noembed>
No Java 2 SDK, Standard Edition v 1.4.1 support for APPLET!!
</noembed>
</embed>
</comment>
</obje-->
Help me please!!!
Thanks a lot, Francesca

and it doesn't show me any errorsMore important: is the plugin that should run the applet started? In ie you can set security in such a way
that active x controls are not started. You can install the jre but IE security will not allowe you to run it.
Can you try to get a full trace from a machine where the applet doesn't run?
To turn the full trace on you can start the java console, to be found here:
C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
In the advanced tab you can fill in something for runtime parameters fill in this:
-Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
The trace is here:
C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log

Similar Messages

  • Does anybody know what is wrong with my java code?

    Does anybody know what is wrong with my java code?
    --------------------Configuration: <Default>--------------------
    stockApplet.java:47: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    if (M_pointThread==null)
    ^
    stockApplet.java:49: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    M_pointThread=new Thread(this);
    ^
    stockApplet.java:50: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class StockApplet extends java.applet.Applet implements Runnable
    int Move_Length=0,Move_Sum=0;
    String FileName,Name_Str,Content_Date;
    int SP[]=new int[2000];
    int KP[]=new int[2000];
    int JD[]=new int[2000];
    int JG[]=new int[2000];
    int Mid_Worth[]=new int[2000];
    String myDate[]=new String[2000];
    double CJL[]=new double[2000];
    double MaxCJL,MidCJL;
    Label label[]=new Label[10];
    int MaxWorth,MinWorth;
    int x_move0,x_move1,MaxLength=0;
    int x0,y0,X,Y,Record_Num;
    boolean Mouse_Move,Name_Change=true;
    int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
    public void init()
    TextField text1=new TextField();
    Thread M_pointThread=null;
    setLayout(null);
    this.setBackground(Color.white);
    this.setForeground(Color.black);
    for(int i=1;i< 10;i++)
    label=new Label();
    this.add(label[i]);
    label[i].reshape(i*80-65,10,50,15);
    if(i==2){label[i].reshape(80,10,70,15);}
    if(i==7){label[i].reshape(510,10,80,15);}
    if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
    FileName="six";
    Name_Str="six";
    this.add(text1);
    text1.reshape(150,385,70,20);
    text1.getText();
    public void start()
    if (M_pointThread==null)
    M_pointThread=new Thread(this);
    M_pointThread.start();

    Welcome to the forum. I think that George123 has your problem and its solution well in hand. Follow his good advice and you will have solved this problem. One other thing though just for future reference. If you post your code, here, you are going to want someone to be able to read it easily. Please use code tags when posting next time and your code will be much easier on the eye. You can find out about them here:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • What's wrong with the following code?

    What's wrong with the following code?
    Circle cir1;
    double rad = cir1.radius

    The circle Object was never instantiated.
    In other words, you have set a declaring of a Circle, but it has not been created in memory yet.
    You will create it using the " = new Circle( PARAMETERS_HERE ); "
    Or some other method that returns a circle.

  • What's wrong with this simple code?

    What's wrong with this simple code? Complier points out that
    1. a '{' is expected at line6;
    2. Statement expected at the line which PI is declared;
    3. Type expected at "System.out.println("Demostrating PI");"
    However, I can't figure out them. Please help. Thanks.
    Here is the code:
    import java.util.*;
    public class DebugTwo3
    // This class demonstrates some math methods
    public static void main(String args[])
              public static final double PI = 3.14159;
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);

    Change your code to this:
    import java.util.*;
    public class DebugTwo3
         public static final double PI = 3.14159;
         public static void main(String args[])
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);
    Klint

  • What´s wrong in my HTML code

    What´s wrong in my HTML code? I've developed a site that doesn't show up properly when using Safari. Could some expert tell med what errors we've made. Have a look at
    www.scandinaviandesigncenter.com
    We promise to send the person who helps us to fix this a real nice Scandinavian design present as a token of appreciations
    B rgds
    Jorgen B --> [email protected]

    Hi, Jorgan, welcome to Apple's user-to-user discussion forums.
    What version of Safari are you using? I am having no problems on any of the pages I have tried using Safari 2.0.3 under OS X 10.4.4. I have only browsed through the site, I have not tried filling out any forms.
    The first place I would look is at the results of putting your pages through the W3C Validator to see if they meet accepted html/xhtml standards. Your Home Page fails with a number of errors listed. Safari is one of the least forgiving of browsers when it comes to rendering non-standard, bad, or incorrect coding of web pages.
    1 Ghz 15 inch PowerBook G4 Mac OS X (10.4.4) 1984 Macintosh

  • What is wrong in this java code?

    Can someone please tell me what is wrong in this java code?
    /* The program is intended to start animating text at the click of a button, pause it at another click and resume at the next click. It should continue like this */
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextAnime implements Runnable
    JFrame frame;
    boolean flag;
    Thread animeThread;
    JLabel label;
    String[] textArray;
    public TextAnime()
    flag = false;
    animeThread = new Thread(this);
    frame = new JFrame("Animate Text");
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    frame.setLayout(gbl);
    JButton button = new JButton("Start");
    label = new JLabel("Stopped");
    textArray = new String[5];
    String textArray1[] = {"Programmer", "SportsMan", "Genius", "Friend", "Knowledgable"};
    for(int ctr = 0; ctr<5 ; ctr++)
    textArray[ctr] = textArray1[ctr];
    gbc.weightx = 1;
    gbc.gridx = 0;
    gbl.setConstraints(button,gbc);
    frame.getContentPane().add(button);
    ButList bl = new ButList();
    button.addActionListener(bl);
    gbc.gridx = 1;
    gbl.setConstraints(label,gbc);
    frame.getContentPane().add(label);
    frame.setSize(200,150);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setVisible(true);
    public class ButList implements ActionListener
    public void actionPerformed(ActionEvent evt)
    if(flag == false)
    flag = true;
    animeStart();
    else
    flag = false;
    //animeStop();
    public synchronized void animeStart()
    animeThread.start();
    Thread newThread;
    newThread = Thread.currentThread();
    newThread.notify();
    public void animeStop()
    animeThread.interrupt();
    public void run()
    int i = 0;
    try
    while(i == i)
    if(i==5)
    i=0;
    label.setText(textArray);
    animeThread.sleep(1000);
    i++;
    if (flag == false)
    animeThread.wait();
    catch(InterruptedException ie)
    label.setText("Stopped");
    public static void main(String args[])
    TextAnime ta = new TextAnime();
    Please tell me if this can be written in a more simpler manner. Also please correct this code. I am tired after trying many times.

    When I fix your error, compile and run it, I get this exception:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
         at java.lang.Object.notify(Native Method)
         at cruft.TextAnime.animeStart(TextAnime.java:81)
         at cruft.TextAnime$ButList.actionPerformed(TextAnime.java:63)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    %

  • What is wrong with the idl code generated by packager.exe?

    Hello everybody,
    I am trying to figure out what is wrong with the idl code generated by packager.exe. In the evaluation for the bug posted at http://developer.java.sun.com/developer/bugParade/bugs/4964563.html it says that the IDispatch interface is not exposed correctly and thus early binding of java objects is not possible using the current activex bridge implementation.
    As I am no idl expert I have no idea what that means. However, I managed to dig out the idl code generated by packager.exe for the following example bean:
    package test;
    public class MyBean
         protected int value;
         public MyBean()
         public void setMyValue(int _value)
              value = _value;
         public int getMyValue()
              return value;
         public MyBean getSelfReference()
              return this;
    }The corresponding idl code generated by packager.exe is
    uuid(81B0BF63-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    library MyBean
    importlib("Stdole2.tlb");
    dispinterface MyBeanSource;
    dispinterface MyBeanDispatch;
    uuid(81B0BF64-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanSource {
    properties:
    methods:
    uuid(81B0BF65-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanDispatch {
    properties:
    [id(4097)]
    int myValue;
    methods:
    [id(32768)]
    VARIANT_BOOL equals(IDispatch* arg0);
    [id(32769)]
    IDispatch* getClass();
    [id(32770)]
    int getMyValue();
    [id(32771)]
    IDispatch* getSelfReference();
    [id(32772)]
    int hashCode();
    [id(32773)]
    void notify();
    [id(32774)]
    void notifyAll();
    [id(32775)]
    void setMyValue(int arg0);
    [id(32776)]
    BSTR toString();
    [id(32779)]
    VARIANT wait([optional] VARIANT var0, [optional] VARIANT var1);
    uuid(81B0BF62-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    coclass MyBean {
    [default, source] dispinterface MyBeanSource;
    [default] dispinterface MyBeanDispatch;
    };Does anyone know what is wrong with this code and maybe how to fix the idl code? Generating the dll should then be easy (I already tried several variations of the idl code but as my idl knowledge is limited it didn't really do what I wanted).

    Then the question is why it does work with visual controls (even if you set them to non-visible)?

  • What's wrong with old applet tag?

    Hi there,
    What is wrong with old <applet> tag? It will stop displaying java applet in the new browsers? What do we gain by using <embed>?
    Thanks.
    Mike

    The applet element was deprecated in HTML 4.01 but still works. Continue to use it to display AWT applets in NE else if using SWING applets must to use EMBED. See Java documentation for details, in special the OBJECT tag chapter..better reading about HTML converter.

  • What's wrong with this mini-code? (Trying to draw graphics).

    Could someone please help me fix what's wrong the following test-program?:
    package project;
    import java.awt.Graphics;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class GraphicsTester extends JPanel
        JPanel thePanel = this;
        public void GraphicsTester()
            JFrame frame = new JFrame();
            frame.setSize(600,600);
            frame.add(thePanel);
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            g.drawRect(50, 50, 50, 50);
            System.out.println("Sup fool");
        public static void main(String[] args)
            GraphicsTester gt = new GraphicsTester();
            System.out.println("works2");
    }Any help would be greatly appreciated!
    Thanks in advance!

    Also, all Swing code should be called from the Event Dispatch Thread. It probably isn't hurting much in your case. But, in the body of main, do this (instead of the comment, put what you currently have as the body of main):
    EventQueue.invokeLater(
    new Runnable()
          public void run()
              // Your current body of main.
      });

  • What's wrong with my servlet code ?

    <p>
    Hi,
    </p>
    <p>
    I need to redirect user from jsf application to PHP app with some request attributes using POST method. To check how to do at first I prepared simple servlet:
    </p>
    <p>
    public class TestServlet extends HttpServlet {
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException,
    </p>
    <p>
                                                                                   IOException {
            req.setAttribute(&quot;p1&quot;,&quot;Value One&quot;);
            req.setAttribute(&quot;p2&quot;,&quot;Value Two&quot;);
            res.sendRedirect(&quot;http://www.mycompany.pl/test.php&quot;);  
        public void doGet(HttpServletRequest request, HttpServletResponse response)throws IOException,
    </p>
    <p>
                                                                                                                                ServletException{
                  doPost(request,response);
    </p>
    <p>
    I also prepared simple PHP page to display these attributes (Im sure this page works correct):
    </p>
    <p>
    &lt;html&gt;
     &lt;body&gt;
      Attribute p1:  &lt;? echo $_POST[&quot;p1&quot;]; ?&gt; &lt;br /&gt;
      Attribute p2:  &lt;? echo $_POST[&quot;p2&quot;]; ?&gt; &lt;br /&gt;
     &lt;/body&gt;
    &lt;/html&gt;
    </p>
    <p>
    Te problem is that attributes from servet don&#39;t displayed  on PHP page - why. What is wrong wit this servlet ?
    </p>
    <p>
    Kuba
    </p>

    Well if this line of code works for you:
    res.sendRedirect("http://www.mycompany.pl/test.php");
    you could append parameters by building the url string dynamically.
    res.sendRedirect("http://www.mycompany.pl/test.php?p1=ValueOne&p2=ValueTwo");
    Isn't PHP a server technology, if yes why don't you do all the work in php (you'll avoid cookie problems)?
    Regards
    Fred
    PS I don't think this forum is the right place for php questions.

  • What is wrong about this DefaultTableModel code?

    Hi,
    Can anybody tell me what is wrong about the construction of my JTable. I create the instance of the below class and add to my JTable:
    MyTableModel myModel = new MyTableModel();
    JTable costTable = new JTable(myModel);
    I can see printouts "MTM_1,2,3,4" then it gives me an exception
    Exception caught in Scenegraph: 16 >= 16
    The vector IFC_Tree.totalVector has members like:
    IFC_Tree.totalVector[0]: [IFCBeam, 4.962499618530273, m3, 0.0, 0.0]
    IFC_Tree.totalVector[1]: [IFCColumn, 13.84760570526123, m3, 0.0, 0.0]
    IFC_Tree.totalVector[2]: [IFCFloor, 113.82814025878906, m3, 0.0, 0.0]
    IFC_Tree.totalVector[3]: [IFCWall, 229.7195587158203, m3, 0.0, 0.0]
    IFC_Tree.totalVector[4]: [IFCRoofSlab, 215.8400421142578, m2, 0.0, 0.0]
    IFC_Tree.totalVector[5]: [IFCWindow_2.375*2.45, 8.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[6]: [IFCWindow_0.6*0.6, 20.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[7]: [IFCWindow_3.85*2.45, 3.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[8]: [IFCWindow_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[9]: [IFCDoor_0.9*2.1, 17.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[10]: [IFCDoor_1.8*2.45, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[11]: [IFCDoor_0.8*2.1, 28.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[12]: [IFCDoor_0.9*2.45, 11.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[13]: [IFCDoor_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[14]: [IFCDoor_1.0*2.1, 4.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[15]: [null, null, null, TOTAL COST, 0.0]
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import javax.swing.DefaultCellEditor;
    import java.util.Vector;
    //public class MyTableModel extends AbstractTableModel
    public class MyTableModel extends DefaultTableModel
    private boolean DEBUG = true;
    static double totalCost = 0.0;
    static Vector data = new Vector();
    static Vector columnNames = new Vector();
    static Vector tmp;
    public MyTableModel()
    System.out.println("MTM_1");
    addColumn("IFCOBJECTS OR PROCESSES");
    addColumn("QUANTITY");
    addColumn("UNITS");
    addColumn("UNIT COST (�)");
    addColumn("TOTAL COST (�)");
    System.out.println("MTM_2");
    for(int i=0; i < IFC_Tree.totalVector.size(); i++)
    System.out.println("MTM_3");
    tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    System.out.println("MTM_4");
    addRow(tmp);
    System.out.println("MTM_5");
    System.out.println("MTM_6");
    public int getColumnCount()
    return columnNames.size();
    public int getRowCount()
    public String getColumnName(int col)
    public Object getValueAt(int row, int col)
    public boolean isCellEditable(int row, int col)
    public void setValueAt(Object value, int row, int col)
    }

    Hi,
    Can anybody tell me what is wrong about the construction of my JTable. I create the instance of the below class and add to my JTable:
    MyTableModel myModel = new MyTableModel();
    JTable costTable = new JTable(myModel);
    I can see printouts "MTM_1,2,3,4" then it gives me an exception
    Exception caught in Scenegraph: 16 >= 16
    The vector IFC_Tree.totalVector has members like:
    IFC_Tree.totalVector[0]: [IFCBeam, 4.962499618530273, m3, 0.0, 0.0]
    IFC_Tree.totalVector[1]: [IFCColumn, 13.84760570526123, m3, 0.0, 0.0]
    IFC_Tree.totalVector[2]: [IFCFloor, 113.82814025878906, m3, 0.0, 0.0]
    IFC_Tree.totalVector[3]: [IFCWall, 229.7195587158203, m3, 0.0, 0.0]
    IFC_Tree.totalVector[4]: [IFCRoofSlab, 215.8400421142578, m2, 0.0, 0.0]
    IFC_Tree.totalVector[5]: [IFCWindow_2.375*2.45, 8.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[6]: [IFCWindow_0.6*0.6, 20.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[7]: [IFCWindow_3.85*2.45, 3.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[8]: [IFCWindow_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[9]: [IFCDoor_0.9*2.1, 17.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[10]: [IFCDoor_1.8*2.45, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[11]: [IFCDoor_0.8*2.1, 28.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[12]: [IFCDoor_0.9*2.45, 11.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[13]: [IFCDoor_2.0*2.1, 2.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[14]: [IFCDoor_1.0*2.1, 4.0, number, 0.0, 0.0]
    IFC_Tree.totalVector[15]: [null, null, null, TOTAL COST, 0.0]
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import javax.swing.DefaultCellEditor;
    import java.util.Vector;
    //public class MyTableModel extends AbstractTableModel
    public class MyTableModel extends DefaultTableModel
    private boolean DEBUG = true;
    static double totalCost = 0.0;
    static Vector data = new Vector();
    static Vector columnNames = new Vector();
    static Vector tmp;
    public MyTableModel()
    System.out.println("MTM_1");
    addColumn("IFCOBJECTS OR PROCESSES");
    addColumn("QUANTITY");
    addColumn("UNITS");
    addColumn("UNIT COST (�)");
    addColumn("TOTAL COST (�)");
    System.out.println("MTM_2");
    for(int i=0; i < IFC_Tree.totalVector.size(); i++)
    System.out.println("MTM_3");
    tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    System.out.println("MTM_4");
    addRow(tmp);
    System.out.println("MTM_5");
    System.out.println("MTM_6");
    public int getColumnCount()
    return columnNames.size();
    public int getRowCount()
    public String getColumnName(int col)
    public Object getValueAt(int row, int col)
    public boolean isCellEditable(int row, int col)
    public void setValueAt(Object value, int row, int col)
    }

  • What is wrong with this idoc code snip?

    Hi all here's the code that's supposed to give me a default value for a metadata in check-in:
    1. <$if dDocAccount like "test*"$>
    2. <$dprDefaultValue="Test"$>
    3. <$elseif userHasRole("TesterA") or userHasRole("TesterB")$>
    4. <$dprDefaultValue="A or B"$>
    5. <$elseif userHasRole("TesterC") or userHasRole("TesterD")$>
    6. <$dprDefaultValue="C or D"$>
    7. <$else$>
    8. <$dprDefaultValue="Not A nor B nor C nor D"$>
    9. <$endif$>
    Now if I leave the code like that only the first 2 lines work meaning that if first condition fails then the whole code stops working even though line 3 is true... is there something wrong in just calling dDocAccount on its own? never seen that happen before.
    If I change that first line for <$if *#active.* dDocAccount like "test*"$> then this first condition won't work but the rest (line 3+) does work!
    please help!!

    Hmmmm,
    If your first two lines work if true then the issue is with the elseif lines right?
    userHasRole("foo") returns true or false. Can you wrap userHasRole("foo") in an "isTrue()" function and test that way?
    What about exploding the OR statement and writing a bunch of elseifs to see if it works that way.
    The other thing you can do is to wrap your OR clause itself in parens
    <$elseif ((userHasRole("foo")) or (userHasRole("bar")))$>
    do stuff
    <$endif$>
    let us know what works for you
    Warmly,
    Billy Cripe
    Fishbowl Solutions

  • What is wrong with this applet?

    Hi,
    I can't get this applet to work when embedded in the browser. It gives no errors... just does nothing. It works alright in the appletviewer though.
    This is the code
    import java.awt.*;
    public class MainApplet extends DoubleBufferApplet {
        private Image[] images;
        private ImagePaths imagePaths;
        private String[] paths;
        private int appletWidth;
        public void init() {       
            imagePaths = new ImagePaths();
            paths = imagePaths.getPaths(); //get image urls from a mysql database
            appletWidth = (int) this.getSize().getWidth();
            images = new Image[paths.length];               
            for (int i = 0; i < paths.length; i++){
                images[i] = this.getImage(getDocumentBase(),paths);
    public void paint(Graphics g){       
    g.setColor(Color.BLACK);
    g.fillRect(0, 0, appletWidth, 100);
    int length = (images.length * 100);
    do{
    for (int j = appletWidth; j > 0-length; j--){
    for (int i = 0; i < images.length; i++){
    if (j < appletWidth){
    g.drawImage(images[i], j+(i*100), 20, this);
    try{
    Thread.sleep(5);
    } catch (InterruptedException e){
    } while (true);
    I use this HTML<HTML>
    <HEAD>
    <TITLE>Image Display</TITLE>
    </HEAD>
    <BODY>
    <applet codebase="imagedisplay/"
    code="MainApplet.class" width="500" height="140"
    alt="Cannot load applet">
    </applet>
    </BODY>
    </HTML>
    Your help is much appreciated.
    Regards,
    William.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Well, then you should be much more explicit what you have done when you post. That way we won't waste time covering things that seem obvious to you, but, trust me, they're not obvious to everybody. On this particular forum, asking people to check the Java console leads to results about two thirds of the time. A lot of people out there don't seem to know that the Java console exists.
    If you're getting no errors in the console, then either (1) the bug is such that it doesn't produce any error messages (e.g., there's an unterminated loop), (2) there are error messages (e.g., an exception thrown) but the applet is catching them silently, or (3) maybe it is producing uncaught error messages, but you're not looking in the right place to see them. Considering that your applet subclasses another, it's possible that the superclass is the culprit. I'd suggest, as a first step, adding debugging statements to your code just to confirm that it's loading and that something can appear in the console.

  • What's wrong with this button code

    Dear All,
    I am trying to set up a button handler for many buttons
    rather just one. The
    intention of this code is to say if I press Load1 to Load40
    that button and
    only that button's alpha should change to 50%. This code
    makes them all 50%
    alpha when the frame loads rather than on the onPress event.
    Can someone please help me out with this one?
    i = 0;
    while (i<40) {
    this["Load"+i].onPress = btnEvaluate(this["Load"+i]);
    ++i;
    function btnEvaluate(target_btn:Button) {
    target_btn._alpha = 50;
    Thanks again.
    Alastair MacFarlane

    kglad,
    Thanks again. What would this group do without your help.
    Alastair
    "kglad" <[email protected]> wrote in message
    news:gh0sq0$cbv$[email protected]..
    > :
    >
    >
    >
    > for (var i = 0;i<40;i++) {
    > this["Load"+i].onPress =function(){
    > this._alpha=50;
    > }
    > }

  • Can't gotoAndStop ...what's wrong with this button code?

    Hi,
    I'm totally stumped as to why I can't navigate to another frame.
    I have put 2 days into this simple problem now and I'm ready to give up and go back to AS2.
    Please help!
    I'm using CS4; publish settings AS3, 10.0
    I have a button on frame 2 that should take me to frame 3 when clicked.
    (So far I've tried a hundred different ways but I don't get to frame 3...)
    Different things I tried...
    > Creating the button dynamically from the library...
    > Inserting it statically from the library on frame 2...
    > referencing the mainTimeline through a variable...
    > wrapping the gotoAndStop action in another function...(if placed directly on the timeLine the movie correctly goes straight to frame 3)
    > naming frame 3...
    > using 'nextFrame' instead of 'gotoAndStop'...
    etc..
    In most cases I don't get an error in the output panel and no compiler error either; it just doesn't work!!!
    (Just stays on the same frame after I click the button)
    Here's the code I think should work; but doesn't:
    function moveTo3 (event:MouseEvent):void {
        trace("button_clicked"); // always traces correctly; but movie does not go to frame 3 !!!
        gotoAndStop(3);
    f_btn.addEventListener(MouseEvent.CLICK, moveTo3);
    WHAT AM I MISSING HERE?
    Thanks in advance ...

    Hi Ned,
    I have to run out and don't have the time to deal with it right now but you're RIGHT.
    I do have an 'onEnterFrame' listener on frame 1 !
    It's doing some animation with a symbol and I don't think I removed the listener itself.
    I just set the object to null when it reached [alpha:0].
    THANKS!
    I'll check it out as soon as I can but I really think you got me looking in the right direction now.
    Thanks again,
    Connor
    (I'll post an update when I get back to it)

Maybe you are looking for

  • Fields missing while creating the data source

    Hi All I am using a third party system to pull data in to BI...Actually there was one table where from the other end they had added 2 fields recently...when i checked in development i was able to create the data source for the table along with the ne

  • Inbound deliveries with STO

    Hi, I am currently designing an interface with an external WMS and I am thinking to use inbound deliveries but it seems inbound deliveries with stock transport order have important restrictions : 1. inbound deliveries are created with the quantity fr

  • Adobe AIR Apps Won't Install!!! Help!

    Please help me. Whenever I' try to install adobe air apps i get an error message: "Something went wrong trying to install this application. Please install the latest version of Adobe AIR from http"//www.adobe.com/go/getair and then try again." I've d

  • Simple binding question

    Hello, I have an inputText bound to a backed bean property in contrast to a an ADF bind attribute, the getter method for the inputText look up the value from a hashMap, while going through the debugger, it looks like the code returning the correct va

  • PhotoShop Sign Required!!!

    Trying to run PhotoShop, Promts me to Sign In Requirment screen, Select Sign in I go to Trail page.  All the while I'm already loged in Adobe cc, other program seam tobe working fine.  I have already uninstalled and reinstalled program. What next?