JTable bean in forms

I would like to display JTable based bean in Oracle Forms 10g but I get:
*** VBean null PropertyManager for id = FOREGROUND
*** VBean Got FOREGROUND = null
*** VBean null PropertyManager for id = BACKGROUND
*** VBean Got BACKGROUND = null
*** VBean Setting debugMode to ALL
*** VBean Setting beanName to plusplus.PPCalendar
*** plusplus.PPCalendar Registering properties
*** plusplus.PPCalendar     int pWidth
*** plusplus.PPCalendar     int pDebugGraphicsOptions
*** plusplus.PPCalendar     int pHeight
*** plusplus.PPCalendar     boolean pOpaque
*** plusplus.PPCalendar     javax.swing.InputVerifier pInputVerifier
*** plusplus.PPCalendar     Failed to introspect class: class plusplus.PPCalendar java.lang.NullPointerExceptionPPCalendar's code:
public class PPCalendar extends JPanel
  private JTable table;
  private DefaultTableModel model;
  private JScrollPane jsp;
public PPCalendar() {
   super();
   model = new DefaultTableModel( new String[] [] {  {"1x1", "1x2"},  {"2x1", "2x2"}}, new String [] {"First", "Second"});
   table = new JTable(model);
   jsp = new JScrollPane(table);
   jsp.setAutoscrolls(true);
   this.add(jsp);
   this.setVisible(true);
  public void setHead(String nes) {
    String val1 = (String) model.getValueAt(0,0);
    System.out.println("val1: " + val1);
  public String getHead() {
    return (String) model.getValueAt(0,0);
  }Setting property (     fbean.set_property('tb.ptable', 1, 'head', 'Blah');) fails, but I can set properties (introspection still fails) if I try something similar with:
package plusplus;
//import java.awt.Panel;
//import java.awt.Label;
import javax.swing.JPanel;
import javax.swing.JLabel;
public class Simple extends JPanel  {
  private JLabel naziv = new JLabel();
  public Simple() {
    try {
      jbInit();
    } catch(Exception e) {
      e.printStackTrace();
  private void jbInit() throws Exception {
    naziv.setText("XXX");
    this.add(naziv, null);
  public void setNaziv(String tekst) {
    naziv.setText(tekst);
}What am I doing wrong? Are there some "more advanced" swing based bean examples?
Is there some kind of documentation on oracle.ewt.* and Dynamic Bean Manager?

The problem is that you're extending JPanel - the issue is not your fault (or ours for that matter) it's a problem in the base JPanel class which causes a NPE when introspecting the properties that it exposes because it does not conform to the JavaBeans Spec.
We've put a WorkAround into the FBean code in Forms 10.1.2 but for the moment you will have to extend Panel rather than JPanel and all should be ok - this should make no difference to the operation of the Bean.
Another option would be to write a BeanInfo class for your Bean and prevent the exposure of the problem property (inputMap) that way.

Similar Messages

  • Integrating BI Beans into Forms 10g

    Hi all,
    <br><br>
    We have our application built using Oracle Forms and Reports 10g R2. I am thinking that BI Beans would highly inhance the reports in our application.
    <br><br>
    If my idea is true, <b>is it possible to use Oracle BI Beans in Forms 10g?</b> Any guideline or related link would be highly appreciated.
    <br><br>
    Thanks.

    hello,
    i use the formsgraph.jar into my test_forms,the data is display ok,but the Y axis scale i didn't solute it what i want to display.
    for example:
    7|
    6|
    5|
    4|
    3|
    2|
    1|
    0|_______________________________________________________________
    0 1 2 3 4 5 6
    my problem is that how i can define the Y axis what i want it to display.that only display 0-2-4-6-8-10-12 if recompile the java codes ,where i can modify???
    please help me !
    thanks!!

  • Embedding Java bean in Forms 6i

    Hi,
    Can anybody guide me to embed java bean in forms 6i . I need steps to embed. I tried the steps given in oracle site for KnobBean steps are confusing. Can anybody pls help me
    thanks in advance
    Ilam

    Hi
    Following is the result of Jinitiator Java Consol.......
    Oracle JInitiator version 1.1.8.19
    Using JRE version 1.1.8.19
    User home directory = C:\Documents and Settings\Administrator
    JAR caching enabled.
    Cache directory: C:\Program Files\Oracle\JInitiator 1.1.8.19\jcache
    Maximum cache size: 50000000 bytes
    Opening http://202.163.88.194:6777/forms60java/f60all_jinit.jar no proxy
    Loading http://202.163.88.194:6777/forms60java/f60all_jinit.jar from JAR cache.
    Opening http://202.163.88.194:6777/forms60java/java/awt/KeyboardFocusManager.class no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/forms/engine/MainBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/MainBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/ewt/swing/JBufferedAppletBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/JBufferedAppletBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/ewt/lwAWT/BufferedAppletBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/BufferedAppletBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/ewt/popup/PopupAppletBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/PopupAppletBeanInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/forms/registry/Registry.dat no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/forms/registry/default.dat no proxy
    proxyHost=null
    proxyPort=0
    connectMode=HTTP
    Forms Applet version is : 60821
    Opening http://202.163.88.194:6777/forms60java/oracle/forms/demos/GetClientInfo.class no proxy
    Opening http://202.163.88.194:6777/forms60java/oracle/forms/demos/Utils.class no proxy
    Regards
    Laila Mac

  • Using Bean in FORMS 6i

    hi
    i'm using oracle froms 6i client server not application server ( i know it's old but there is customer we have using it) , i want using java bean inside forms 6i , i have the bean (jar files) and i put it in oracle_home\forms60\java and i modify class path in my windows ,put the jar file name inside,and opened new form and i imported the class that i want it inside my form , till now i didn't have any problems,but when i run the form , the place of bean in forms appear is blank (white) although i change bean property implimintaion class the class name that i imported before , so i don't know what is the problem ????
    bye

    Hello,
    Java Beans won't work in C/S mode, but only with Web versions.
    Francois

  • Printing Java Bean through Forms

    I want to be able to print the contents of a Java bean through forms. Preferably through a popup on right click. Does anyone know how i can do this?
    It is the BI Graph example given through oracle.
    Thanks

    Hi,
    I'd like to be able to do the same thing ... did you find a solution?
    Steve

  • How can i load A gui JTable bean through jsp:useBean tag in a jsp page

    Hi,
    i am chiranjit , i am in a jsp project . i am desparately looking a solution for below stated problem:
    i want to make a jsp page for master entry , that why i want to load a GUI Java bean in my jsp page.This GUI Bean contaning a JTable in which allow grid type data entry in the jsp page. But i am unable load that bean in the jsp page through jsp:useBean tag in my page.So if you have any solution then send in the forum as early as possible.
    Thank you
    chiranjit

    No can do. JSPs can only output plain HTML (and javascript...) They are not used like normal Java classes.
    If you need a complex GUI then you might use an Applet instead. If you want to use a JSP then you are stuck using normal HTML components, like <table> <form...> <input type="text"> etc...

  • How to use bean in forms

    i create one form based on emp. then i create beanarea and set its "Implementation Class Property"
    to oracle.forms.demos.Calendar.
    i copied calendar.jar from D:\oracle\ds9i\forms90\demos\jars to this lacation
    D:\oracle\ds9i\forms90\java
    after i write D:\oracle\ds9i\forms90\java\calendar.jar
    in the below registry paths:
    forms90_classpath
    forms90_builder_classpath
    forms90_path
    but not working.i am new in oracle plz help. i want to know how to use bean in forms

    1. \forms\server\formsweb.cfg
    archive_jini=frmall_jinit.jar,FormsProperties.jar
    2. regedit
    HKEY_LOCAL_MACHINE => FORMS_BUILDER_CLASSPATH
    C:\DevSuiteHome_1\forms\java\frmbld.jar;C:\DevSuiteHome_1\jlib\importer.jar;
    C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\jlib\utj.jar;
    C:\DevSuiteHome_1\jlib\dfc.jar;C:\DevSuiteHome_1\jlib\help4.jar;
    C:\DevSuiteHome_1\jlib\oracle_ice.jar;C:\DevSuiteHome_1\jlib\jewt4.jar;
    C:\DevSuiteHome_1\jlib\ewt3.jar;C:\DevSuiteHome_1\jlib\share.jar;
    C:\DevSuiteHome_1\forms\java\frmwebutil.jar;C:\DevSuiteHome_1\forms\java\frmall.jar;
    C:\DevSuiteHome_1\forms\java\FormsProperties.jar;
    3. Untuk Jdev.. include..Libraries [THE WAY I AM CREATING A BEAN..NO NEED TO READ THIS]
    ORacle Forms
    C:\DevSuiteHome_1\jdev\lib\ext\frmjdev_pjc.jar

  • Step by Step how to Use Java Beans in Form 6i

    Dear All,
    Can anybody tell me step by step how to use Javabeans in form 6i.
    What i want is to know which form is getting executed and by whom with ip address on application server.
    When is execute the form made using javabeans
    Best Regards,
    Devendra

    Hello,
    <p>Here is the best way to start with Javabeans.<br>
    After reading that, you can see if this bean can fit</p>
    Francois

  • How to populate form bean (Action form) from Action  (Struts)

    Hello to all..
    I have a problem populating a from bean in struts from Action class...
    What I would like is ..
    1. how can I populate a formbean from Action so when a page (JSP) with tags will be displayed some tags will be set and some no (depends on data from database)..
    example...
    look at the picture...
    http://freeweb.siol.net/peterv6i/ax1.jsp
    I have a AO2.jsp page linked to action2 and also i have a formbean with set/get methods...
    nex step.. when I call action2 I' retrive datas from my database and in Action class I would like to populate formbean which is from page AO3 (which will be displayed)..
    Is this possible? here is my code but work only for 1 user.. if there are 2 or more users on page I get internal server error (Exception)..
    this is my Action class
    public class Action2 extends Action
    public[b] ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    System.out.println("Action2");
    session = request.getSession();
    if (session.isNew()) {
    response.sendRedirect("AO2.jsp");
    AO3formbean frm = new AO3formbean(); <-- this is formbean from page AO3.jsp which I like to populate
    frm.setName("xxxxxx");
    frm.setSurname("ekekelek");
    session.setAttribute("AO3formbean", frm); <-- here I put a formbean in session
    return mapping.findForward("success");
    then the AO3.jsp page will be called which use a AO3formbean... and here problems come... If only one user use the application all is ok.. but when two or more users use the same form with different session the page will not work well.. sometimes i get exception, sometimes white page.. sometimes nonsense datas are displayed..
    Anybody know if is possibile to populate a formbean and store it in session or I must change whole code?
    for example...
    In my form i must enter a car assicurance policy number... (page AO2.jsp)..
    then in the action form I must connect to my database and retrive information from table and populate bean which is also a formbean on the page AO3 which will be desplayed.. (if I'am doing something wrong please let me know the right way)
    best regards

    http://freeweb.siol.net/peterv6i/ax1.jpg

  • JTable with JPanel form as cell renderer/editor

    I have a JTable that uses a custom cell editor/renderer. The cell editor/renderer is a JPanel form with labels and text panes. As the user edits the information, I adjust the table row height (setRowHeight) and the JPanel layout manager updates the layout on the cell editor. This all seems to work fine. However, when the user exists the cell and the cell renderer is shown, it has the correct new row height but has not been correctly layed-out for the new row height. How do I force my cell renderer to be re-layout after the editor closes?

    That does not seem to work. I have done the following:
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int r, int c)
    this.table = (EditorTable) table;
    row = r;
    column = c;
    if (isSelected)
    setBackground (Preferences.selectedRowBgColor);
    else
    setBackground (formBg);
    // constructs the panel components
    setCellValue (value);
    revalidate();
    return (this);

  • 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

  • JTable Javabean in Forms 6i (6.0.8.11.3)

    All,
    Am trying to show up a JTable in forms6i module. I had my .jar files and java file copied to right places, Included a BEANAREA item to a DBlock, set the implementation class pointing to the proper class.
    When i tried to open the beanarea item in my layout. The forms is crashing.
    1) Is there a specific patch for forms 6i do i have to install ??
    2) Forms 9i/10g is working fine for the above example. Is there a diff way for forms 6i ??
    If somebody could pour some insights on this.. then that would be much much appreciated..
    Thanks
    - Karthik Dhinakaran

    France / Gerd
    Thanks for the replies.
    The intention is to bring a grid kind of control in forms. So that multiple selection of rows can be made for a specific operation.
    France - Thanks for the idea to look at the java console. Will try that and post it here.
    2 years back , when working with GE, Indiana. We used a similar technique. I thought of marking a difference in the form which we work day to day. Also it's very useful in handling the multiple items. I have the code, it's workign in forms 9i/10g but i need to implement the same in forms 6i.
    Your feedback will be much much much appreciated. Infact will be greatful !
    Message was edited by:
    [email protected]

  • Java bean in  form version 6.0

    Does anyone know if it's possible to put a javabean into a forms (v6) in runtime mode ie client server mode (no webforms)?.
    If it is possible ... how can i do it?
    I want to change the look and feel of my form.....how can i do it if java bean is not supporting forms 6.0 in client server mode
    Thanks in advance
    shareef

    Hello,
    You should ask this question in the Oracle Forms Forum :
    Forms
    Regards

  • Implementing java beans in forms 10g [Problem]

    Hi All,
    I am trying to implement the java bean in the forms 10g
    I performed the following steps, but no luck.. Could anybody please help me in this?
    I have created a simple java class
    package mypackage1;
    public class MyClass
    public String GetString(String a)
    return a;
    Make a jar myjar.jar out of it.
    Copy this jar files in $ORACLE_HOME/forms/java directory
    and set the archive.jini parameter in formsweb.cfg to
    archive_jini=frmall_jinit.jar,Myjar.jar
    Created a simple form having one button, one textbox
    Set the implementation class property of text item to mypackage1.MyClass
    on button pressed trigger, I wrote
    set_custom_property('block2.text_item4',1,'GetString','Hello World');
    Ideally, on button pressed, it should show the text "Hello World" in the etxt box. But on button pressed nothing is happening and in java console on error is appearing.
    My java console output is
    Loading http://asst104253:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://asst104253:8889/forms/java/Myjar.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    Could anyone please tell me what I am doing wrong?? And how do I achieve this functionality??
    Please, any help appreciated !!

    Hi there
    The is plenty wrong with this code:
    1. MyClass is not extending VBean
    2. There is no public boolean setProperty(ID ID, Object args) method and no property IDs have been defined so set_custom_property('block2.text_item4',1,'GetString','Hello World'); will not execute anything
    3. If you're hoping to return values back from the bean, you need to define a custom event and associated ID.
    If you're just looking for some java code to return values in a similar manner as normal Oracle functions then you may want to consider using forms java stored procedures which are based on static java methods. Beans are really more for interaction type stuff with other applications.
    But any way if you want to do it this way (i.e. using beans) then at very least you class should look something like (Note, I have not compiled is so there may be a few errors):
    package mypackage1;
    import oracle.forms.handler.IHandler;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    import oracle.forms.engine.Main;
    import oracle.forms.engine.*;
    import oracle.forms.handler.*;
    public class MyClass extends VBean
    // initiating event id
    protected static final ID pgetString = ID.registerProperty("GetString");
    // return value id
    private static final ID preturnValue = ID.registerProperty("returnValue");
    // return event id
    protected static final ID preturn = ID.registerProperty("returnEvent");
    static IHandler mHandler;
    public String GetString(String a)
    // may do some string manipulation here.
    return a;
    public boolean setProperty(ID ID, Object args)
    if (_ID== pgetString)
    if (_args instanceof String)
    String myArg = (String)_args;
    mHandler.setProperty(preturnValue,getString(myArg));
    CustomEvent ce = new CustomEvent(mHandler, preturn);
    dispatchCustomEvent(ce);
    Keep your button as is and then to return the value back into forms place a WHEN-CUSTOM-ITEM-EVENT trigger on the bean area with something like this:
    DECLARE
         BeanValListHd1 PARAMLIST;
         ParamType NUMBER;
         EvenName     Varchar2(20);
         CurrentValue Varchar2(2000);
    BEGIN
         BeanValListHd1 := get_parameter_list(:SYSTEM.CUSTOM_ITEM_EVENT_PARAMETERS);
         IF :SYSTEM.Custom_Item_Event = 'returnEvent' THEN
              IF iD_NULL(BeanValListHd1) THEN
              MESSAGE('NO PARAMETER FOUND FOUND');     
              ELSE
              GET_PARAMETER_ATTR(BeanValListHd1,'returnValue',ParamType,CurrentValue);
              MESSAGE('IN CUSTOM EVENT THE STRING RETURNED IS '|| CurrentValue);
              END IF;
         ELSE
              MESSAGE('no value');
         END IF;          
    END;
    hope this helps
    Q

  • Can we run java bean from forms client server??

    Hi,
    The OLTP application we are planning to build has lot of gui e.g
    tabs, drag and drop etc. Our aim is to make it web enabled but
    the network bandwidth available is small 16 - 64K . So even
    thoughwe plan toi use applet , we seriuosly doubt how good it
    will perform on such low network bandwidth. [The system will
    have 100 users]
    Q1. What will be a reasonable bandwidth to run an oltp
    application (say maintenance )
    Hence we are thinking of developing with developer 6i and
    deploying our application in client server mode, which can
    easily be web enabled in future. But we also have to integrate
    visual interfaces like gantt chart, which are not available with
    forms. We plan to use third party java component (e.g ILOG
    jviews), so that in future we can easily web enable the entire
    application.
    Q2. Can we run forms with java bean in client server mode? If
    not, what are the products to be installed on each machine to
    run it without using 9ias?
    best regards

    Yes. We can run sql loader from client machine.
    C:\Karthik>sqlldr user/pass@database data='test.csv' control='test.ctl' log='test.log' bad='test.bad'
    You can go through the following link for better understanding.
    http://www.oreilly.com/catalog/orsqlloader/chapter/ch01.html

Maybe you are looking for

  • Changing the length of a key field in a table

    Hi, I want to increase the length of the field from 2 to 4 in a standard SAP table and deliver it to the customers. This field is a key field in table. This field from this table is also used in view and view clusters. What is the implication of chan

  • BADI for return order creation in CRM

    Hi group, I have an requirement. In CRM ,Return order should be created from UBB service contract when change process takes place(Contract termination), ie throgh actions in the UBB service contract. these steps are configured through Actions. The re

  • How do I get an MP4 movie to play on standard ios safari?

    What format do I need to export it as to get to play on ios? here is the sample: www.biggs.org/bhs/. the paw print is flash.

  • Integration of Premier Elements and PS Bridge

    Hi, I have PS CS5 and am thinking of buying Premier Elements 10, which looks very impressive, I thought it was all presets but am realizing now that there is a lot of freedom to the setttings.. anyway. My question is this, is there any integration be

  • MRP run performance

    Hi, We have upagrded from 4.6c to ECC 6. During testing, we find that the MRP Run takes very long time, which is very abnormal. Can anybody come up with some reason for this behaviour? Here are some inputs. Planning run through program - RMMPS000 Par