Extending the oracle java classes for PJCs - Help!

In developer6 (forms) - I am trying to create my own version of
certain forms components, without much look.
I have created an item in forms, ie. Checkbox, in the
'Implementation Class' field I called my java class.
My code 'extends VCheckbox' and I have created my own paint()
mthoed.
Whilst it does call and run my code there are several problems.
Mainly being that I cannot change the size the component - I have
seen the demo source code - and the examples of what I am trying
to do are less than simple (read: less than useless).
I dont not want a java bean. The forms help says I should be able
to extend the above class okay - but doesnt say what limitations
there are or what functionality there is in the oracle.forms.ui
classes.
Has anyone else actually achieved anything other than JavaBean
components?
null

: Have you seen the RolloverButton example ?
: It is under Forms documentation in TechNet
: and is quite advanced.
No, have search Dev6 manuals, can not find this by searching
Technet either - can you specify (provide URL)?
I am trying to re-implement the VCheckbox using Smoking/No
Smoking images. I can create the images, but the toggling action
does not work when the component size is greater than the
original subclassed component.
None of the examples show creating components of sizes that
differ from the subclass.
Surely I only need to override paint() method?
Code fragment:
import ....
public class ImageToggler extends VCheckbox {
// ... does initialisation of images ....
// ... Images are 32x32 ...
public void paint( Graphics g ) {
if ( getState() == true ) {
g.drawImage( ysSmoke.getImage(), 0, 0,
ysSmoke.getIconWidth(),
ysSmoke.getIconHeight(), this );
} else {
g.drawImage( noSmoke.getImage(), 0, 0,
noSmoke.getIconWidth(),
noSmoke.getIconHeight(), this );
null

Similar Messages

  • How to keep the generated java classes for compiled jsp in WL9.2 Workshop

    Hi all,
              <p>
              It should be a very simple question for most of you, however, it seems a bit tricky to me: how to configure the Weblogic 9.2 workshop so that we could keep the generated java files for the compiled jsp when we ran the application within WL 9.2 workshop?
              <p>
              I try some configurations, but not working. Also, where are the generated java files stored?
              <p>
              Thanks for the help!
              <p>
              Agnes
              Edited by wingagnes at 03/21/2008 7:51 AM

    Hi yzeng,
              <p>
              Thanks for the reply. If I change the jsp-descriptor into the following:
              <p>
              <jsp-descriptor>
              <p>
              <keepgenerated>true</keepgenerated>
              <p>
              <working-dir>D:\temp\golGenerated</working-dir>
              <p>
              <debug>true</debug>
              <p>
              </jsp-descriptor>
              <p>
              I will get the following error message:
              <p>
              cvs-complex-type.2.3.d:Invalid content was found starting with element 'precompile'. No child element is expected at this point.
              <p>
              Thanks,
              <p>
              Agnes

  • InterMedia Java Classes for Servlets and JSPs and Netscape

    I am using the interMedia Java Classes for Servlets and JSPs to upload and retrieve multimedia data. I have found that it is much more performant in Internet Explorer (5.5) than in Netscape Communicator (4.7). In fact, I cannot upload images larger than 10K at all using netscape. However, the same image can be uploaded into the same application using IE. Is this a known issue?
    Thanks in advance.

    Hi,
    We have successfully uploaded multimedia data in the giga-byte range (Quicktime and AVI files) at the same speed with both the Netscape (4.7n) and MS IE (4.n and 5.n) browsers. One thing we have noticed is that its very important to set the manual proxy settings correctly if you have an environment with a proxy server. If you don't, then uploads can go via the proxy server and, for some reason, that seems to take considerably longer. For example, suppose you are in the www.xyzco.com domain and are connecting to a host named webserver.www.xyzco.com, then specify webserver and webserver.www.xyzco.com (to cover both cases) in the "Do not use proxy servers for..." box in the manual proxy server configuration screen. Also, if you're using a tool such as JDeveloper that uses the host IP address in the debugger environment, then you also need to add the numeric-based (nnn.nnn.nnn.nnn) IP address to this list.
    Hope this helps.
    In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, and how you are developing and deploying your application. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected] Thank you!
    Regards,
    Simon
    null

  • Simple java class for SQL like table?

    Dear Experts,
    I'm hoping that the java people here at the Oracle forums will be able to help me.
    I've worked with Oracle and SQL since the 90s.
    Lately, I'm learning java and doing a little project in my spare time. 
    It's stand alone on the desktop.
    The program does not connect to any database 
    (and a database is not an option).
    Currently, I'm working on a module for AI and decision making.
    I like the idea of a table in memory.
    Table/data structure with Row and columns.
    And the functionality of:
    Select, insert, update, delete.
    I've been looking at the AbstractTableModel.
    Some of the best examples I've found online (they actually compile and work) are:
    http://www.java2s.com/Code/Java/Swing-JFC/extendsAbstractTableModeltocreatecustommodel.htm
    http://tutiez.com/simple-jtable-example-using-abstracttablemodel.html
    Although they are rather confusing.
    In all the examples I find, there always seems to be
    at least three layers of objects:
    Data object (full of get/set methods)
    AbstractTableModel
    GUI (JFrame, JTable) (GUI aspect I don't need or want)
    In all the cases I've seen online, I have yet to see an example
    that has the equivalent of Delete or Insert.
    Just like in SQL, I want to define a table with columns.
    Insert some rows. Update. Select. Delete.
    Question:
    Is there a better java class to work with?
    Better, in terms of simpler.
    And, being able to do all the basic SQL like functions.
    Thanks a lot!

    Hi Timo,
    Thanks. yes I had gone thru the java doc already and  they have mentioned to use java.sql.Struct, but the code which got generated calls constructor of oracle.jpub.runtime.MutableStruct where it expects oracle.sql.STRUCT and not the java.sql.STRUCT and no other constructor available to call the new implementation and that is the reason i sought for some clues.
      protected ORAData create(CmnAxnRecT o, Datum d, int sqlType) throws SQLException
        if (d == null) return null;
        if (o == null) o = new CmnAxnRecT();
        o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
        return o;
    here CmnAxnRecT is the class name of the generated java class for sqlType.
    Thanks again. Please let me know if you have any more clues.
    Regards,
    Vinothgan AS

  • I can't download the new java update for my macbook pro. I get a corrupt file message. Help!

    I can't download the new java update for my macbook pro. I get a corrupt file message. Help!

    "The new java Version 7 Update 13 is not exactly helpful in macbook pro.
    try the version 11 or 12 they should work perfectly."
    The OP is running 10.6.8 so Java 6 is his option at this point.
    For the OP try here:
    http://support.apple.com/kb/DL1573

  • OAAM 11g R2: Unable to load java class for custom configurable action

    Need to configure a Configurable Action to get triggered for a particular action at a given checkpoint.
    Steps Followed:
    1. Created a java class implementing com.bharosa.vcrypt.tracker.dynamicactions.intf.DynamicAction, getParameters() and execute() methods were implemented in that java class.
    2. Added necessary jars from $ORACLE_IDM_HOME\oaam\cli\lib to the build classpath.
    3. Compiled and created a jar with it.
    4. Extracted the oracle.oaam.extensions.war file into a working folder.
    5. Added the Custom Jar created in step 3 into <working folder>/WEB-INF/lib/
    6. Changed the following in MANIFEST.MF in <working folder>/META-INF/:
    Specification-Version:11.1.2.0.1
    Implementation-Version:11.1.2.0.1
    7. Rejar-ed the oracle.oaam.extensions.war from the working folder using following command:
    jar -cvfm oracle.oaam.extensions.war <working folder>\META-INF\MANIFEST.MF -C <working folder>/ .
    8. Stopped the oaam_admin_server1, oaam_offline_server1 and oaam_server_server1.
    9. Deleted the oracle.oaam.extensions deployment from the weblogic.
    10. Deployed the newly created oracle.oaam.extensions as a shared library for oaam_admin_server1 and oaam_server_server1.
    11. Started all managed servers.
    But when I tried to create an action template with the java class I just created, it was throwing following error
    +java.lang.ClassNotFoundException: *+
    Unable to load configurable action class *. Ensure the class is made available in the class path.
    Referred following documents:
    1.      http://docs.oracle.com/cd/E27559_01/admin.1112/e27207/cfgactions.htm
    2.     http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/cfg-action.htm
    3.     http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/extend.htm
    Kindly help me. Thanks in advance.
    Edited by: 917717 on Dec 12, 2012 7:16 PM

    This thread is a bit stale but I thought it might help to clarify one point about custom jar files on UCCX.
    To properly load a custom jar:
    Upload it into the classpath directory in the document repository. 
    Select it under System | Custom Classes Configuration
    Finally you need to restart the CCX Engine and the CCX Administration services.  If you have HA you need to restart them on both servers. 
    Other notes:
    When referencing your class in the CCX Editor, use the fully qualified name of the class.  Lots of other classes use things like Element or Document so you need to be explicit. The editor only knows about the 20 native classes by their object names.  If you create a Document object in the editor you are really creating a com.cisco.doc.Document object.  If you loaded jdom.jar and you wanted a jdom document then you need to create an object of type org.jdom.Document.
    When compiling your custom jar files, be sure to compile for the version of Java that the CCX Engine runs.  In general UCCX 7.X and older use Java 1.4.  UCCX 8.X and higher use Java 1.6.  Several of the core Java classes had significant changes between 1.4 and 1.6. If you ran your code on UCCX 7 or earlier and now it fails in UCCX 8.X or higher, recomplile for Java 1.6 and you classes will likely work again.
    Finally, check for security violations in UCCX 8.X or higher.  Cisco has restricted some of the things you can do.  These URL's have more information:
    http://docwiki.cisco.com/wiki/Engine
    http://docwiki.cisco.com/wiki/Troubleshooting_Tips_for_Unified_CCX_8.0
    -Steven
    Please help us make the communities better.  Rate helpful posts!

  • Unable to create connection to the Oracle Java Cloud server

    Hi All,
    I am trying to deploy simple ADF application to Oracle Cloud.
    I am successfully transfered HR schema to my database cloud service and now am trying to create a connection to the oracle java cloud service instance
    but it is failing to create a connection to the cloud server and throwing the error message
    Testing Cloud-Admin                    ... failed.
    listApplications failed.
    Check username, password, domain, instance.
    Check cloud sdk location & version: Tools->Preferences->Oracle Cloud
    0 of 1 tests successful.
    MyService details are as follows
    JDEV : Build JDEVADF_11.1.1.6.0CLOUD_GENERIC_121118.1600.6229
    Cloud version: 13.2.2.0.0
    I am pretty sure , i am using proper credentials since am able to java cloud service console with same credentials.
    Please help me out on this.
    Thanks

    Hi Thanks for the reply
    I check check-box of proxy settings and restarted the jdeveloper and tried again but still it throws the same error? one doubt here...what all we need to include / exclude in our proxy settings...
    and the I tried providing service name as both java and javatrial8477 but no luck i followed the same steps which are mentioned in the below document
    Part 2: Deploying ADF Applications to Oracle Java Cloud
    Do i need to do any other configuration? Or i can directly deploy my ear file to java service console rt instead of creating connection tot the server from IDE.
    Regards,
    Kotresh

  • JAXB to generate java classes for XSD.

    Hi
    I have a XSD, which is importing other couple of xsds in it, tried to generate java classes using xjc, it is throwing error.
    C:\vittal\Project\received\development-1\da_xsd>xjc -p com daAuthoring.xsd
    parsing a schema...
    [ERROR] Property "Alt" is already defined. Use <jaxb:property> to resolve thi
    s conflict.
      line 42 of file:/C:/vittal/Project/received/development-1/da_xsd/commonElement
    s.xsd
    [ERROR] The following location is relevant to the above error
      line 2205 of file:/C:/vittal/Project/received/development-1/da_xsd/daCommonEle
    ments.xsd
    Failed to parse a schema.Please let me know how to fix this issue.

    Thanks for information,
    I do understand xml well, and having basic knowledge on XSD.
    1. can i generate a java classes for a xsd which is including other XSDs.
    2. how to overwrite the issue, using annotation, point me to a location where i will get more information, that will be great help.
    here is my xsd.
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:dctm="http://www.documentum.com" elementFormDefault="qualified">
         <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="ditaarch.xsd"/>
         <xs:import namespace="http://www.documentum.com" schemaLocation="dctmAttrs.ent.xsd"/>
         <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
         <xs:group name="alt">
              <xs:sequence>
                   <xs:element ref="alt"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="desc">
              <xs:sequence>
                   <xs:element ref="desc"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="title">
              <xs:sequence>
                   <xs:element ref="title"/>
              </xs:sequence>
         </xs:group>
         <!-- Elements in tblDecl.mod -->
         <xs:group name="colspec">
              <xs:sequence>
                   <xs:element ref="colspec"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="entry">
              <xs:sequence>
                   <xs:element ref="entry"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="row">
              <xs:sequence>
                   <xs:element ref="row"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="tbody">
              <xs:sequence>
                   <xs:element ref="tbody"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="tgroup">
              <xs:sequence>
                   <xs:element ref="tgroup"/>
              </xs:sequence>
         </xs:group>
         <xs:group name="thead">
              <xs:sequence>
                   <xs:element ref="thead"/>
              </xs:sequence>
         </xs:group>
    </xs:schema>

  • How to find the main java class file

    I need to write a Java program which MUST know one of these:
    1) the full path to the main java class (the class with "main" method)
    or
    2) access to the main class as byte array.
    If i know (1) then I have no problems reading the main class into byte array, but the main target is still (2).
    Another option is if the main file is in JAR, which again leads to problems, because I cannot access the file in normal way, but I still need access to the exact byte stream.
    Any help is highly appreciated! Thanks!
    <<< Ivan Davidov >>>

    You could try somthing like this in your main-method:
    InputStream is = getClass().getResourceAsStream(<"myModifiedPackageName/MyClass.class">);I don't know if this works though.
    Have a look at the API doc for this method.
    -Puce

  • How to install the Oracle ODBC driver for all NT users

    I need to schedule a task on a SQL server running on NT to access an Oracle DB.
    I have installed the Oracle ODBC driver on it and it is working well under my NT account.
    But the SQL scheduler runs on another NT account and the task failed.
    How is it possible to install the Oracle ODBC Driver for all NT users ???
    Thanks for your inputs...

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • How do I check the Oracle enviornment variables for a connection?

    I am using Oracle JDBC 10.2.0.4 and trying to output the Oracle enviornment variables for a connection.
    I am trying to determine if the values output from sqlplus from the following two SQL select statements are different in the connection object:
    SELECT * from NLS_SESSION_PARAMETERS order by 1;
    NLS_CALENDAR GREGORIAN
    NLS_COMP BINARY
    NLS_CURRENCY $
    NLS_DATE_FORMAT MM/DD/YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE AMERICAN
    NLS_DUAL_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_LANGUAGE AMERICAN
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NUMERIC_CHARACTERS .,
    NLS_SORT BINARY
    NLS_TERRITORY AMERICA
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    SELECT sys_context('userenv','language') from dual;
    AMERICAN_AMERICA.WE8ISO8859P1
    Is there a way to do this in the API or do I just need to run the SQL statements in a Class and output the values to a log?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

    So try it.
    Create a connection with no settings.
    Alter all of the (session only)
    Query again and see.
    Either the query will return the altered values or it won't.

  • How to run the imported java class in form

    Help!!!!!
    Pls help me to run the imported java class in forms.
    Package is created in forms while imported one class called
    singlexml.class and that package has one procedure and one
    function.
    I just wanted to run that class.I mean the new package.
    Thanks
    Anil

    Hi,
    It is because the converter works on byte code and it only supports a subset of the Java language (see the JC specifications). It is kind of like compiling you code on Java 6 and trying to run it on Java 5. The JCDK outlines the required compiler version.
    Cheers,
    Shane

  • Generic Java class for working with Context Nodes

    Hi,all
    I would like to write generic Java class for working with Context Nodes:
    populating node,
    add element to node,
    update node element,
    remove node element
    Any ideas how can I do it?

    Hi,Armin
    Thanks for your answer.
    I have many nodes with the same structure,but different data.
    I don't want to work with each one of them individually.
    This is the main reason.
    Regards,
    Michael
    Any ideas?

  • What is Oracle Java Class Type?

    Hi,
    I read a oaf coding stand document.it said that "Can not use database Java(Oracle Java Class Type)".do anyone know what is Oracle Java Class Type?
    Thanks & Regards
    binghao

    Are you using the internal converer?
    <af:inputText value="#{bindings.MyClobContent.inputValue}"
    label="#{bindings.MyClobContent.hints.label}"
    converter="oracle.genericDomain"
    required="#{bindings.MyClobContent.hints.mandatory}"
    columns="#{bindings.MyClobContent.hints.displayWidth}"
    maximumLength="#{bindings.MyClobContent.hints.precision}"
    shortDesc="#{bindings.MyClobContent.hints.tooltip}"
    id="it2" rows="10">
    <f:validator binding="#{bindings.MyClobContent.validator}"/>
    </af:inputText>
    If it does not work, create & use custom converters as mentioned in the above thread.
    Thanks,
    Navaneeth

  • Booting WLS Java classes for JMS C Client

              ** Workshop 8.1 Beta **
              I am trying to boot the WLS server with the WLS Java classes (used for supporting
              the JMS C Client from dev2dev) contained in the CLASSPATH. The JVM is exiting
              with the attached error.
              I have removed the credentials in the config.xml as suggested by the error log.
              Any ideas? Thanks, Craig.
              [errors.txt]
              

              Problem with loading JMSCHandler.class in the class loader. Added JMSCHandler.class
              to weblogic.jar and problem was resolved..
              "craig" <[email protected]> wrote:
              >
              >
              >
              >** Workshop 8.1 Beta **
              >
              >I am trying to boot the WLS server with the WLS Java classes (used for
              >supporting
              >the JMS C Client from dev2dev) contained in the CLASSPATH. The JVM is
              >exiting
              >with the attached error.
              >
              >I have removed the credentials in the config.xml as suggested by the
              >error log.
              >
              >Any ideas? Thanks, Craig.
              

Maybe you are looking for

  • What is the BAPI or FM that returns figures as seen on Txn MMBE ?

    Hello friends, I have to create a custom report that shows some of the figures as seen on Txn MMBE.   So may I know which BAPI or Function Module to use for getting figures like MMBE ? Thanks, - Chetan PS: I searched this forum, but the earlier respo

  • Is It possible to access checksum field of LIN frame?

    Hi All,            I am using LabVIEW 8.2 and PCI 3072 LIN card (GÖPEL electronic GmbH) . Is it possible to access checksum field of LIN frame? I have to test one LIN driver - LIN conformance test. So I need to access timing of each byte, value of ch

  • How to create the New Plant

    Hi All, I want to setup the Plants in the Development box of Implementation server. What method I want to use from SPRO Define the Plant Or Define / Copy/ delete Plant with all related objects. What other settings I required to do if i go with option

  • Mozilla 1.7.x  hangs in applet code on RH Linux with JRE 1.5.0

    Hi all, From my applet code when an URLConnection.getInputStream() method is called the browser hangs, if authentication is turned on the webserver. This works with jre 1.4.2 on linux, for the matter on windows with Jre1.5 also. Also it works on 1.5

  • Photoshop Computer build??

    My computer is 9 years old with one HDD and pentium 4 processor with 3GB of RAM and has never really been capable of handling Photoshop even though I am still using CS2.  Money isn't as tight as it once was so I am finally going to build a computer t