Filedialog and applet

i have a application taht compile perfectly when i made program, but when i made applet with it, the compiler stop to the filedialog, is filedialog ok with applet?

Hi,
Yes it is just make sure you have a frame to parent
the dialog. An applet can't be the parent of the
dialog. Something like:
Dialog d = new Dialog( new Frame() );
d.show();
Regards,
Manfred.thx man i didnt know that, now that work pefectly!!! thx man
im leaving this topic

Similar Messages

  • Is it possible to run a website built in Java and applet from Safari browser in iPad

    Is it possible to run a website built in Java and applet from Safari browser in iPad?

    Java isn't supported on the iPad

  • JDev3.0's JSP and Applet works on NT but doesn't work on Win98, why?

    JDeveloper3.0 works fine on WindowNT machine when I run JSP files and Applet, but at home the JDeveloper3.0 cannot trigger the browser to display the result on my Windows98 machine when I run the JSP files or Applet. Why? How can I make it works for me at home. Other tools, such as J++6.0 and JBuilder work with Applet on the same machine. Who can help me?

    James,
    The JDeveloper 3.0 design time environment is not supported on Windows98. Some functions might work under Win98 but they are not supported.
    Sorry!
    Regards,
    Arun

  • Regarding communication between JSF and applet.

    Hi all,
    I have to send a array of int value from JSF to the applet method and vice versa,
    so how can I do that?
    Is there any straight forward way is there?
    Or I need to use javascript in between applet and JSF for communicating.
    If this is case can give some links so that I can go through it.
    What I need is, I have jsf table(grid) when I select a row from table, for the selected row I have to display selected row ID in applet and vice versa.
    Any suggestion or links will be appreciated, thanks in advance.
    Thanks
    daya

    thanks and sorry for late reply, let me go through the link,
    i have tried with JavaScript, i got stuck, i need to call a JavaScript method for JSF component event listener. I searched in Google but no help regarding same.
    Actually what I need is, I have JSF Component i.e. GridView(Table) and applet in a page. And for each row selection in GridView(table) I need to call a javascript method (with column value), and vice versa.
    Can you give suggestion or any link so that can proceed further.
    and i am able to communicate between applet which are included in the page
    Thanks
    Daya

  • Adf faces table and applet in jsf page navSubmit not working in IE

    Hi
    I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
    I have no clue what to change , can any one help. below is the sample code for my jsf page
    Best regards
    Srinivas
    Code follows, not sure how to format the code here
    <h:form>
    <af:panelPage title="Test Adf faces table and applet">
    <af:panelHeader text="Orders">
    <af:table value="#{bindings.Orders.collectionModel}" var="row"
    rows="#{bindings.Orders.rangeSize}"
    first="#{bindings.Orders.rangeStart}"
    emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="orders" >
    <af:column sortProperty="order"
    headerText="#{bindings.Orders.labels.order}">
    <af:commandLink text="#{row.order}"
    id="orderNumber"
    onclick="showOrder(#{row.order})"
    disabled="false"/>
    </af:column>
                   </af:table>
    </af:panelHeader>
    <af:objectSpacer width="10" height="10"/>
    <af:panelBox>
    <f:verbatim>
    <div id="appletDiv">
                        <applet here />
                        </div>
    </f:verbatim>
    </af:panelBox>
    </af:panelHorizontal>
    </af:panelPage>
    </h:form>

    Sorry about the format, it looked okay when i previewed it , now it looks like terrible

  • Package and applet

    I am reading about Zhiqun's Java Card book,
    and I wonder about the relationship between a package and an applet.
    Am I right in saying:
    1. An applet comprises one or several packages
    2. A package only belongs to one applet
    3. One package is one group context
    Hope to get your guidance.
    B.R.
    RuHE

    Refers to your assertions,
    Please help me..
    Case 1
    I have package A. Package A contains 2 class (A1 & A2 ) and 2 package (B and C).
    Then, I make 2 applet, they are applet-B (for package B) and applet-C (for package C).
    When simulationi in JCWDE, applet-B and applet-C have no problem. But, in CREF, applet throw exception and status word is 6443.
    Case 2
    When I try to include class A1 and A2 into package B and C, so package A is empy. Surprisingly, applet-B and applet-C can run in CREF and JCWDE. I don't know, what's wrong in case 1.
    Can you give me explanation or explanation about problem in above...?
    Best Regards,
    Wiwit

  • Appletviewer and applets

    Hi!
    I am using j2sdk 1.4.0 under linux. I have been creating an applet. The screen refresh is tied to a timer. However, the screen refresh gets very slow after 2 - 5 seconds after the applet has been started. If I move mouse in applets window, the refresh gets fast during that time.
    The applet code is very simple: timer calls repaint method of the applet and applet's paint method just draws new picture to the screen using drawImage.
    Anyone run into same problem? What could be wrong?
    Thanks
    Sammy

    ok but whats the problem the fast refreshing??
    if so then u have two options:
    1)double buffering
    2)if u dont need the re-paint let the java do it for u dont overide it
    denny

  • Can I use AWT and Applets in a J2EE project???

    Hi,
    I adore applets and the package AWT... And I would like to know if some way exists to integrate my applet with my application J2EE... I want to use these in the vision tier in a J2EE(EJB) project...
    How can I make that my applet acts as an observing process of my model??? If the JVM will be informed on any alterations in the model will be the JVM of the server while my applet will be being executed for the JVM of browser...
    []'s
    Ary Junior

    I have a J2EE application, for which I have a module which is used by system administrators. this module is completly written in Java swing.
    and it does talk to my EJBs.
    If you don't have a firewall in your application, then you can directly make your applications in awt, swing and applets talk to EJBs. if you do have a firewall, then just write a web-service wrapper over your EJBs and other J2EE components and use them from desktop applications.
    It seems that you want to implement a kind of a applet based monitor application for your J2EE EJBs on the server. Applets cannot directly monitor your EJBs.
    Create a new module which has a service which acts as an event listener on the server. each j2ee component on the server notify it if there is a change to them. this service, can then write the data realted to the modification on a socket which is continiously being read by the applet. So you can implement a kind of a monitor for J2ee apps with applets.
    hope this helps.
    regards,
    Abhishek.
    PS:How did you manage to adore the AWT ;-) ? I found that it sucks (good performance.. very poor lnf) ... java swing sucks too (very poor performance ... avaerage lnf).

  • Xml and applets

    I'm trying to use Sax in an applet to read an xml file. My application works fine, but when I convert it to an applet, I get errors.
    Does anybody know where I can get info and examples using Xml, Sax, and Applets? Any info would be helpful. Thanks.

    Probably nothing to do with XML. You use it in an applet precisely as you would use it in an application. You are probably running into one of the usual applet problems. Of course, this is all guesswork without any idea of what errors you are actually having.

  • Unable to execute and applet

    I'm new programmer in java. There are somme applet that run with appletwier
    but witch do not run with Internet explorer and Netscape. I'm always getting
    this error : 'Class not found'. I want to know all the steps to run and applet
    using Netscape or Internet explorer.
    I'm french speaking. Sorry if my english is poor.
    Thank's for your answers.

    I think you can't solve your problem.
    The fact is that appletviewer supports the java classes you have installed with the sun's jdk... if you are using jdk 1.3.1, it uses the java libraries included in your installed distribution. IE virtual machine, instead, uses its own library, so you can't use in your applets classes like: swing, graphics2d, and so on...
    I know that it's not a great help. Sorry!
    However, if someone could tell us how to include these classes in our CABs/JARs... i think we are really happy! :-)
    Ciao,
    Paolo.

  • Looking for WEB HOST that I can do servlets and applets on

    Hello everyone,
    Does anyone know where I can buy web space that will allow me to run a servlet and applet from. I have been shopping today and I had difficutly finding one.

    Hmm.... well duffymo. I have gone to a number of sites through Google looking for web hosting sites that support java and I must be picking all the wrong ones to look at because I have only found one in Fremont out of 25-30 that I have looked at.
    I guess duffymo you can say what you want in a forum, but usually answering a question with a question isn't very helpful nor appreciated.

  • FileDialog in Applet throwing security exception.

    I am trying to create a simple applet that a user can select a file from and then upload that file to a server somewhere. I am able to accomplish this using the JApplet class and the JFileChooser class. Everything works fine with the signed applet. However I am going to need to make it compliant with the Microsoft VM since it is for a corporate settings and those people won't have admin rights on their machines to toggle between the VM. So JApplet has been changed to Applet, JFileChooser has been changed to FileDailog and now I am getting this error:
    com.ms.security.SecurityExceptionEx[com/java/applet/il/AimsImporter/AimsImportApplet.actionPerformed]: FileDialog creation denied.
         at com/ms/security/permissions/UIPermission.check
         at com/ms/security/PolicyEngine.deepCheck
         at com/ms/security/PolicyEngine.checkPermission
         at com/ms/security/StandardSecurityManager.chk
         at com/ms/security/StandardSecurityManager.checkFileDialog
         at java/awt/FileDialog.<init>
         at com/java/applet/il/AimsImporter/AimsImportApplet.actionPerformed
         at java/awt/Button.processActionEvent
         at java/awt/Button.processEvent
         at java/awt/Component.dispatchEventImpl
         at java/awt/Component.dispatchEvent
         at java/awt/EventDispatchThread.run
    com.ms.security.SecurityExceptionEx[com/java/applet/il/AimsImporter/AimsImportApplet.actionPerformed]: FileDialog creation denied.
    This line of code is where it blows up:
    FileDialog fileDialog = new FileDialog(new Frame(), "Please choose the file to open:", FileDialog.LOAD);The jar is signed, however something of interest to note: there isn't a pop-up asking me if I would like to trust this applet when I use the Microsoft VM?
    jar.exe -cvf k:\applet\lib\Importer.jar com.java.applet.il.AimsImporter/*.class
    jarsigner k:\applet\lib\Importer.jar mykey
    jarsigner -verify Importer.jar
    Is there something that is different when doing this with the Microsoft VM?????
    Help! :)

    I am trying to create a simple applet that a user can select a file from and then upload that file to a server somewhere. I am able to accomplish this using the JApplet class and the JFileChooser class. Everything works fine with the signed applet. However I am going to need to make it compliant with the Microsoft VM since it is for a corporate settings and those people won't have admin rights on their machines to toggle between the VM. So JApplet has been changed to Applet, JFileChooser has been changed to FileDailog and now I am getting this error:
    com.ms.security.SecurityExceptionEx[com/java/applet/il/AimsImporter/AimsImportApplet.actionPerformed]: FileDialog creation denied.
         at com/ms/security/permissions/UIPermission.check
         at com/ms/security/PolicyEngine.deepCheck
         at com/ms/security/PolicyEngine.checkPermission
         at com/ms/security/StandardSecurityManager.chk
         at com/ms/security/StandardSecurityManager.checkFileDialog
         at java/awt/FileDialog.<init>
         at com/java/applet/il/AimsImporter/AimsImportApplet.actionPerformed
         at java/awt/Button.processActionEvent
         at java/awt/Button.processEvent
         at java/awt/Component.dispatchEventImpl
         at java/awt/Component.dispatchEvent
         at java/awt/EventDispatchThread.run
    com.ms.security.SecurityExceptionEx[com/java/applet/il/AimsImporter/AimsImportApplet.actionPerformed]: FileDialog creation denied.
    This line of code is where it blows up:
    FileDialog fileDialog = new FileDialog(new Frame(), "Please choose the file to open:", FileDialog.LOAD);The jar is signed, however something of interest to note: there isn't a pop-up asking me if I would like to trust this applet when I use the Microsoft VM?
    jar.exe -cvf k:\applet\lib\Importer.jar com.java.applet.il.AimsImporter/*.class
    jarsigner k:\applet\lib\Importer.jar mykey
    jarsigner -verify Importer.jar
    Is there something that is different when doing this with the Microsoft VM?????
    Help! :)

  • Problem with Image I/O and applet

    I am having trouble using Image I/O to load a PNG image in an applet. I am just using a very basic applet that simply loads the image from a URL and that's it, and the exception I get is -
    java.lang.SecurityException: Unable to create temporary file
    at java.io.File.checkAndCreate(File.java:1294)
    at java.io.File.createTempFile(File.java:1385)
    The simple applet is as follows -
    import java.awt.image.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import javax.imageio.ImageIO;
    public class CheckImageApplet extends JApplet
    public BufferedImage bi = null;
    public void init()
    URL url = null;
    BufferedImage bi = null;
    try
    url = new URL( "http://localhost/CheckImageSystem/checkimages/backGS.png" );
    catch ( MalformedURLException mfue )
    try
    bi = ImageIO.read( url );
    catch ( IOException ioe )
    Any thoughts on this exception would be appreciated

    It seems the line
    bi = ImageIO.read( url );
    fails. Can't see anything else. Perhaps this method needs to create a temp image for some reason, and tries to do this at the local harddrive (not allowed). Use getImage(URL, String); instead. ImageIO isn't intended for applets, I think, so you should use the applet methods.
    Nille

  • Problem with JPanel, CardLayout and Applets

    Hello All,
    I have a JPanel with a CardLayout as layout manager. In this JPanel i'm gonna show a few applets.
    My problem is when i'm showing an applet for second time and try to click a button it does nothing... I think the action method is not called again...
    How can i solve this?
    Thanks in advance ; )

    Here is a few parts of my code...
    public class InitAll{
    JPanel cards = new JPanel( new CardLayout() );
    JComboBox selector = new JComboBox();
    Object objetosV[][] ={
         {"Ventas",venta.class},
         {"Compras",compras.class}, //These are applets.
         {"Traspasos",traspasos.class},
         {"Facturas",factura.class},
    public void load( Applet app ){
    cards.removeAll();
    selector.removeAll();
    cards.add( "Entrada", app );
    selector.addItem( "Entrada" );
    for ( int i=0; i < objetosV.length; i++ ){
         selector.addItem( (String)objetosV[0] );
         Applet temp=createPanel( ( Class ) objetosV[i][1] );
         temp.setSize( 800,750 );
         cards.add( ( String ) objetosV[i][0], temp );
    public void itemStateChanged(ItemEvent e) {
    ((CardLayout)cards.getLayout()).show(cards, selector.getSelectedItem().toString() );
    Applet tmp = (Applet)cards.getComponent(selector.getSelectedIndex() );
    tmp.start();
    After i show for second time an Applet and select a button from it. the button does nothing...
    Thanks...

  • Communication between JApplet and Applet on the same web page

    Hi Freinds
    I have a JSP page containing two applets as follows :-
    <jsp:plugin type="applet" code="TreePageJavaClass.class" codebase="/MYOA" width="200" height="300" name="Applet1">
    </jsp:plugin>
    <jsp:plugin type="applet" code="TreePageJavaClass2.class" codebase="/MYOA" name="Applet2" width="200" height="300">
    </jsp:plugin>
    First applet extends JApplet class and has a tree constructed using swing.
    Second applet extends Applet class.
    Now I want to call a method in second applet on selecting a particular tree node on first applet. I can call method on second applet from first applet when both extends Applet class (not JApplet)
    So please tell me what's the problem here and how it can be solved.
    Thanks

    There is a Middle Eastern version of Adobe Dreamweaver CS4-ME, with full support
    of Hebrew, Arabic, Farsi and other languages,
    see http://www.fontworld.com/me/dreamweaverme.html

Maybe you are looking for

  • Error in Invoice Approval API

    Hi, We are facing the below error while using standard API (ap_approval_pkg.approve) to approve an Invoice in R12. The API is a part of custom workflow, which is used for the invoice approval process. DECLARE ERROR at line 1: ORA-20001: APP-SQLAP-100

  • HELP: Latest Security Update hangs during startup

    I did two updates, the latest Security Updates for Tiger OSX on my G4, mirror door and also the latest iTunes. After all the downloads it asked me to reboot. Now I get the gray Apple with an endless spinning clock. I did repair disk permissions via h

  • Regarding HR-abap Attendence Sheet for Employee

    Hello Friends, i am working on attendence sheet for employee please help me possible send me sample coding ASAP. Thanks REDDY.

  • Concurrent program no putput with Japanese language

    Hi Guru, I cannot see the concurrent program output when i run it htrough Japanase language. But able to see the putput in English langauage. Could any one help me. RDBMS : 10.2.0.3.0 Oracle Applications : 11.5.10.2 Thanks.

  • How to install windows on macbook pro me294 using downloaded drivers?

    Recently I bought a MBP and I'am going to install windows on it because of my job. I have a problem with bootcamp assistant: I have downloaded the bootcamp drivers but when I am creating the setup disk it automatically chooses to download the drivers