Can a JPanel object replace an applet?

I know that I can insert an applet in an HTML page, and JavaScript can communicate with the applet. However, is it possible to do the same whith a JPanel object?
Excuse the basic question.

A panel is a light weight component, meaning it needs a top level container to hold it. An applet or frame is a top level (heavy weight) component, meaning it is it's own container. An applet can be nothing more than a thin wrapper around a panel which holds all of the other components. That's actually a good way to design it, since it lets you switch from applet to frame relatively easily, etc.

Similar Messages

  • How to passing object to the applet?

    Dear All,
    My project is needed to read the xml file (include the form content) and then parse the xml file to create the related object, so using the applet to display this dynamic form.
    Due to cannot directly open the file object and the applet, the following is my idea:
    1. ) In the servlet, first to new the fileinputstream object , then pass the object into the applet. But this idea is not allowed.
    Only String value can use the param to to pass the parameter value to the applet using <param name = \"cis_auditID\" value = \""+inputsource+"\">.
    2. ) Firstly , read the file and then create specific object before call applet class. I know some people said that using the URLConnection, but i don't know for this. Can only one give more detail description about that.
    So how can i pass the fileinputstream or the own created object into the applet?
    Urgent! Please help!

    Where is the xml file located??
    If it's on the same server that serves the applet or if it's dynamically generated
    by making a http request to a servlet you should use URL and URLConnection.
    URL u = new URL(this.getCodeBase(),"../relativeDir/xmlFile.xml");
    URLConnection uc = u.openConnection();
    InputStream = uc.getInputStream();
    // read the rest of the struff.
    You might want to take a look at this example if you want to send (POST data) to
    the server when you make a http request to a servlet:
    http://forums.java.sun.com/thread.jspa?threadID=645830&tstart=0
    3rd post

  • Getting hold of browsers document object, from an applet

    Well, at least that's how i think the problem will be solved.
    The purpose is to insert some text into a hidden field on a form in the html where the applet is embedded.
    so that this can be submitted along with the rest of the information that is entered through that page.
    i've been looking at the AppletContext but i don't think this will provide what's necessary.
    an alternate way of solving this would be to make an http-post with the information, since i prefer using our webserver to perform this.if this is the only way, is there a http-post object i can use for this, from an applet?

    One way is to move the entire form into your applet so that it can do a post and send all the data itself (or vice-versa; avoid using the applet).
    Another option might be to do it in two steps, have your form on one page then post all the details to the next page which contains the applet.
    The only other option I can think of is to use JSObject to call a javascript function. Look at this link http://java.sun.com/products/plugin/1.2/docs/jsobject.html
    Rob.

  • Can we pass objects to pl/sql block

    hi,
    can we pass objects to pl/sql block.i think we can.how to pass it.help me in getting the examples of "passing objects to pl/sql block"

    What exactly do you mean ? You can pass objects like any other parameters
    into and out from procedures/functions:
    SQL> create or replace procedure get_object(myobj in out nocopy my_obj)
      2  is
      3  begin
      4   dbms_output.put_line('ID : ' || myobj.empno);
      5   dbms_output.put_line('Salary : ' || myobj.sal);
      6   dbms_output.put_line('Department : ' || myobj.deptno);
      7   myobj.sal := myobj.sal*2;
      8  end;
      9  /
    Procedure created.
    SQL> declare
      2   mo my_obj := my_obj(1,1000,10);
      3  begin
      4   get_object(mo);
      5   dbms_output.put_line('New salary : ' || mo.sal);
      6  end;
      7  /
    ID : 1
    Salary : 1000
    Department : 10
    New salary : 2000
    PL/SQL procedure successfully completed.Rgds.

  • Can I use Find & Replace to change the fills and strokes of tables?

    I'm working on a catalog that has a fair amount of tables, that all have the same color scheme.  I need to change all of these tables to a new color scheme, and I'd much rather find a way to do it with one shot.  The tables do not have styles applied to them, so it's not a matter of adjusting the style definitions.
    I know you can do a Find & Replace for text or objects in a specific color. Is there a way to do the same for table cells?  I've tried but haven't had luck getting it to work.
    Thanks!
    -Sean

    Congratulations are in place -- changing parameter names in the right places is one thing, finding out what parts safely can be copied is step 2 in my book "how to become a successful scripter in 10 easy steps"
    You cannot select more than one table in Table mode, but what you can do is select them together with its surrounding text -- just keep on dragging that mouse until you've covered them all. The InDesign Selection is a multi-purpose object (see the way the script has to find out "what is selected"), and one of the things it keeps track of is how many and which tables are "inside" the selection. Then run this slightly amended script:
    a = app.selection[0];if (a.tables.length == 0)
    alert ("You must be kidding; not a single table inside your selection!");
    exit(0);
    for (b=0; b<app.selection[0].tables.length; b++)
    d = app.selection[0].tables[b]; // shortcut
    for (c=0; c<d.cells.length; c++)
      if (d.cells[c].fillColor == app.activeDocument.swatches.item("Bloo"))
       d.cells[c].fillColor = app.activeDocument.swatches.item("Redd");
      // .. Insert more colors here ..
    Now the script doesn't have to check anymore in which part of the table you clicked; it only has to iterate over the ones in your selection, and those are "immediately" accessible through the indexes (the square bracketed variables). And the "shortcut" is so I don't have to type "app.selection[0].tables[b].cells[c].fillColor" every time. (And the script runs marginally faster as well, although it's probably still almost immediate.)

  • Passing objects to a applet.

    hi there,
    i have a jsp and a applet. i need to pass an object from my jsp to the applet and the applet will present the results.
    how can i do it?? how do i pass objects to the applet??
    thanks

    you typically pass strings as applet parameters in the page.
    otherwise, you have your applet connect back to the server with a socket or URLConnection to a servlet, which can send serialized objects if that's what you need, or other data.

  • "text-to-speech" problem in Yosemite (very annoying) - "object replacement character"

    After upgrading to Yosemite, yesterday, I have problems reading websides and documents in my Mac with text-to-speech.
    I'm slightly dyslexic and prefer text-to-speech instead of reading myself.
    All documents that have illustrations give problems with text-to-speech.
    Whenever the text overlaps an (I think...) invisible lay-out feature that has to do with illustrations I hear "Object Replacement Character".
    That makes many texts "unreadable" for me...
    Is there anyone with the same problem?
    Can someone help me to get rid of this?
    It makes text-to-speech practically useless for me...
    Big problem!
    Jur Kuipers, The Netherlands
    iMac (27-inch Mid 2010), OS X Yosemite 10.10

    Perhaps I have to tweak some settings in "VoiceOver-Program" after selecting "Alex" in System Preferences?
    I cannot understand why Alex gives errors and my Dutch voices are not..., my VoiceOver-settings with these different voices are the same...
    VoiceOver is complicated (many settings and difficult interface) , perhaps someone knows what to do ???

  • I can't see 'Object selector' in the IDS MC

    In the IDS MC, when I chose Configuration Settings I can't see 'Object selector'. And then I can't select any IDS sensor. I can only work with 'Group Global'.
    Have you any ideas how I can resolve it ?

    There is a known problem in some cases with a CMF server in SSL mode and clients using the JRE 1.3.1 without SP2. This problem affects applets and
    causes them to not initialize correctly. Typically you will see an empty area where the applets data should be.
    The known workaround for this is to browse to the desktop using this URL:
    https://:1742/login.html
    Instead of the standard URL:
    http://:1741
    This will bypass the initializer problem and you should be up and running OK.

  • FDM-ERPI import error: ActiveX component can't create object..

    Hi,
    I am using FDM v 11.1.2.1.501 and ERPi v 11.1.2.2 (which is actually v 11.1.2.1.501 following the patch set update to .501, it displays as 11.1.2.2, a known display error). The ODI version for ERPI is 11.1.1.5. The dataload rule executes successfully in ERPI within workspace, but in FDM, I get the following error:
    Description...................................... ActiveX component can't create object: 'fdmERPI.clsGetFinData' At Line: 22
    Can someone let me know why this happens ?
    Rgds,
    George

    The issue is resolved. When upgrading FDM and ERPI to 11.1.2.1.501, the source adapter to be used should not be ERPI-FIN -C which comes together with 11.1.2.1 mediapack, but the adapter must be ERPI-FIN-D which come with the FDM patch set 501. The issue got resolved once ERPI-FIN-C adapter was deleted and replaced by ERPI-FIN-D adapter.

  • How to resolve can't create object: 'OracleInProcServer.XOraSession'  ERROR

    Hello Everyone,
    We just replace our web server from windows server 2000 to windows server 2003 and we also
    upgrade our oracle database from 9i to 10g... But when i transfer all the asp pages into new server and
    run the scriprt i encountered error can't create object: 'OracleInProcServer.XOraSession' did i missed some of the requirements when doing this...
    I hope there someone will help me ragarding my problem.
    Thanks a lot

    user8794432 wrote:
    YES! I already upgrade the oracle client to 10g.. And im planning to install a OLE object OO40 for oracle 10g.
    Do you think this will work..?
    Well it was a suggestion. Give it a try. If it works, great. Else :-)

  • Message "Configuration object replaced by user

    #1.5...#/Applications/Common/Configuration#sap.com/irj#com.sapportals.config.service.audit.ConfigAuditLogManager#Guest#19####b...b#Thread[Thread-727,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#com.sapportals.config.service.audit.ConfigAuditLogManager#Java###Configuration object "" replaced by user ""#5#config://local/cm/services/schedulertasks/718e04bd-6e44-2810-158b-d90016097c52#index_service#<null>#<null>#<null>#

    i will add some information :
    these messages created 3 files of applications.log today
    i aslo see lots of messages
    #1.5#0013216BB88B01860000000B0000427000040BBBF4C43C5B#1138801800282#/Applications/Workflow/General#sap.com/irj#com.sap.workflow#Guest#19####a3423ba0932911da85a60013216bb88b#Thread[ThreadPool.Worker15,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Info#1#com.sap.workflow#Plain###Running task ID WFTaskSchedulerDeadline On Wed Feb 01 15:50:00 GMT+02:00 2006#
    can anyone tell me what are they mean?
    thanks a lot

  • Where can I get a replacement back housing for my iphone 5c?

    Where can I find a replacement back housing for my iPhone 5c because I recently bought the white one and get dirty way too fast and it starting to look really ugly and the dirt marks are starting to stick to the phone and not come off.

    Check with Apple.  Google online for a 3rd party repair service.

  • Dead space showing up in print preview; can't place objects in it

    hi -- Somehow, I've managed to get what I'll call a "dead space" in between my last page footer and my report footer. The design view looks completely normal: page footer A, page footer B, and report footer. None are suppressed.
    However, when I go to the print preview, what I have is: page footer A, page footer B, a dead space, and then the report footer. The dead space looks like a section, in that the far left of the preview shows lines (like section dividers) both above and below the dead space. However, when I right click on the dead space, I don't get a Section Menu; I also don't get a section name when the mouse hovers over that dead space.  I can't place objects in the dead space.
    It wouldn't be a huge deal except for the fact that the report is long enough that the dead space causes it to overflow onto a second page, which isn't acceptable.
    How can I get rid of this thing? I really don't want to recreate the report. It's quite complex.
    Thanks,
    Carol
    This is Crystal 11.

    Hi Carol,
    That's interesting.  I've never heard of this rogue spacing issue. 
    Why don't you try insertting the following in the Page Footer B Suppress formula.
    Not OnLastRecord
    Maybe that will help.
    Regards,
    Zack H.

  • Crystal Report Addon Error : ActiveX Component Can't Create Object

    Hello Experts,
    We are facing an problem when we start the Crystal Report Addon .The error message getting
    displayed is  "CR_Crypto ActiveX Component Can't Create Object".This issue is happening only on the
    server its working fine on the client. We had even unistalled and re-installed the addon in the server but
    still it throws the error when we start the addon.
    Please help us to resolve this issue
    Thanks,
    Vishwanath

    Dear Friend,
                 I had described the problem to our technical support team, and they replied as follows u2013
    They solved the Script related error by several stages.
    They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
    Then they tried by installing the following patches from Microsoft u2013
    http://support.microsoft.com/kb/949140
    Windows Script 5.7 for Windows XP
    http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
    Windows Script 5.6 for Windows Server 2003
    http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
    Windows Script 5.6 for Windows XP and Windows 2000
    The internal matter to this problem was about the following DLL and its version u2013
    C:\WINDOWS\system32
    vbscript.dll
    5.5.0.8820
    Desired
    5.6.0.8820
    Check, if the information helps you.

  • My iphone 4 is broken can I get a replacement

    Hello Apple , My iPhone 4 is really in bad shape can I get a replacement even though I haven't paid my bill
    <Email Edited by Host>

    We are iphone users just like you.
    You can make an appointment at the genius bar and see if they will sell you a replacement.

Maybe you are looking for

  • Hp v40 on xp desktop and is shared via wireless network. laptop with windows 7 wont print on v40.

    Can't print from laptop (windows 7) via wireless router .to desktop (windows xp) with usb attached HP v40 all in one. Laptop (7) ----- wireless router ----- desktop (xp) - -usb-- HPv40 Worked when laptop was running xp. Laptop spools print job to des

  • Increase in broadband usage

    I have been using BT Infinity 1 since July last year with no problems. For the last two months I have been warned that I am using more than my allowance of 40G incurring extra charges. I have no explanation for this. Is it possible to retrieve my usa

  • Leave rquest failing in WORK FLOW

    hi all i am currently working in WORK FLOW, i have a senario like raising leave request,,,, once the person raised the leave request ,, mail will goes to PM of that person,,, once he approved,,, it will update in HR infotypes,,,,, here for cancelling

  • How to copy peraonal movies

    HI, My sister has a brand new mac, she has a sony hd camera but mac does not recognize it. So she copies here sons hockey games from the camera to a cd through her dvd recorder. She needs to know how to make multiple copies on her Mac as she is passi

  • Adobe Captivate Voices for Text to Speach

    Hello all, I am searching for more voices to use with Adobe Captivate Text to speech. Currently I have already the below voices: Paul James    (US English) Kate       (US English) Julie Bridget   (UK English) Chloe     (Canadian-French) Yumi Microsof