How to embed an applet on a tab canvas of a form

Hi, I am using JDeveloper 10.1.2.3 and 10 g DB. I have a requirement where I have to allow users to digitally sign or authorize an application in oracle forms. We use Topaz systems to sign all our documents in java. Now users want this facility in their oracle forms applications as well. I have written a bean that allows users to sign. I called this java bean from forms on click of a button and an applet pops up where in user sign and on clicking save button the signature is sent back to the form. However, what i was hoping for was to have this applet embedded within a tabbed canvas of the form, so that it appears that the user is signing on the form. This will also be useful when I have to load the signature back to the form. I don't think a separate hanging applet will look good.
Can anyone help me please.

as you already have a bean, try to show the frame of the java-applet inside the bean-area. Maybe there is also a class in your java-program yo can call directly without having to work with the apllet itself. it would also be helpful if you could post the code for your java-bean.

Similar Messages

  • How can i change the direction of tab canvas in 10g ?

    hi all
    how can i change the direction of tab canvas in 10g at runtime i want to change the direction from left_to_right to right_to_left when i did that the form not appears well
    all prompts of item not dispalyed in order of its sequence ,in spite of that it works in 6i well and change direction without any problems
    i have been used set_canvas_property and set_view_property but it doesn't work
    can anybody help me in this mater?

    please can any body help?

  • How to use stack canvas in tab canvas in oracle forms

    hi all,
    how to use stack canvas in tab canvas in oracle forms. please if any one help out in this.

    Hi
    u can simply create a button in ur tab canvas in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('SAL'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('TAB_CANVAS');In order to return back to ur tab_canvas pls create a button in this button pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS');
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    Hope this helps...
    Regards,
    Abdetu...

  • How to embed an Applet into html

    Hi, I've an applet called IDrive written in Eclispe which works perfect there, I've been trying to paste the IDrive class file into my html folder and embed my applet by trying e.g.
    <applet code="../css/IDrive.class" width="300" Height="400">
    </applet>css is a folder outside the folder which contains the html file in which im trying to embed my Applet
    but no matter what I do i keep getting class not found error's, and as im totally new to applets I hope someone could please help me....
    Thanks

    I suggest you look at the applets under the demo directory and how they are done.
    Here are also some tutorials.
    [http://www.google.co.uk/search?q=applet+html+tutorial]

  • How to change content/stacked canvases to tab canvas

    Hi,
    I have created a form which has one content canvas and multiple stacked canvases. The content canvas displays the first page and then we hv to click on next to go to the next stacked canvas and so on. I want to try making it in tabs (tab canvas) and then I will decide which one looks better and performs good.
    Can you guys please give me a detailed instruction on how to convert my content and stacked canvases to tab canvases. I have never done tab canvas. I tried one, I changed one of my present stacked canvas to tab but all the fields and texts were gone and there were just two tabs in it.
    Please suggest. Thanks in advance.

    Might get a better response in the Forms forum...
    Forms

  • How to get block name in a tab canvas

    I am trying to develope a form with six tabs on a tab canvas. Each tab pages contains a block derived from a database table and not items taken from the same table.
    If I want to capture the name of the block in a tab page when page is changed, How can I do it.

    If you like CRAZY PAIN you can parse dbms_utility.format_call_stack to get the trigger name and owner and then using all/user_triggers extract info of table name, which has such trigger defined on it.
    Although I wouldn't do that :)
    I'd simply create a variable in trigger definition containing table_name and/or another variable containing trigger name and use them.
    It is especially easy if you are generating triggers for example for some auditing purposes.
    Gints Plivna
    http://www.gplivna.eu

  • How to hide a tabpages in a  tab canvas

    Hi All,
    I am using oracle Apps R12.2 and forms 10g version
    I have Tab canvas in my page and it contain two page.
    My requirement is when the user is "PROC HEAD" means the Tab_page2 is Visible and able to acces.When other user logged means the tab should be grade out.
    I have tried so for is i have written my code in When New form Instance trigger
    And this is my code.
    declare
    tp_id TAB_PAGE;
    v_user_id number;
    begin
    select user_id into v_user_id from fnd_user where user_name='PROC HEAD';
    if fnd_global.user_id= v_user_id then
    tp_id :=FIND_TAB_PAGE('EXPEDITOR');
    SET_TAB_PAGE_PROPERTY(tp_id, visible, property_true);
    else
    SET_TAB_PAGE_PROPERTY(tp_id, visible, property_false);
    end if;
    Can any pls correct me where i went wrong.
    Thanks & Regards
    Srikkanth
    end;

    Please post your solution so others can benefit from your solution!
    Thanks,
    Craig...

  • How can I get the list of all canvas in the forms programatically?

    I want an exemple of how to do it. I really need it to put in a template.

    This is the code.
    You will see how to loop through every item of every blocks of the form:
    PROCEDURE Get_Canvas_Names IS
      lc$blockDeb     varchar2(60); -- start block
      lc$block          varchar2(60); -- current block name
      lc$item               varchar2(60); -- current item
      lc$Type               varchar2(20); -- item type
      lc$itemdeb     varchar2(60); -- first item
      lc$canvas          varchar2(60); -- current canvas name
      lc$tabcan          varchar2(60); -- current tab canvas name
      lc$Acanvas     varchar2(60):= ' '; -- old canvas name
      lc$Atabcan     varchar2(60):= ' '; -- old tab canvas name
      ln$NbRec          pls_integer := 0 ;  -- number of records (for know if the block is multi-records)
    BEGIN
      LC$BlockDeb := get_form_property( NAME_IN('System.Current_Form'), FIRST_BLOCK ) ;
      LC$Block := LC$BlockDeb ;
      Loop -- For each block of the form
      LN$NbRec   := get_block_property(LC$BLOCK, RECORDS_DISPLAYED) ;
      lc$itemdeb := get_block_property(LC$BLOCK, FIRST_ITEM) ;
      lc$item := LC$BLOCK || '.' || lc$itemdeb ;
      while lc$itemdeb is not null loop -- For each item
        -- visible item ? --
        IF GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE' Then
             -- Get the canvas and tab canvas name --
             lc$canvas := GET_ITEM_PROPERTY(LC$Item , ITEM_CANVAS ) ;
             lc$tabcan := GET_ITEM_PROPERTY(LC$Item , ITEM_TAB_PAGE ) ;
        End if ; -- GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE'   
        lc$itemdeb := get_item_property(lc$item, NEXT_NAVIGATION_ITEM );
        lc$item := LC$BLOCK || '.' || lc$itemdeb ;
      end loop ;
      LC$Block := get_block_property( LC$Block, NEXTBLOCK ) ; -- next block
      exit when LC$Block is null ;
      End loop ;
    END Get_Canvas_Names;all you have to do is to save each different canvas names in a pl/sql table.
    Francois

  • How to embed an Applet in a win32 application ?

    Hi,
    I want to write a win32 application and embed in it applet, just like IE or Netscape ...
    does anyone know how to do that ?
    could-you also cc code sample here: [email protected]
    thanks...

    I think the easiest way to do this (though probably not the most efficient) is just to embed the Microsoft browser component in your application. It's pretty easy to do in (dare I say it) VB, but I'm sure it can be done in Win32/MFC as well, since the Microsoft Web Browser comonent is just an ActiveX control. I can't say that I've ever tried to do it for the purpose of viewing an applet though, and I don't know how you'd communicate with the applet, if you needed to.
    VC++ 6.0 can generate the code for it. In the UI builder, right-click and select 'Insert ActiveX control', and select the 'Microsoft Browser Component'. Let it chug for a bit, and use class wizard to create a class/variable for it. Once you have the browser in place, just create a simple local html file that loads the applet in the right position / size and point the browser to the HTML file. While this should meet the basic requirements that you described, I don't know that it'll really meet your needs, or even how well it will work, but it should work in theory
    - Ben K
    I'm gonna move to theory, everything works in theory.

  • How to embed an applet in a JPanel

    Hi All,
    I am in need of serious help as I have not been able to figure this out for days!!!
    All I want to do is to display a runnable applet in a JPanel.
    The applet is shown below. Its a ball bouncing around. All I need to do is to embed this in a Jpanel with buttons which will control the movement of the ball in the applet which should be on a Panel. For the life of me I havent figured it out!
    Can someone help a brother out!
    import java.awt.*;
    import javax.swing.*;
    import java.applet.Applet;
    import java.awt.*;
    import javax.swing.JOptionPane;
    import javax.swing.*;
    import java.awt.event.*;
    //Animation Class
    class Animation extends Thread {
    private Applet appl;
    private Color color;
    private int increment, vincrement;
    private int which;
    private int position = 0;
    private int vposition = 0;
    public int xCenter, yCenter;
    private int pause;
    private int width, height, speed;
    private double distance;
    private Dimension[] rotations;
    private int currentRotation ;
    Animation(Applet a, Color c, int p, int wid, int hei ,int theSpeed, int Start) {
    color = c;
    appl = a;
    pause = p;
    width = wid;
    height = hei;
    speed = theSpeed;
    rotations = new Dimension[8];
    rotations[0] = new Dimension(1,0);
    rotations[1] = new Dimension(1,-1);
    rotations[2] = new Dimension(0,-1);
    rotations[3] = new Dimension(-1 , -1);
    rotations[4] = new Dimension(-1,0);
    rotations[5] = new Dimension(-1,1);
    rotations[6] = new Dimension(1,0);
    rotations[7] = new Dimension(1,1);
    currentRotation = Start;
    increment = (int)rotations[Start].getWidth();
    vincrement = (int)rotations[Start].getHeight();
    setSpeed();
    public void setSpeed()
    {  increment = increment*speed;
    vincrement = vincrement * speed;
    public void changeRotation(int run, int rise){
    increment = run;
    vincrement = rise;
    setSpeed();
    public void rotate(){
    currentRotation++;
    if (currentRotation == 8)
    currentRotation = 0;
    changeRotation((int)rotations[currentRotation].getWidth(), (int)rotations[currentRotation].getHeight() );
    public void bounce(){
    increment = -increment;
    public void vBounce(){
    vincrement = -vincrement;
    public void setColor(Color n)
    color = n;
    public void run() {
    while (true) {
    try {
    Thread.sleep(pause);
    } catch (InterruptedException e) {}
    position += increment;
    if (position > width - 30 || position <= 0)
    { increment = -increment;
    vposition += vincrement;
    if (vposition > height - 30 || vposition <= 0)
    { vincrement= -vincrement;
    appl.repaint();
    public void draw(Graphics g) {
    g.setColor(color);
    g.fillOval(0 + position, 0 + vposition,30, 30);
    setCentre();
    public void setCentre(){
    xCenter = position - 30/2;
    yCenter = vposition -30/2;
    public boolean didCollide(Animation x){
    distance = Math.sqrt( Math.pow( (xCenter- x.xCenter) ,2) + Math.pow((yCenter-x.yCenter) , 2) );
    if (distance <= 31){
    return true;
    }else return false;
    }

    I took the liberty to make few changes:
    the applet:
    import java.awt.*;
    public class AnimA extends java.applet.Applet
         Animation anim;
         int p   = 70;
         int wid = 400;
         int hei = 300;
        int theSpeed = 2;
         int start    = 7;
    public void init()
         setLayout(new BorderLayout());
         anim = new Animation(Color.green,p,wid,hei,theSpeed,start);     
         add("Center",anim);
         Panel panel = new Panel();
         panel.setBackground(Color.lightGray);
         panel.add(new Button("Button 1"));
         panel.add(new Button("Button 1"));
         add("South",panel);
         Thread th = new Thread(anim);
         th.start();
    the animation
    import java.awt.*;
    import java.awt.event.*;
    //Animation Class
    class Animation extends Panel implements Runnable
    //     private Applet      appl;
         private Color       color;
         private int         increment, vincrement;
         private int         which;
         private int         position = 0;
         private int         vposition = 0;
         public  int         xCenter, yCenter;
         private int         pause;
         private int         width, height, speed;
         private double      distance;
         private Dimension[] rotations;
         private int         currentRotation ;
    Animation(Color c, int p, int wid, int hei ,int theSpeed, int Start)
         color  = c;
    //     appl   = a;
         pause  = p;
         width  = wid;
         height = hei;
         speed  = theSpeed;
         rotations = new Dimension[8];
         rotations[0] = new Dimension(1,0);
         rotations[1] = new Dimension(1,-1);
         rotations[2] = new Dimension(0,-1);
         rotations[3] = new Dimension(-1 , -1);
         rotations[4] = new Dimension(-1,0);
         rotations[5] = new Dimension(-1,1);
         rotations[6] = new Dimension(1,0);
         rotations[7] = new Dimension(1,1);
         currentRotation = Start;
         increment  = (int)rotations[Start].getWidth();
         vincrement = (int)rotations[Start].getHeight();
         setSpeed();
    public void setSpeed()
         increment  = increment  * speed;
         vincrement = vincrement * speed;
    public void changeRotation(int run, int rise){
         increment  = run;
         vincrement = rise;
         setSpeed();
    public void rotate()
         currentRotation++;
         if (currentRotation == 8) currentRotation = 0;
         changeRotation((int)rotations[currentRotation].getWidth(), (int)rotations[currentRotation].getHeight() );
    public void bounce()
         increment  = -increment;
    public void vBounce()
         vincrement = -vincrement;
    public void setColor(Color n)
         color = n;
    public void run()
         while (true)
              try
                   Thread.sleep(pause);
               catch (InterruptedException e) {}
              repaint(position,vposition,31,31);
              position  += increment;
              if (position > width - 30 || position <= 0) bounce();
              vposition += vincrement;
              if (vposition >= height - 30 || vposition <= 0) vBounce();
              repaint(position,vposition,31,31);
    public void update(Graphics g)
         this.paint(g);
    public void paint(Graphics g)
         width  = getWidth();
         height = getHeight()-4;
         Rectangle cl = g.getClipBounds();
         g.setColor(Color.pink);
         g.fillRect(cl.x,cl.y,cl.width,cl.height);
         g.setColor(color);
         g.fillOval(position,vposition,30,30);
         setCentre();
    public void setCentre()
         xCenter = position - 30/2;
         yCenter = vposition -30/2;
    public boolean didCollide(Animation x)
         distance = Math.sqrt( Math.pow( (xCenter- x.xCenter) ,2) + Math.pow((yCenter-x.yCenter) , 2) );
         if (distance <= 31) return true;
              else            return false;
    } Noah

  • Any one know how to embed a Applet or JApplet into a JFrame?

    Thanks

    No because you put the frame inside the applet.
    Why would someone need to put an applet inside a frame?

  • Embed an applet into jpanel

    I have a unique problem. I have an application built on swing f/w with xml used for design and maven used for build.
    I have an applet that is independent of this application. Now i dont have a clue how to embed that applet into a jpanel or into that application. Anything of that will help me immensely. Please suggest if anybody has a clue.
    Thanks in advance.
    Regards,
    Ashish

    >
    I have a unique problem. >Big claim since..
    >
    ..I have an application built on swing f/w with xml used for design and maven used for build.
    I have an applet that is independent of this application. Now i dont have a clue how to embed that applet into a jpanel or into that application. >..the AppletViewer has been Swing based since around 1.3 or before. ;-)
    In any case, if you control the source of the applet, or can recreate it, the best solution has already been given on the first reply.
    If not, and it actually makes sense to embed an Applet or JApplet in a Swing JPanel(/JFrame), then it becomes more complicated.
    Here is one of the most simplistic [examples of embedding an applet in a JFrame|http://forums.sun.com/thread.jspa?messageID=10259860#10259860]. If it becomes necessary to pass parameters to the applet, allow it to share input streams, or implment the showStatus() showDocument() methods as I did in Appleteer, it becomes more complex again. So far I have found no practical way to mimic Applet/JavaScript interaction.
    Edit 1:
    And noting you are yet another multi-poster. No that is not unique, just very irritating, and a great disincentive for others to help.
    Edited by: AndrewThompson64 on Jul 1, 2009 1:40 AM

  • How to change the number of  tab in a Tab Canvas?

    hello :)
    any answers please ?

    user9068133 - Posted: Nov 3, 2010 2:42 PM yes , it works very well on forms 10g, i know that is not a big problem but what can i do ! i have searched on google how to do that but i didn't find nothing .>
    What exactly did you search for on Google? What is "that"?
    Are you trying to add more tab pages to a Tabbed Canvas from the Forms Builder? If so, user13390506 is sort of right. Click on the "Canvases" node of the Object Navigator press the *<font color="green">green + </font>* button to add a new "Content" canvas to your form. Now you need to open the property pallet of the new canvas and change the "Canvas Type" property to "Tab." You will notice that the icon of the new canvas you created in the Object Navigator has changed. Click on the + node next to your new "Tab" canvas to reveal the "Tab Pages" node. Again, open this node (by clicking on the +) to reveal the individual tab pages. By default, Forms will create two tab pages. You can add a tab page in the "Tab Pages" node by clicking on the node and then clicking on the + button. To remove a tab page from the "Tab Pages" node, click on the tab page you want to remove and then click on the *<font color="red">red -</font>* (minus) button.
    If you are trying to add a new tab page during the Form runtime - as I mentioned before - this is not possible.
    Also, what is your Forms version?
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Tab canvas disappear when the main stacked canvas reach the end of column

    Hi all,
    I have 3 canvas ( 1 main canvas, 1 stacked canvas ) and this link to 1 tab canvas. All these are in the same window.
    Whenever using the keyboard to press enter navigate from column to column and when it reach the end of the main canvas which is about to jump to the stack canvas, the two canvas ( stacked & tab ) was hide by itself. Even I have stated earlier to show all canvas in the pre-block trigger. when I keep on press the enter to jump to the next stacked canvas, this stacked canvas is being shown again. My tab canvas was not appear if I am press the enter key. However, if I press the arrow key down the tab canvas is appear. This I wasn't do any code to call the tab canvas.
    When I keep on press enter and reach the end of the stacked canvas again the tab canvas is disappear, unless I have press the arrow key down to display the tab canvas.
    Trying to use show_view( tab canvas ) in many trigger but still does not show the effect.
    Anyone has this experience before ?
    Thanks.
    Lim

    Hi Lim
    Pls check this hope it helps u to recognize dealing with muti-canvas in 1 window...
    how to use stack canvas in tab canvas in oracle forms
    Regards,
    Amatu Allah.
    Edited by: Amatu Allah on Sep 22, 2011 2:23 AM

  • Tab Canvas on Content Canvas

    i wanted to use a Tab Canvas on my Form
    the Header details are on the Content Canvas (Canvas4). on the same canvas i have inserted a TabCanvas which created a new canvas(Canvas7) which has the details section for the header part.
    when i run the form, i can see only the header part on carvas4.
    i wanted to see the Header and Details of the form...
    how can i do this?

    Am I correct in saying you want the tab canvas to act like a stacked canvas.
    If so have you added it to the view of Canvas4 by performing the following:
    1. View (drop down)--> Stacked Views
    2. highlight Canvas7 and click on ok.
    Alternatively are you performing some kind of navigatoin to an It that is hidden behind the tab canvas?
    If non of this works or is causing you issue. What happens if you use SHOW_VIEW('Canvas7'); and navigate to an item on it in your when-new-form-instance trigger?
    Cheers
    Q

Maybe you are looking for

  • Insert a single space into a NOT NULL column defined as CHAR(1)

    Hi, I am trying to run a C program in which I am inserting a space character into a database table, where the column has been defined as CHAR(1) NOT NULL. I am initialising a variable defined in C as: char, with a blank but after running the insert s

  • Error while entering a wage type through TCODE CAT2

    Hi Gurus, I was trying to enter a wage type through TCODE CAT2 received and error " Invalid Wage type  for this work date" Could you please let me know what would be the reason

  • Backing up system that's using 2 hard drives for main system????

    I use a Raptor 74gb as my boot drive, and another internal 250gb as my "Home" folder i'm selling my powermac, so what would be the best way to backed that up so i can transfer it all together on a single HD (replacing my powermac with new macbook pro

  • Matlab script node for real time purpose

    Hi! We are trying to control in real time the frequency of a vibration motor with a voltage signal proportional to EMG activation. Our EMG sends data to a LAN port and we read them in Labview using the UDP Read function. We created a VI which reads d

  • Changing password within SQL Developer

    Hi, Thanks for the great product. I'm beginning to migrate from TOAD to SQL Developer and have run into one minor snafu. The one minor feature missing within SQL Developer (unless I missed it) is to easily change a password like TOAD in the UI (This