XMl parser version problem for running struts project in jdeveloper 10.1.3

Dear All.
I am trying to run a struts (v 1.2.9) based project in Jdeveloper 10.1.3.1.0.The struts version in Jdeveloper is 1.1.
when i am trying to run the index.jsp i get an error:
org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
I think the XML parser version is a problem.Jdeveloper has OracleXMLParser v2 and i think the XML Parser apis used in building the project is different.I have placedcustiom xml parser apis and the xerces.jar in the jdevbin/jdev/lib folder and included these jar in the bootclasspath as follows:
AddVMOption -Xbootclasspath/p:../lib/xml-apis.jar
AddVMOption -Xbootclasspath/p:../lib/xerces-2.6.2.jar
But even then the Exception persists.Is the syntax for Xbootclasspath wrong or i need to place these custom api's in some other location of jdev.
I am not being able to figure out the XMl parser problem.
Any help wud be great.
Is it that i cant run the project in jdeveloper.Just to mention the application is deployed in OC4J on the server and runs fine..But its only that i kant run it locally through jdeveloper

I am also facing the same issue on my laptop. I searched for forum but no luck.
appreciate if anybody can throw some light on this.

Similar Messages

  • Unable to run struts project from jdeveloper 10.1.3

    Hi,
    I have created a struts-based application project using jdeveloper 10.1.3(build JDEVADF_10.1.3.1.0_NT..) by importing an ear file .The project seems to be built fine as i get no errors in compiling the entire project.I have included the Struts runtime library as well in the project.
    But when i try to run the login.jsp from the struts-config.xml,i get the :
    The page cannot be displayed message in the browser.
    I dont see any errors in the Embedded OC4J log except few warnings lik dis:
    [Another instance of the server is still running.  JDeveloper will shut it down and then restart the server.]
    Process exited.
    [Starting OC4J using the following ports: HTTP=8898, RMI=23899, JMS=9235.]
    D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config>
    D:\jdevr12\jdevbin\jdk\bin\javaw.exe -client -classpath D:\jdevr12\jdevbin\j2ee\home\oc4j.jar;D:\jdevr12\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\xml.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /D:/jdevr12/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib\uix2.jar (from WEB-INF/lib/ directory in D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib) has the same filename but is not identical to /D:/jdevr12/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 26766 ms.
    pls help me out on what could be the problem.This application wsa running fine in Eclipse but i am unable to run it using Jdeveloper.

    Is this new develop page ?
    you check these points for this issue.
    1. Check JDEV_USER_HOME
    2. Design a Test PG and test it first.
    3. Your OAF patch level: is 12.0.4 ? Are you running with r12?
    Thanks

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • [svn:osmf:] 17245: Fix build problems for Zeri Certification Projects.

    Revision: 17245
    Revision: 17245
    Author:   [email protected]
    Date:     2010-08-09 17:20:33 -0700 (Mon, 09 Aug 2010)
    Log Message:
    Fix build problems for Zeri Certification Projects.
    Modified Paths:
        osmf/trunk/apps/certification/zeri/FlexUnit4UIListener/flexunit4uilistener-build-config-1 0-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationPlayer/zericertificationplayer-build- config-10-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriCertificationTest.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriTests.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/zericertificationtest-build-conf ig-10-1.xml

    Revision: 17245
    Revision: 17245
    Author:   [email protected]
    Date:     2010-08-09 17:20:33 -0700 (Mon, 09 Aug 2010)
    Log Message:
    Fix build problems for Zeri Certification Projects.
    Modified Paths:
        osmf/trunk/apps/certification/zeri/FlexUnit4UIListener/flexunit4uilistener-build-config-1 0-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationPlayer/zericertificationplayer-build- config-10-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriCertificationTest.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriTests.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/zericertificationtest-build-conf ig-10-1.xml

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • What`s going on with XML Parser version 2.0.2.7?

    Hi,
    In january, I was told on this forum by Steven Muench to wait version 2.0.2.7 of Oracle XML Parser to correct a textarea bug with <xsl:output method="HTML"... I would like to know what's going on and when should I expect this new version be available to download.
    Thanks!

    It's in testing right now. Will likely still be a couple more weeks before it's out on OTN.

  • Problem for running Update query with Chinese

    Hi all,
    I am running a web application in Lotus Domino.
    I have a Lotus Script Agent which need to update Oracle 8i Database with Chinese Character throught ODBC but i find that all characters become some strange characters.
    I got the problem only for update query.
    I have no problem for select query for getting the chinese data.
    Also, I got no problem to run the update query with chinese characters in Sqlplus.
    I also try to run the same update query which the ODBC connection is pointing to an MS Access Database. It works too.
    So the only things i leave is the Oracle ODBC driver.
    Anythings I should do for the Oracle ODBC server?
    Thanks very much.

    Hi, I checked the registry of Oracle and
    in the NLS_LANG field, the values is AMERICAN_AMERICA.UTF8. In the server side, I set the same.
    It should be okay, as i can retrieve the chinese content in the Oracle. Just that when i try to run a query contain chinese, such as,
    "insert into TableA values ('���')". i will got some strange character inserted in the databasae.
    Could you tell me what should i do?
    Thanks a lot a lot.

  • XML parser error while testing web service client using jdeveloper 10.1.2.1

    hi
    I have generated a web service stub/skeleton out of the wsdl file using jdeveloper 10.1.2.1.0. The client will return a complex type result, i.e., it will return an array of elements. When I try to run the client using jdeveloper 10.1.2.10 i am getting the following error:
    E:\oracle\DevSuiteHome_1\jdk\bin\javaw.exe -ojvm -classpath E:\oracle\DevSuiteHome_1\jdev\mywork\Application2\Project2\classes;E:\oracle\DevSuiteHome_1\jdev\lib\jdev-rt.jar;E:\oracle\DevSuiteHome_1\soap\lib\soap.jar;E:\oracle\DevSuiteHome_1\lib\xmlparserv2.jar;E:\oracle\DevSuiteHome_1\jlib\javax-ssl-1_2.jar;E:\oracle\DevSuiteHome_1\jlib\jssl-1_2.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\activation.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\mail.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\http_client.jar;E:\oracle\DevSuiteHome_1\lib\xmlcomp.jar mypackage2.RESSelectionServiceStub
    oracle.xml.parser.v2.XMLElement@11
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:112)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:112)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:112)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    [Lmypackage2.ProfiledClaimant;@18
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:113)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:113)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:877)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:903)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.getType(WrappedDocLiteralStub.java:928)
         at oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(WrappedDocLiteralStub.java:621)
         at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:113)
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:43)
    java.lang.ArrayIndexOutOfBoundsException: 1
         at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:55)
    Process exited with exit code 0.I have googled to see if i can get any solution , i got the following information:
    Cannot Generate a Stub or Skeleton for a WSDL that Uses Certain Types (3912349)
    JDeveloper 10.1.2 only understands a subset of all of the complexTypes that can be defined in a WSDL document. For example, if the following appear in the "types" section of the WSDL, any use of those types will cause JDeveloper to generate a reference to UnknownType in a stub or skeleton:
    •     Restrictions of simpleTypes
    •     complexTypes which define attributes Does that mean that the jdeveloper will not support complex types?Could anybody tell me how to resolve the above said issue? Is there any patch that i can run to resolve the issue?

    Can i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.

  • How to open and run existing project in jdeveloper 11g?

    I have downloaded a jsf project from a website. I want to run it. I am using jdeveloper. So I want to open that jsf project which is in my local drive in jdeveloper 11g and I want to run it.

    Hi,
    open JDeveloper and then point it to the ".jws" file of the application you downloaded
    Frank

  • Versions configuration for controlling from project system

    Hi Guys,
    I need to know the flow for add additional versions to the real version for CO-PS.
    There is any how to or guide about it is?
    Thank you very much.
    Regards,
    Jeysi

    Hi Ahmed
    Same material codes is used both for common use and also in PS as project items.
    These material codes are defined as VB (reorder point material planning).
    Now after MRP run, total requirements is coming considering existing unrestricted stock, project stock, project requirement from WBS.
    I do not want project stock and requirement should participate in MRP.
    Please help.
    Regards
    Pradipta Sahoo

  • Problems for final year project regarding jpanel to jpanel communication

    Hi, I have some problems regarding the creation of a traffic simulator using Net beans. I have three classes for a frame and two panels, namely SimUI() which is the Frame class and TunnelPanel() which extends the panel that the road and traffic will be displayed. I have got so far only to encounter some problems regarding the event listeners which are placed in SIM UI() : The frame class. I want my buttons in one panel to paint objects which re in another panel. someone PLEASE help me as I dont have much time left. Here is my code: -
    import java.awt.Color;
    import java.awt.Event;
    import java.awt.Graphics;
    import javax.swing.JSlider;
    * SimUI.java
    * Created on 24 February 2007, 21:01
    * @author Ben Kolosz
    public class SimUI extends javax.swing.JFrame {
    /** Creates new form SimUI */
    public SimUI() {
    initComponents();
    public class TunnelPanel extends javax.swing.JPanel {
    int lineX = 0, lineY = 100;
    int lineWidth = 620;
    int lineHeight = 3;
    int line2X = 0, line2Y = 200;
    int line2Width = 620;
    int line2Height = 3;
    int line3X = 0, line3Y = 145;
    int line3Width = 620;
    int line3Height = 3;
    int line4X = 0, line4Y = 155;
    int line4Width = 620;
    int line4Height = 3;
    public void paintRoad(Graphics g) {
    g.setColor(Color.black); //Paint the Tunnel road
    g.fillRect(lineX, lineY, lineWidth, lineHeight);
    g.fillRect(line2X, line2Y, line2Width, line2Height);
    g.fillRect(line3X, line3Y, line3Width, line3Height);
    g.fillRect(line4X, line4Y, line4Width, line4Height);
    g.drawRect(line4X, line4Y, line4Width, line4Height);
    jTextArea1.repaint();
    public void setRequestFocusEnabled(boolean requestFocusEnabled) {
    public class TrafControl extends javax.swing.JPanel {
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    View = new TunnelPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    Control = new TrafControl();
    TrafficFlowTBut = new javax.swing.JToggleButton();
    HumanBut = new javax.swing.JButton();
    AutomaticBut = new javax.swing.JButton();
    ExitBut = new javax.swing.JButton();
    FlowSlider = new javax.swing.JSlider();
    FlowLabel = new javax.swing.JLabel();
    Start = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("INTELLIGENT HIGHWAY SIMULATION v1.0");
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setResizable(false);
    getAccessibleContext().setAccessibleName("Intelligent Highway Simulation");
    View.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Tunnel View", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Gill Sans Ultra Bold Condensed", 0, 11)));
    View.setForeground(new java.awt.Color(224, 223, 227));
    View.setOpaque(false);
    jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
    jTextArea1.setColumns(20);
    jTextArea1.setEditable(false);
    jTextArea1.setRows(1);
    jTextArea1.setBorder(null);
    jTextArea1.setCaretColor(new java.awt.Color(224, 223, 227));
    jTextArea1.setOpaque(false);
    jScrollPane1.setViewportView(jTextArea1);
    jTextArea1.getAccessibleContext().setAccessibleParent(jTextArea1);
    org.jdesktop.layout.GroupLayout ViewLayout = new org.jdesktop.layout.GroupLayout(View);
    View.setLayout(ViewLayout);
    ViewLayout.setHorizontalGroup(
    ViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 532, Short.MAX_VALUE)
    ViewLayout.setVerticalGroup(
    ViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, ViewLayout.createSequentialGroup()
    .addContainerGap(421, Short.MAX_VALUE)
    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    Control.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Traffic Control", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Gill Sans Ultra Bold Condensed", 0, 11), new java.awt.Color(255, 51, 51)));
    TrafficFlowTBut.setLabel("Traffic Flow");
    TrafficFlowTBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    HumanBut.setLabel("Human Driver Mode");
    HumanBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    AutomaticBut.setLabel("Automatic Control");
    AutomaticBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    ExitBut.setLabel("Exit");
    ExitBut.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    ActionEvent(evt);
    ExitBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    ButtonExitButBut(evt);
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    FlowSlider.setMajorTickSpacing(60);
    FlowSlider.setMaximum(3000);
    FlowSlider.setMinorTickSpacing(30);
    FlowSlider.addChangeListener(new javax.swing.event.ChangeListener() {
    public void stateChanged(javax.swing.event.ChangeEvent evt) {
    FlowSliderStateChanged(evt);
    FlowSlider.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    FlowLabel.setLabelFor(FlowSlider);
    FlowLabel.setText("Vehicle Flow Rate: 0 p/h");
    FlowLabel.getAccessibleContext().setAccessibleName("position");
    FlowLabel.getAccessibleContext().setAccessibleDescription("position");
    Start.setText("Start");
    Start.addKeyListener(new java.awt.event.KeyAdapter() {
    public void keyTyped(java.awt.event.KeyEvent evt) {
    StartKeyTyped(evt);
    Start.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    StartMouseClicked(evt);
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    org.jdesktop.layout.GroupLayout ControlLayout = new org.jdesktop.layout.GroupLayout(Control);
    Control.setLayout(ControlLayout);
    ControlLayout.setHorizontalGroup(
    ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(ControlLayout.createSequentialGroup()
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(ControlLayout.createSequentialGroup()
    .add(HumanBut)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(AutomaticBut))
    .add(TrafficFlowTBut))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
    .add(org.jdesktop.layout.GroupLayout.LEADING, ControlLayout.createSequentialGroup()
    .add(6, 6, 6)
    .add(Start)
    .add(28, 28, 28)
    .add(FlowLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 165, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(org.jdesktop.layout.GroupLayout.LEADING, ControlLayout.createSequentialGroup()
    .add(10, 10, 10)
    .add(ExitBut)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(FlowSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 187, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
    .addContainerGap(24, Short.MAX_VALUE))
    ControlLayout.setVerticalGroup(
    ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(ControlLayout.createSequentialGroup()
    .addContainerGap()
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(HumanBut)
    .add(AutomaticBut)
    .add(FlowLabel)
    .add(Start))
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(ControlLayout.createSequentialGroup()
    .add(19, 19, 19)
    .add(FlowSlider, 0, 0, Short.MAX_VALUE))
    .add(ControlLayout.createSequentialGroup()
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(ExitBut)
    .add(TrafficFlowTBut))))
    .addContainerGap())
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
    .add(org.jdesktop.layout.GroupLayout.LEADING, View, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(org.jdesktop.layout.GroupLayout.LEADING, Control, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(View, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(Control, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addContainerGap())
    pack();
    }// </editor-fold>
    private void StartMouseClicked(java.awt.event.MouseEvent evt) {                                  
    private void StartKeyTyped(java.awt.event.KeyEvent evt) {                              
    // TODO add your handling code here:
    * This method is called by the thread that was created in
    * the start method. It does the main animation.
    private void ButtonExitButBut(java.awt.event.MouseEvent evt) {                                 
    System.exit(0);// TODO add your handling code here:
    private void FlowSliderStateChanged(javax.swing.event.ChangeEvent evt) {                                       
    JSlider src = (JSlider) evt.getSource();
    if(!src.getValueIsAdjusting())
    FlowLabel.setText("Vehicle Flow Rate: "+ FlowSlider.getValue() + " p/h");
    private void DescWipe(java.awt.event.MouseEvent evt) {                         
    jTextArea1.setText(null);
    jTextArea1.repaint();
    private void ButtonInfo(java.awt.event.MouseEvent evt) {                           
    if(evt.getSource() == HumanBut) jTextArea1.setText("Enables Human Reaction control variables in simulation");
    if(evt.getSource() == AutomaticBut) jTextArea1.setText("Enables Automated control variables in simulation");
    if(evt.getSource() == TrafficFlowTBut)jTextArea1.setText("Toggles between On/Off peak traffic conditions");
    if(evt.getSource() == Start)jTextArea1.setText("Starts and stops the simulation, traffic data saved to log when stopped");
    if(evt.getSource() == ExitBut)jTextArea1.setText("Exit the Program");
    if(evt.getSource() == FlowSlider)jTextArea1.setText("Adjusts the amount of traffic flowing into Tunnel");
    private void ActionEvent(java.awt.event.ActionEvent evt) {                            
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new SimUI().setVisible(true);
    private String getParameter(String string) {
    return null;
    // Variables declaration - do not modify
    private javax.swing.JButton AutomaticBut;
    private javax.swing.JPanel Control;
    private javax.swing.JButton ExitBut;
    private javax.swing.JLabel FlowLabel;
    private javax.swing.JSlider FlowSlider;
    private javax.swing.JButton HumanBut;
    private javax.swing.JButton Start;
    private javax.swing.JToggleButton TrafficFlowTBut;
    private javax.swing.JPanel View;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration
    //public declarations
    private String str;
    }

    View = new TunnelPanel();This is my panel instance which I have placed at the start of the generated code that Netbeans uses. I had to actually create custom code for this to be displayed but anyhoo I already tried that. The methodI want to call is
    public void paintRoad(Graphics g)I have already attempted to call the method from the mouseclick event listener in SIM UI:
    TunnelPanel.paintRoad(Graphics g)but a compiler error reads cannot issue a static command or something like that: -
    Here is my code formatted, hope you can help mate.:)
    import java.awt.Color;
    import java.awt.Event;
    import java.awt.Graphics;
    import javax.swing.JSlider;
    * SimUI.java
    * Created on 24 February 2007, 21:01
    * @author Ben Kolosz
    public class SimUI extends javax.swing.JFrame {
    /** Creates new form SimUI */
    public SimUI() {
    initComponents();
    public class TunnelPanel extends javax.swing.JPanel {
    int lineX = 0, lineY = 100;
    int lineWidth = 620;
    int lineHeight = 3;
    int line2X = 0, line2Y = 200;
    int line2Width = 620;
    int line2Height = 3;
    int line3X = 0, line3Y = 145;
    int line3Width = 620;
    int line3Height = 3;
    int line4X = 0, line4Y = 155;
    int line4Width = 620;
    int line4Height = 3;
    public void paintRoad(Graphics g) {
    g.setColor(Color.black); //Paint the Tunnel road
    g.fillRect(lineX, lineY, lineWidth, lineHeight);
    g.fillRect(line2X, line2Y, line2Width, line2Height);
    g.fillRect(line3X, line3Y, line3Width, line3Height);
    g.fillRect(line4X, line4Y, line4Width, line4Height);
    g.drawRect(line4X, line4Y, line4Width, line4Height);
    jTextArea1.repaint();
    public void setRequestFocusEnabled(boolean requestFocusEnabled) {
    public class TrafControl extends javax.swing.JPanel {
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    View = new TunnelPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    Control = new TrafControl();
    TrafficFlowTBut = new javax.swing.JToggleButton();
    HumanBut = new javax.swing.JButton();
    AutomaticBut = new javax.swing.JButton();
    ExitBut = new javax.swing.JButton();
    FlowSlider = new javax.swing.JSlider();
    FlowLabel = new javax.swing.JLabel();
    Start = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("INTELLIGENT HIGHWAY SIMULATION v1.0");
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setResizable(false);
    getAccessibleContext().setAccessibleName("Intelligent Highway Simulation");
    View.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Tunnel View", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Gill Sans Ultra Bold Condensed", 0, 11)));
    View.setForeground(new java.awt.Color(224, 223, 227));
    View.setOpaque(false);
    jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
    jTextArea1.setColumns(20);
    jTextArea1.setEditable(false);
    jTextArea1.setRows(1);
    jTextArea1.setBorder(null);
    jTextArea1.setCaretColor(new java.awt.Color(224, 223, 227));
    jTextArea1.setOpaque(false);
    jScrollPane1.setViewportView(jTextArea1);
    jTextArea1.getAccessibleContext().setAccessibleParent(jTextArea1);
    org.jdesktop.layout.GroupLayout ViewLayout = new org.jdesktop.layout.GroupLayout(View);
    View.setLayout(ViewLayout);
    ViewLayout.setHorizontalGroup(
    ViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 532, Short.MAX_VALUE)
    ViewLayout.setVerticalGroup(
    ViewLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, ViewLayout.createSequentialGroup()
    .addContainerGap(421, Short.MAX_VALUE)
    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    Control.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Traffic Control", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Gill Sans Ultra Bold Condensed", 0, 11), new java.awt.Color(255, 51, 51)));
    TrafficFlowTBut.setLabel("Traffic Flow");
    TrafficFlowTBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    HumanBut.setLabel("Human Driver Mode");
    HumanBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    AutomaticBut.setLabel("Automatic Control");
    AutomaticBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    ExitBut.setLabel("Exit");
    ExitBut.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    ActionEvent(evt);
    ExitBut.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    ButtonExitButBut(evt);
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    FlowSlider.setMajorTickSpacing(60);
    FlowSlider.setMaximum(3000);
    FlowSlider.setMinorTickSpacing(30);
    FlowSlider.addChangeListener(new javax.swing.event.ChangeListener() {
    public void stateChanged(javax.swing.event.ChangeEvent evt) {
    FlowSliderStateChanged(evt);
    FlowSlider.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    FlowLabel.setLabelFor(FlowSlider);
    FlowLabel.setText("Vehicle Flow Rate: 0 p/h");
    FlowLabel.getAccessibleContext().setAccessibleName("position");
    FlowLabel.getAccessibleContext().setAccessibleDescription("position");
    Start.setText("Start");
    Start.addKeyListener(new java.awt.event.KeyAdapter() {
    public void keyTyped(java.awt.event.KeyEvent evt) {
    StartKeyTyped(evt);
    Start.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    StartMouseClicked(evt);
    public void mouseEntered(java.awt.event.MouseEvent evt) {
    ButtonInfo(evt);
    public void mouseExited(java.awt.event.MouseEvent evt) {
    DescWipe(evt);
    org.jdesktop.layout.GroupLayout ControlLayout = new org.jdesktop.layout.GroupLayout(Control);
    Control.setLayout(ControlLayout);
    ControlLayout.setHorizontalGroup(
    ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(ControlLayout.createSequentialGroup()
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(ControlLayout.createSequentialGroup()
    .add(HumanBut)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(AutomaticBut))
    .add(TrafficFlowTBut))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
    .add(org.jdesktop.layout.GroupLayout.LEADING, ControlLayout.createSequentialGroup()
    .add(6, 6, 6)
    .add(Start)
    .add(28, 28, 28)
    .add(FlowLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 165, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(org.jdesktop.layout.GroupLayout.LEADING, ControlLayout.createSequentialGroup()
    .add(10, 10, 10)
    .add(ExitBut)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(FlowSlider, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 187, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
    .addContainerGap(24, Short.MAX_VALUE))
    ControlLayout.setVerticalGroup(
    ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(ControlLayout.createSequentialGroup()
    .addContainerGap()
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(HumanBut)
    .add(AutomaticBut)
    .add(FlowLabel)
    .add(Start))
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(ControlLayout.createSequentialGroup()
    .add(19, 19, 19)
    .add(FlowSlider, 0, 0, Short.MAX_VALUE))
    .add(ControlLayout.createSequentialGroup()
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
    .add(ExitBut)
    .add(TrafficFlowTBut))))
    .addContainerGap())
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
    .add(org.jdesktop.layout.GroupLayout.LEADING, View, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(org.jdesktop.layout.GroupLayout.LEADING, Control, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(View, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(Control, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .addContainerGap())
    pack();
    }// </editor-fold>
    private void StartMouseClicked(java.awt.event.MouseEvent evt) {
    private void StartKeyTyped(java.awt.event.KeyEvent evt) {
    // TODO add your handling code here:
    * This method is called by the thread that was created in
    * the start method. It does the main animation.
    private void ButtonExitButBut(java.awt.event.MouseEvent evt) {
    System.exit(0);// TODO add your handling code here:
    private void FlowSliderStateChanged(javax.swing.event.ChangeEvent evt) {
    JSlider src = (JSlider) evt.getSource();
    if(!src.getValueIsAdjusting())
    FlowLabel.setText("Vehicle Flow Rate: "+ FlowSlider.getValue() + " p/h");
    private void DescWipe(java.awt.event.MouseEvent evt) {
    jTextArea1.setText(null);
    jTextArea1.repaint();
    private void ButtonInfo(java.awt.event.MouseEvent evt) {
    if(evt.getSource() == HumanBut) jTextArea1.setText("Enables Human Reaction control variables in simulation");
    if(evt.getSource() == AutomaticBut) jTextArea1.setText("Enables Automated control variables in simulation");
    if(evt.getSource() == TrafficFlowTBut)jTextArea1.setText("Toggles between On/Off peak traffic conditions");
    if(evt.getSource() == Start)jTextArea1.setText("Starts and stops the simulation, traffic data saved to log when stopped");
    if(evt.getSource() == ExitBut)jTextArea1.setText("Exit the Program");
    if(evt.getSource() == FlowSlider)jTextArea1.setText("Adjusts the amount of traffic flowing into Tunnel");
    private void ActionEvent(java.awt.event.ActionEvent evt) {
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new SimUI().setVisible(true);
    private String getParameter(String string) {
    return null;
    // Variables declaration - do not modify
    private javax.swing.JButton AutomaticBut;
    private javax.swing.JPanel Control;
    private javax.swing.JButton ExitBut;
    private javax.swing.JLabel FlowLabel;
    private javax.swing.JSlider FlowSlider;
    private javax.swing.JButton HumanBut;
    private javax.swing.JButton Start;
    private javax.swing.JToggleButton TrafficFlowTBut;
    private javax.swing.JPanel View;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration
    //public declarations
    private String str;
    }

  • Xml parsing and checking for certain elements

    Hi,
    I need your help on how to parse an xml and check for certain elements
    in the xm. Can any one help on this regard. If you can pls send me the sample code for this one.
    Thanks and Regards,
    Srini

    http://java.sun.com/xml/tutorial_intro.html

  • Deployment problem in j2ee / struts project

    I have a problem when a try deploy my app.ear, who assembly an app.jar file and app.war file.
    The app consists of jsp/servlets based on struts and ejb.
    When I deploy directly from the ear file, I receive the error "No action instance for path /BookEdit could be created"
    But when I deploy only the app.war file, the struts action "BookEdit" is executed correctly. But the ejb can't be accessed by the web.app.
    I use OC4J 9.0.2.0.0, Jdev 9i 9.0.2.8.2 and jakarta-struts 1.0.2.
    Fede

    If this happens on the external OC4J container, it may be an OC4J 9.0.2 specific issue (perhaps related to classloading). Have you tried posting in the J2EE forum here to see if our OC4J experts might have seen something in this regard?

  • Problem to run a project

    I have developed a Java project and it runs well in a Windows 98 machine. But when a try to run it in a Windows 95 machine, it throws an exception with the file net.dll.
    I have copied j2sdk1.4.2_04 and i directly typed
    C:\J2SDK1.4.2_04\JRE\BIN\java -jar <myproject>.jar
    Do I have to install something else or I did wrong by just copying the j2sdk1.4.2_04?

    I have developed a Java project and it runs well in a
    Windows 98 machine. But when a try to run it in a
    Windows 95 machine, it throws an exception with the
    file net.dll.
    I have copied j2sdk1.4.2_04 and i directly typed
    C:\J2SDK1.4.2_04\JRE\BIN\java -jar <myproject>.jar
    Do I have to install something else or I did wrong by
    just copying the j2sdk1.4.2_04?What do you mean by copied the j2sdk1.4.2_04? Did you install it or just copy the directory from the windows 98 partition to the windows 95 partition?
    If you just copied it you should try installing it instead. Possibly something wasn't registered with windows 95 because you copied instead of installed the jdk.
    Nick

  • XML parser version 2

    I can compile DOMSample.java without error but when I run it I get the following error. I'm running Windows NT.
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/Node

    Either your missing a CLASSPATH setting
    or import setting in your DOMSample.
    Be sure you're importing parser.v2
    null

Maybe you are looking for