PJC and actionlisteners

Hi,
I'm developing a bean, and want to use it as a pjc in a form, using the VBean package of Forms.
The component extends VBean and implements a DocumentListener.
I instansiate a JPanel and add the component.
The set_property methods works fine and the document listener is working.
The component that I'm using extends JFrame and implements ActionListener, WindowListener, DocumentListener, FocusListener.
Problem is: The PJC is not listening to /firing various events
How do I get the PJC to listen to actions like keyboard short-cuts that when running the bean outside forms works as expected. What am I missing ?
Any thoughts much appreciated
Thanks

I havn't implemented the addtional listeners for the class that extends vbean
This is what I've got so far:
public class mybean extends VBean implements DocumentListener
private Component mComp = new JPanel()
/*** Constructor*/
public mybean() {
super();
eclass = new Eclass(this);
// this class has all the listeners implemented
try {
mComp = (JPanel) eclass.getedComponent();
} catch (Exception ee) {
ee.printStackTrace();
How do I get the listeners in the class I instansiate active in the vbean implementation

Similar Messages

  • Actions and ActionListeners as parameters

    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )It seems like doing it this way would result in a lot of extra code, and hence become a real pain in the neck. So, I was curious, has anyone else either tried to do this before, or do you have any ideas as to how I might be able to do this more efficiently? When I looked at the API it didn't look like Actions and ActionListeners share a root class I can use.
    Thanks,
    Jezzica85

    jezzica85 wrote:
    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )
    Well, if you want to support that then you are just going to have to do suffer through it, the only shortcut I can recommend is that your method(action, listener) and method(listener, action) are the same so you only have to implement 1 and just use the other as a entry point to call the one you wish to contain the code.

  • JSF Actions and ActionListeners with Tiles and forms

    I�m having a problem trying to use the Tiles functionality in Struts 1.1 with JSF and was wondering if anyone could help me.
    I have defined a very simple header, menu, content Tile that doesn�t involve nesting of tiles (ExampleTile_content1Level.jsp).
    I have 3 JSP pages, the first testHarness.jsp is NOT built using Tiles and is just used to load some test data into a session scoped bean using an actionListener and then forward to a Tile generated page (ExampleTile3.jsp) using a hard-coded action �applicationSummary� when a commandLink is pressed. This works fine for both the action and actionListener.
    ExampleTile3.jsp contains another commandLink that is meant to forward to another tile ExampleTile2.jsp. This also works until I try to add the <h:form> � </h:form> tag around the outside of the <h:panelGrid> tags in ExampleContent1.jsp when the action and actionListener then fail to fire and I get an �Error on Page� message in Explorer the detail of which says �Error �com_sun_rave_web_ui_appbase_renderer_CommandLinkRendererer� is null or not an object�.
    However I need a form so that I can bind UI controls to data from the bean stored in the session scope. This is only a problem when I use Tiles to define the pages. Does anyone know what I am doing wrong?
    Any help would be much appreciated.
    Tiles.xml
       <definition name="example3" path="/pages/exampleTile_content1Level.jsp" >
              <put name="headerClass" value="someStyle"/>
              <put name="menuClass" value="someStyle"/>
              <put name="contentClass" value="someStyle"/>
              <put name="header-title" value="/pages/exampleHeader.jsp" />
              <put name="menu" value="/pages/exampleMenu.jsp" />
              <put name="content" value="/pages/exampleContent1.jsp" />
       </definition>
       <definition name="example2" path="/pages/exampleTile_content1Level.jsp" >
              <put name="headerClass" value="someStyle"/>
              <put name="menuClass" value="someStyle"/>
              <put name="contentClass" value="someStyle"/>
              <put name="header" value="/pages/exampleHeader.jsp" />
              <put name="menu" value="/pages/exampleHeader.jsp" />
              <put name="content" value="/pages/exampleContent2.jsp" />
       </definition>ExampleTile3.jsp
    <f:view>
         <h:form>
              <tiles:insert definition="example3" flush="false" />
         </h:form>
    </f:view> ExampleTile2.jsp
    <f:view>
         <h:form>
              <tiles:insert definition="example2" flush="false" />
         </h:form>
    </f:view> Faces-config.xml
    <navigation-rule>
        <from-view-id>/pages/testHarness.jsp</from-view-id>
           <navigation-case>
                <from-outcome>applicationSummary</from-outcome>
                <to-view-id>/pages/exampleTile3.jsp</to-view-id>
              <redirect/>
           </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/pages/exampleTile3.jsp</from-view-id>
           <navigation-case>
                <from-outcome>nextPage</from-outcome>
                <to-view-id>/pages/exampleTile2.jsp</to-view-id>
                <redirect/>
           </navigation-case>
    </navigation-rule> ExampleTile_content1Level.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" >
         <f:subview id="header-title">
              <tiles:insert name="header-title" flush="false" />
         </f:subview>
         <f:subview id="menu">
              <tiles:insert name="menu" flush="false" />
         </f:subview>
         <f:subview id="content">
              <tiles:insert name="content" flush="false" />
         </f:subview>
    </h:panelGrid> ExampleHeader.jsp / ExampleMenu.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" columnClasses="someSyle">
         <h:outputFormat value="This is the {0}.">
              <f:param value="Header / Menu as appropriate "/>         
         </h:outputFormat>
    </h:panelGrid> ExampleContent1.jsp
    <tiles:importAttribute scope="request"/>
    <h:form>     <----- Fails with this tag included but works without it.
    <h:panelGrid columns="1" >
              <h:outputFormat value="This is the {0}.">
                   <f:param value="Content on the FIRST page"/>
              </h:outputFormat>
              <h:commandLink action="nextPage" immediate="false">
                   <h:outputText value="Click to go to next page"/>
              </h:commandLink>
    </h:panelGrid>
    </h:form> ExampleContent2.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" >
         <h:outputFormat value="This is the {0}.">
              <f:param value="Content on the SECOND page"/>
         </h:outputFormat>
    </h:panelGrid>

    jezzica85 wrote:
    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )
    Well, if you want to support that then you are just going to have to do suffer through it, the only shortcut I can recommend is that your method(action, listener) and method(listener, action) are the same so you only have to implement 1 and just use the other as a entry point to call the one you wish to contain the code.

  • What's the difference between Action Objects and ActionListeners

    Hello,
    in the Introduction to JSF two ways handling action are demonstrated. One way is "Combining Component Data and Action Object" the other way is "Handling Events."
    What's the difference? When do I use this or that way?
    The one thing I understand is when using "Combining Component Data and Action Objects" I use the default ActionListener and I may directly access the input values.
    TIA,
    Juergen

    Hi Juergen,
    The bottomline is 'not much', only in the details to these two approaches differ.
    The ActionListener object will have events broadcast to it for a particular object by the event mechanism in JSF. You can add one to a specific component via the f:action_listener tag. This will have your listener getting events during specific points in the request processing lifecycle (you specify via your return value for getPhaseId).
    The Action class that an actionRef reference refers to an Action that will be invoked during the invoke application phase. (see pg 71).
    I would recommend using actionRefs and Action objects wherever possible and going to ActionListeners only when you need notifications during a specific phase of the request/response cycle.
    Hope this helps,
    -bd-
    http://bill.dudney.net

  • PJC and database access through JDBC

    Hello,
    I'm trying to access to the database through a PJC via JDBC.
    conn = DriverManager.getConnection ("jdbc:oracle:thin:@machine:1521:XE", "user", "pwd");It works fine on a XE database, but fails on another XE one:
    Oracle JInitiator: Version 1.3.1.22
    java.lang.NullPointerException
         at oracle.jdbc.ttc7.O3log.marshal(O3log.java:606)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:255)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:377)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.forms.fd.AsyncJob.connect(AsyncJob.java:68)
         at oracle.forms.fd.AsyncJob.run(AsyncJob.java:121)
         at java.lang.Thread.run(Unknown Source)It also fails on a remote Unix database:
    java.security.AccessControlException: access denied (java.net.SocketPermission monadev resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
    ...so I edit the java.policy file of the Jinitiator directory:
    permission java.net.SocketPermission "machine:port-", "accept,connect,listen,resolve";     and then get the same execption:
    java.lang.NullPointerException
         at oracle.jdbc.ttc7.O3log.marshal(O3log.java:606)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:255)
    ...Finally, it work on only one machine and only a local database.
    I'm probably missing something somewhere.
    Is anyone could give me some light on this ?
    Thanks in advance,
    Francois

    I'm just learning to work with PJC's, so I'm unsure whether I can help, but here goes. I found the following archived on Google Groups (http://groups.google.com):
    Hi. The basic applet security model is that it can only make connections
    back to the machine from which it was downloaded. If you want to do
    JDBC from an applet to a DBMS not on the applet-server machine,
    you need a type-3 JDBC driver. A type-3 JDBC driver has an all-Java
    client driver piece which an applet can download and use. This driver
    piece connects to a proxy piece which is running on the webserver
    machine. This proxy piece then connects to any DBMS anywhere on the
    net, and is the middleman between the JDBC client and DBMS.
       For security, management and performance reasons it's usually better to
    constrain JDBC to a middle tier such as in a servlet, and use HTML to and
    from the client, rather than the space and time involved in downloading a
    full general query engine (a JDBC driver) to a client which typically uses
    .1% of the capability or classes of the JDBC driver.
    Joe Weinstein at BEA HTH,
    Eric Adamson
    Lansing, Michigan

  • JButton and ActionListeners

    I would like to change the ActionListeners registered to a JButton when the user clicks on a JButton. However there is a problem with this (see below). A typical procedure would go as follows:
    1) User clicks on button
    2) Get the appropriate listener from a list of listeners
    3) Remove the current listener(s) from the button
    4) Add the new listener(s)
    However, for some reason, the instructions of the new listener class are getting called. Is there a way of preventing this and if so, can someone please guide me in the right direction?
    Stephen

    It does not seem to happen like what you have said. Please see the test code below:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.WindowConstants;
    public class Temp extends JFrame {
         private JButton b = null;
         public Temp() {
              super("Test");
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              getContentPane().setLayout(new BorderLayout());
              b = new JButton("Click Me!");
              b.addActionListener(new ActionListener1());
              getContentPane().add(b);
              pack();
              setVisible(true);
         class ActionListener1 implements ActionListener {
              public void actionPerformed(ActionEvent evt) {
                   System.out.println("Action Listener 1");
                   b.removeActionListener(this);
                   b.addActionListener(new ActionListener2());
         class ActionListener2 implements ActionListener {
              public void actionPerformed(ActionEvent evt) {
                   System.out.println("Action Listener 2");
         public static void main(String args []) {
              new Temp();
    }The first time you click the button action listener 1 code gets executed. From the second time onwards the action listener 2 code gets executed.
    Hope this helps
    Sai Pullabhotla

  • PJC and Bean Area

    Is it possible to use a bean area or a pjc in forms client server mode, I mean not via a browser?
    Kind regards
    Heinz
    null

    You can pull the 9i demos off OTN, this installs a whole bunch of PJCs for you.
    Some advice:
    Jar up your class - use the deployment options within JDev to do this. Then you can put the JAR file anywhere you want, but the location must be accessible as a virtual directory and you jhave to update the archive and archive_jini lines in your configs to point to the jar in the virtual directory where you've placed it.
    I generally throw the jar into forms90/java directory along with the f90all.jar, although you'll see with the demos wwe put them into a forms90/demos/jars directory which has a virtual address pointing to it in the OC4J Config.

  • PJC and Custom Event

    I'm trying to create a Forms PJC which extends VTextField. The PJC should have the added feature to be able to set a limit on the time allowed to receive all input characters. This is to force the user to use other input devices than keyboard, such as card reader. By looking at the Forms demos I was able to make my PJC work, but it can't raise a custom event to notify Forms of the timeout. Only if I extend the generic class VBean can I raise a custom event (dispatchCustomEvent). I have tried to use the VBean as a wrapper for a VTextField but it does not look and act like a textfield anymore. The timeout and custom event works, but I can't get the input value from Forms. I have tried instantiating a VBean inside a VTextField to raise the custom event but it never reaches the Form. So what to do?
    But when I extend VBean instead of VTextField I have problems getting something which looks and acts like a textfield.

    Hello,
    +1. Complete Forms Solution described in the Dynamic poplist in a multi-record item. thread.+
    This solution is based on dynamic list population with appropriate predefined record group (the number of such predefined record groups could be rather big --> 1 Continents*Countries.+
    Record Groups can be totally dynamic, so you don't need to have them pre-existing at runtime.
    Francois

  • Reflection, menus, and ActionListeners

    Hi everybody,
    I was doing some reading in the Java APIs and came across reflection, and it seemed like a good idea for some menus I'm implementing, but I'm not fully sure, so I'd like some advice, please, if anyone would be willing.
    I have a lot of menus on a menu bar, and each menu item on the bar pops up a different kind of window (each window is distinct and has its own constructor; they're all encapsulated objects). My original idea was to add actionListeners to each menu item like so:
    for each item:
    item.addActionListener( new ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    // the constructor for a particular window
    });The issue with that approach, as I've learned, is that this repetitive call, while it works, bloats my classes, makes them almost impossible to read, and involves a lot of cutting and pasting so it's prone to mistakes.
    So...then I stumbled on reflection. From reading the API, it appears (please correct me if I'm wrong) that you can get particular methods and constructors from classes using reflection, and then call them. This would allow me to make two small overloaded methods, to cut down on the amount of code, like so:
    public JMenuItem addConstructorAction( JMenuItem item, Constructor c ) {
    item.addActionListener( new ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    c.newInstance();
    return item;
    public JMenuItem addConstructorAction( JMenuItem item, Method m ) {
    item.addActionListener( new ActionListener() {
    public void actionPerformed( ActionEvent e ) {
    m.invoke( params );
    return item;
    }So, am I right that this is how reflection works, or have I misread something? If anyone could give me advice on how to use this properly or an alternate idea, I'd appreciate it.
    Thanks,
    Jezzica85
    PS -- Sorry about the indenting on the code examples; I don't know why they didn't indent, hopefully they're still readable.
    Edited by: jezzica85 on Jan 14, 2009 7:04 AM

    Well, I didn't think this would turn into a SSCCE situation, but that's OK-- I probably should have assumed that to begin with. Anyway, here's a small program that shows what I'm talking about:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    public class MenuTest {
         public static void main(String[] args) {
              try {
                   JFrame frame = new JFrame();
                   frame.setSize( 300, 300 );
                   frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                   JMenuBar test = new JMenuBar();
                   JMenu menu = new JMenu( "myTest" );
                   JMenuItem item = new JMenuItem( "TestWindow test" );
                   item.addActionListener( new ActionListener() {
                        public void actionPerformed( ActionEvent ex ) {
                             new TestWindow( "TestWindow" );
                   menu.add( item );
                   JMenuItem item2 = new JMenuItem( "TestWindow2 test" );
                   item2.addActionListener( new ActionListener() {
                        public void actionPerformed( ActionEvent ex ) {
                             new TestWindow2( "TestWindow2" );
                   menu.add( item2 );
                   test.add( menu );
                   frame.setJMenuBar( test );
                   frame.setVisible( true );
              } catch( Exception e ) {
                   e.printStackTrace();
                   System.exit( -1 );
    class TestWindow extends JDialog {
         public TestWindow( String title ) {
              setTitle( title );
              setSize( 300, 300 );
              setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
              setVisible( true );
    class TestWindow2 extends JDialog {
         public TestWindow2( String title ) {
              setTitle( title );
              add( new JLabel( "blah" ) );
              setSize( 300, 300 );
              setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
              setVisible( true );
    }Basically, each menu item calls up a different kind of window (these are very simplified obviously). In my real application I have more than 40 different windows (because the application needs to do a lot), so repeating the actionListener code can get tedious. It doesn't look like much here, but 9 lines of code (including whitespace for readability) times at least 40 menu items is more than 350 lines of code for menu items alone. That's what I'm trying to avoid.
    Thanks,
    Jezzica85

  • JMenus and ActionListeners

    I'm making a MineSweeper clone and need some pointers on how to let people start a new game by either going to Game and choosing new or Ctrl_N.
    Here is what I have so far:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    public class Menus extends JMenu
    private static TimerDisplay TD=new TimerDisplay();
    public static JMenuBar menus()
    JMenuBar mb=new JMenuBar();
    JMenu game=new JMenu("Game");
    game.setMnemonic(KeyEvent.VK_G);
    mb.add(game);
    JMenuItem nw=new JMenuItem("New");
    nw.setMnemonic(KeyEvent.VK_N);
    nw.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));
    nw.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event)
    // What could I put here.
    JMenuItem exit=new JMenuItem("Exit");
    exit.setMnemonic(KeyEvent.VK_E);
    exit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, ActionEvent.ALT_MASK));
    exit.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event)
    System.exit(0);
    game.add(nw);
    game.add(new JSeparator());
    game.add(exit);
    return mb;
    }

    I would probably opt for a different way of thinking about this. First off, I'd get rid of all of the statics there and make Menus a true OOP class. Next, I'd try to have it communicate in an OOP fashion with the class that displays and runs the game itself, here in my example called "MyGame". I'd give MyGame class an exit() method to allow it to decide how to exit, and a reset() method to allow it to decide how it wants to reset for a new game. This way the menus shouldn't have to and doesn't worry about these things. Something like so:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import javax.swing.*;
    public class Menus //extends JMenu
      private JMenuBar menubar = new JMenuBar();
      // a timerdisplay object may not be needed in the menu class
      //private TimerDisplay timerDisplay = new TimerDisplay();
      private MyGame myGame;
      Menus()
      //public void setGameDisplay(MyGame myGame, TimerDisplay timerDisplay)
      public void setGameDisplay(MyGame myGame)
        this.myGame = myGame;
        //this.timerDisplay = timerDisplay; // probably not needed
        initMenus();
      public JMenuBar getMenuBar()
        return menubar;
      public void initMenus()
        JMenu gameMenu = new JMenu("Game");
        gameMenu.setMnemonic(KeyEvent.VK_G);
        menubar.add(gameMenu);
        JMenuItem nw = new JMenuItem("New");
        nw.setMnemonic(KeyEvent.VK_N);
        nw.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,
            ActionEvent.CTRL_MASK));
        nw.addActionListener(new ActionListener()
          public void actionPerformed(ActionEvent event)
            myGame.reset();
        JMenuItem exit = new JMenuItem("Exit");
        exit.setMnemonic(KeyEvent.VK_E);
        exit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4,
            ActionEvent.ALT_MASK));
        exit.addActionListener(new ActionListener()
          public void actionPerformed(ActionEvent event)
            //System.exit(0);
            myGame.exit();
        gameMenu.add(nw);
        gameMenu.add(new JSeparator());
        gameMenu.add(exit);
    }Then it could all be tied together with a Controller or Main class that creates the MyGame class, creates the Menus class and adds one to the other.

  • How to include PJC and Java Beans in forms

    I have tried a lot to include java codes in my forms ..So I decide to start with ProgressBarPJC(cause it is tested and provided with demo) but I could not set implementation class of java bean object to
    oracle.forms.demos.ProgressBarPJC it does not accept it but it accept ProgressBar instead of ProgressBarPJC. I don't know why? I have made changes in Forms90_builder_classpath to access f90all.jar and progressbar.jar. I have Progressbar.class and progressbarpjc.classs both but i don't know how to set implementation class to ProgressBarPJC.
    don't you think there is lots of configuration and path setting to use any JPC or Jar in forms? I am totally confused with this integration.
    Please solve this matter
    Thanking you,
    Neeraj

    and even more information samples and step by step instructions are on the Java spotligh on the Forms Upgrade Center : http://otn.oracle.com/formsupgrade

  • Rootpanes and ActionListeners

    Hi,
    I have an Actionlistener on the rootpane of a JFrame to catch when the user hits 'ESC' (using 'registerKeyboardAction'). This works ok no matter what Swing object has the focus, except when a JTable or JTree has the focus. Is this a bug and is there a work around?

    Figured it out.
    Use the following to deactivate the ESC key for JTables and JTrees
    jTable1.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false));
    jTree1.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent().remove(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false));

  • Pjc and hindi not getting java class

    I am trying to implement a java class using hindi font .I have also configured formsweb.cfg file for jar file. I have placed the jar file under java directory in form60 on application server machine . below is produced the message on java console --
    Opening http://jbpeast/forms60java/oracle/forms/pjc/TextField/HindiPJC2k.class no proxy
    java.lang.ClassNotFoundException: oracle.forms.pjc.TextField.HindiPJC2k
         at sun.applet.AppletClassLoader.loadClass(Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
         at oracle.forms.handler.UICommon.instantiate(Compiled Code)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.TextFieldItem.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.handler.LogonDialog.actionPerformed(Unknown Source)
         at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at oracle.ewt.button.PushButton.activate(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton._processKeyPress(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Compiled Code)
         at java.awt.Container.processEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Compiled Code)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1574)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    I think it is not coorectly getting either class or font .
    I have also implemented one more java class which changes bgcolor of text box ( from tutorials on otn ) it is working fine.
    Please help me.

    Hi Frank
    Thanks for response. Mt formsweb.cfg is added with an entry
    [pjc]
    archive_jini=f60all_jinit.jar,HindiPJC2k.jar
    The jar file have been made by combining all the class files.
    But the message is comming .
    I use the URL
    http://server_name/dev60cgi/ifcgi60/?config=pjc&FORM=hindi_pjc.FMX
    all other forms like modcursor.fmx, keyfilter.fmx (available on oracle technet) are behaving well but this for is giving problems.
    I have copied the jar file is 806/form60/java directory .
    Please help me.
    Prashant

  • PJC and JavaBean Demos from other source

    Hi ,
    Is there any PJC demos on web that can be reference apart from technet?

    Hello,
    What do you mean by "technet" ? Are you talking about the Forms demos you can download form the OTN Forms home page ?
    Francois

  • Executable JARs, JFrames, and ActionListeners

    I'm fairly new to Java, and am currently attempting to create my first JAR executable file. I am using the Eclipse IDE and JDK 5.0. I use Eclipse's export option to create a JAR executable. When the JAR is exectued, it successfully creates and displays the intial JFrame; however, a second JFrame that is created by an ActionListener on a JButton, and is based on input from a JTextArea, is never created when the JButton is clicked on. The second JFrame also accesses txt files based upon the JTextArea input, each of which are contained inside of the JAR file as well. The program compiles and runs successfully when ran as a Java Application or SWT Application in Eclipse, so I am unsure why the export ability is not working.
       public FrameClass1()
          inputTextArea = new JTextArea(29, 95);
          inputTextArea.setFont(new Font("Courier New", 0, 12));
          //Adds the inputTextArea to a JScrollPane, and then adds it to the frame's Center
          buttonPanel = new JPanel();
          submitButton = new JButton("Submit");
          submitButton.addActionListener(new
             ActionListener()
                public void actionPerformed(ActionEvent event)
                   String textInput = inputTextArea.getText();
                   //Output frame creation
                   FrameClass2 outputFrame = new FrameClass2(textInput);
                   outputFrame.setVisible(true);
          buttonPanel.add(submitButton);
          //buttonPanel is added to the frame's south portion
       }Any suggestions as to why the second frame class is not being generated and how to fix it are greatly appreciated. Thanks in advance.

    To capture the error messages, I've used this try-catch statement, though as I posted earlier, I am not familar with JARs. I have identified that my error is a IllegalArguementException, though I cannot find a precise location of where this exception occurs, as the exceptionOutputFrame is never populated with the stack trace. I've tried both e.getMessage() (below) and e.printStackTrace().toString() with both JLabels and JTextAreas, but the JPanel will not populate with data. Could anybody recommend a good method of outputing the stack trace? In addition, could someone explain the use of getResourceAsStream a little more? Should I be using the class ClassLoader's method or the interface ServletContext? I'm a little rough around the edges with the idea of a resource, so does anybody have a good online reference that I could look at?
         try
              // Insert output frame creation here.
              Class2 outputFrame = new Class2(textInput);
              outputFrame.setVisible(true);
         catch(Exception e)
              JFrame exceptionOutputFrame = new JFrame(e.getClass().getName());
              JScrollPane exceptionOutputScrollPane = new JScrollPane();
              JPanel exceptionOutputPanel = new JPanel();
              JTextArea exceptionOutputLabel = new JTextArea(e.getMessage());
              exceptionOutputPanel.add(exceptionOutputLabel);
              exceptionOutputScrollPane.add(exceptionOutputPanel);
              exceptionOutputFrame.add(exceptionOutputScrollPane);
              exceptionOutputFrame.setSize(exceptionOutputLabel.getWidth(), DEFAULT_HEIGHT);
              exceptionOutputFrame.setVisible(true);
         catch(Error e)
              JFrame errorOutputFrame = new JFrame(e.getClass().getName());
              JScrollPane errorOutputScrollPane = new JScrollPane();
              JPanel errorOutputPanel = new JPanel();
              JTextArea errorOutputLabel = new JTextArea(e.getMessage());
              errorOutputPanel.add(errorOutputLabel);
              errorOutputScrollPane.add(errorOutputPanel);
              errorOutputFrame.add(errorOutputScrollPane);
              errorOutputFrame.setSize(errorOutputLabel.getWidth(), DEFAULT_HEIGHT);
              errorOutputFrame.setVisible(true);
         }

Maybe you are looking for

  • Free Goods with Batch Management Activated !!!

    Hi Gurus, I have defined a free goods master data for material on which batch is activated. I have defined the it as with a min of 10 qty 1 free good will be delivered as exclusive item Now as the batch management is active and each batch has 1 qty i

  • Unable to view SQL Request in Log files

    Hi Folks, I am facing an issue which I am unable to find out the solution to view the physical query generated in log files in Presentation Services. Below is the SQL Request generated but I want to view the exact physical query i.e SQL Request which

  • Client Asserts under VisualAge 2.0 & WLS 4.5.1

    I followed the instructions of previous newsgroup posts on homw to get weblogic.Server running under VA2.0. That works fine, my problem is my client. Every time I try to run a simple client, I get the following error: Beginning statelessSession.Clien

  • My first smartphone....how do I pin or save podcasts?

    H, This is the first smartphone I have ever had and I will admit I was a little hasty in buying it. I LOVE Nokia phones, always have. But if I had it to do over I would probably buy an Android. I bought this phone to integrate with my system at work

  • Innaugural demo: Is there any difference between 'GO' and 'Search'?

    I'm still poking around in this demo, and it looks to me like a) The Go and Search buttons do EXACTLY the same thing b) There are some old objects in there that are no longer used (OLD_SEARCH). I see two sets of code to generate results for pg. 2, bu