How to make setEditable() work for Applet

I have a program using a flag to make it work both
in JFrame and JApplet. I have a couple of JTextField
variables and I use setEditable() to set their attributes.
When I run it under JFframe, I have no problem to
edit these JTextField within panels. But when running under
appletviewer, I can not edit them at all. What could be
wrong? Thank you.

You must have added some more code...if you want my help, post the new code or a link to the new code and I or some other ppl can see what might have gone wrong.
V.V.

Similar Messages

  • How to make tablesorter work for GroupedColumns??

    Hi all,
    I imported the class of TableSorter.java to my project. It automatically picks up my normal columns, they all can be sorted.
    but the groupedColumns generated by the drag and drop table node into the design area wont pick up, even i set the property of "onAction" of the column to "Sort"(method) it wont sort the content for me.
    how to make it work?
    thanks

    hi!
    you can get lead selection in the action handler then inset your code for currentContextElement.
    wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeXXX());
    thanks
    vishal

  • How to make pack200 work with applet tag ?

    Hello All,
    Sorry for the cross-post.
    I tired getting the advise on java.net forum but with no success. Can someone here please help with this or direct me to right direction.
    I am trying to use the pack200 compressed jars for my Object/Applet tag, but not sure how to go about using it.
    I have followed the instructions for jarsigned pack200 jars.
    http://java.sun.com/j2se/1.5.0/docs/guide/deployme.../deployment-guide/pack200.html
    But now how do i use them in my Object tag, what should i name the files in my cache_archive parameter :
    example:
    something like :
    <PARAM NAME = CACHE_ARCHIVE VALUE = "final.jar" />
    or :
    <PARAM NAME = CACHE_ARCHIVE VALUE = "final.jar.pack.gz" />
    renaming : final.jar.pack.gz --> final.jar ??
    I tried both the above options but none of them works.
    network: Wrote URL http://myserver.net/Stream/lib/final.jar to File C:\Documents and Settings\I025204\Application Data\Sun\Java\Deployment\cache\6.0\60\366763c-2a096009-temp
    java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(Unknown Source)
    at java.util.zip.DeflaterOutputStream.close(Unknown Source)
    at java.util.zip.ZipOutputStream.close(Unknown Source)
    at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
    at com.sun.deploy.cache.Cache$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
    at com.sun.deploy.cache.DeployFileOutputStream.close(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(Unknown Source)
    at java.io.BufferedInputStream.close(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    Do i need to add something more .
    I am only allowed to use the below:as its the corporate policy for now.
    Java Plug-in 1.6.0_05
    Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
    Can someone please help me how to get the pack200 work in the Object tag ?
    Please advise.
    Thanks,

    InputStream in = sc.getResourceAsStream("application.jar.pack.gz");
            OutputStream out = response.getOutputStream();
            if (in != null) {
                try {
                    sendOut(in,out);
                } catch (IOException ioe) {
                    if (ioe.getMessage().compareTo("Broken pipe") == 0) {
                        sc.log("Broken Pipe while writing");
                        return;
                    } else  throw ioe;
            } else response.sendError(response.SC_NOT_FOUND);
    private void sendOut(InputStream in, OutputStream ostream)
                     throws IOException {
            byte buf[] = new byte[8192];
    System.out.println("send jar file");
            int n = in.read(buf);
            while (n > 0 ) {System.out.println(n);
                ostream.write(buf,0,n);
                n = in.read(buf);
            ostream.close();
            in.close();
        }the servlet code is above
    u should conifgure the servlet in the web.xml for urlmapping *.jar
    <servlet-mapping>
          <servlet-name>jarService</servlet-name>
          <url-pattern>*.jar</url-pattern>
        </servlet-mapping>where jarService is the name of the pack200 sevice servlet ContentType.java
    Edited by: kartheepanmirra on Jun 17, 2009 12:17 AM
    Edited by: kartheepanmirra on Jun 17, 2009 3:06 AM

  • How to make ProgressBar work for long process with finally download action

    Hi ADF-Experts,
    i wonder if there is a adf-solution to this use case.
    In my case the user clicks a context-menu item to get a report. So a background process will be started to generate the report(in pdf format) and when the generation is finished,
    the user can choose to download the report in the browser built-in popup.
    This all works, but because the generation process could take a long time, i want now to showing a progess bar in clock form with af:progressIndicator to inform the user about the running process.
    public void clickGenerateMenuItem(event) {
    startProgressBar();
    generateReport();
    private void generateReport() {
    doGeneration();
    stopProgressBar();
    downloadReport();
    The problem is that the ProgressBar will never be shown bacause of the call of generateReport()-methode. It is impossible in one request to make two different event (one for download and another for popup show/hide).
    I also tried with af:poll together with af:progressIndicator, the ProgressBar is indeed shown but because of the native Ajax-Poll Request the generated Report can not be downloaded more.
    Any idea how this problem could be answered?
    Thanks in advance.
    Regards
    Peng

    Hi,
    no, you can't make to calls. But you could show an animated gif instead. Have a look at sample 027 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
    Frank

  • How to make code work for previous versions

    Hello, i have written the code below using swing 1.4. I was wondering if anyone could help me by letting me know what to convert so i run run this on a machine with a lower java runtime (ie 1.22)
    What i am trying to do is have a tree with a list of files, and when u click on a node, the tree will expand, and send the node name accross to another frame. Help is most appreciated. Thanks
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.event.TreeSelectionEvent;
    import java.net.*;
    import java.applet.AppletContext;
    import java.util.Enumeration;
    public class SimpleTree extends JApplet  {
    JTree tree = new JTree();
      public void init() {
       new SimpleTree();
      public SimpleTree() {
    /*try {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch(Exception e) {
          System.out.println("Error setting native LAF: " + e);
        Container content = getContentPane();
        Object[] hierarchy =
          {"WebSphere MQ",
            new Object[] { "400","400 Pstuff.htm",
         "400 PStuff.htm",
         "A406 - Pstfdfs.htm"}}
        DefaultMutableTreeNode root = processHierarchy(hierarchy);
        tree = new JTree(root);
        tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new TreeSelectionListener() {
        public void valueChanged(TreeSelectionEvent e) {
             DefaultMutableTreeNode node = (DefaultMutableTreeNode)
             tree.getLastSelectedPathComponent();
             String stringname = tree.getLastSelectedPathComponent().toString();
             if (node == null) return;
             if (node.isLeaf()) {
                try {
                           getAppletContext().showDocument(new URL("http://mql3service.hursley.ibm.com/process/"+stringname), "viewer");
                  }catch(Exception f) {System.out.println("" + f); }   
        content.add(new JScrollPane(tree), BorderLayout.CENTER);
        setSize(500, 700);
        setVisible(true);
      public DefaultMutableTreeNode processHierarchy(Object[] hierarchy) {
        DefaultMutableTreeNode node =
          new DefaultMutableTreeNode(hierarchy[0]);
        DefaultMutableTreeNode child;
        for(int i=1; i<hierarchy.length; i++) {
          Object nodeSpecifier = hierarchy;
    if (nodeSpecifier instanceof Object[]) // Ie node with children
    child = processHierarchy((Object[])nodeSpecifier);
    else
    child = new DefaultMutableTreeNode(nodeSpecifier); // Ie Leaf
    node.add(child);
    return(node);
    public void Rupz(String random)
    TreePath path = null;
    TreeNode [] treenode = null ;      
    String strNode = random;
    DefaultMutableTreeNode root = (DefaultMutableTreeNode)tree.getModel().getRoot();
    Enumeration e = root.breadthFirstEnumeration();
    while(e.hasMoreElements())
    DefaultMutableTreeNode dftTmp = (DefaultMutableTreeNode)e.nextElement();
    if(dftTmp.toString().equals(strNode))
         treenode = dftTmp.getPath();
         path = new TreePath(treenode) ;
    try {
    getAppletContext().showDocument(new URL("http://mql3service.hursley.ibm.com/process/"+strNode), "viewer");
         }catch(Exception f) {
         System.out.println("" + f);           
    if(path != null)
         tree.setSelectionPath(path);
    repaint();
    public static void main(String [] args) {
    JFrame f = new JFrame("") ;
    Container contentPane = f.getContentPane();
    contentPane.setLayout(new FlowLayout());
    SimpleTree ta = new SimpleTree() ;
    ta.init() ;
    f.addWindowListener(new ExitListener());
    f.setSize(500,700);
    contentPane.add(ta,BorderLayout.CENTER);
    f.setVisible(true) ;

    hi!
    you can get lead selection in the action handler then inset your code for currentContextElement.
    wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeXXX());
    thanks
    vishal

  • TS2634 I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I have the same problem.
    Two similar discussions:
    https://discussions.apple.com/message/23081658#23081658
    https://discussions.apple.com/message/23281391#23281391
    I have not yet seen any official response to the question: "Is the Apple AV Composite cable fully supported with 30pin connector devices upgraded with iOS7 - specifically ? - eg. iPad 2, iPhone 4, iPhone 4s"
    If it is not currently supported is that then due to a bug / oversight and in that case is it something that will be fixed in the near future?
    Please let us know what feedback you got from asking Apple support.

  • I cannot connect a Sony ILCE6000 camera for wireless downloading. Sony feels I need DLNE? They do not know how to make it work. Can anyone help OS10·9·5

    I cannot connect a Sony ILCE6000 camera for wireless downloading. Sony feels I need DLNE? They do not know how to make it work. Can anyone help OS10·9·5

    I cannot use the software.. so you need to figure out where the problem is..
    But let me suggest.. the Mac is not the issue and likely the info from Sony is also up the creek.. they make PC's after all.
    It is far more likely the camera is having issues with the wireless network.
    Do you know you have a connection to the home network on the camera.. ?? You have an IP address and some internet or local access at least?
    How you will discover those things is by fiddling.. but if you can tell me what wireless AP you are using that will help.

  • I have a application build in labview 8.5 for Windows XP using NI Visa functions to interact with hardware , how to make is work in Windows 7 32 bit and Win 7 64 bit

    I have a application build in Labview 8.5 which wroks fine with Windows XP , this program uses basic read /write functions of NI Visa to communicate with Hardware . This application doesnt work with Windows 7 32 bit/64 and Vista . What changes i need to do to make it work for the said operating system

    srinivas wrote:
    Sorry for confusion ,
    My question is what changes i need to do in code or while making the installer to make the existing program work with other Windows operating system
    You need to make sure the machine have the corresponding NI-VISA installed. Check in the NI software pages for the right version.
    Also make sure that the com port's can be selected when you first start the application. Eg. if you refer to VISA "COM1" on the XP machine It might be "COM2" on the Win7 machine.
    Br,
    /Roger

  • How to make buttons work in Interactive Adobe Forms

    Hi Experts,
    I am new to interactive form. Though i have worked in normal/non-Interactive form, i do not know how to make buttons work in interactive adobe forms using ABAP  (I don't know JAVA). Can any one help me out and walk me through to how to code in ABAP to make buttons work.
    Kind Regards,
    Sharat.

    Please refer to my earlier post ... You will get an idea
    Please refer to the below thread for detail solution
    Sample Interactive form example ?....urgent...
    Cheers
    Satya

  • I have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    i have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    Who was your original carrier; did you call them to ask them to unlock your phone, and are you aware of what their unlock policy is (THey may only unlock for international sims and not US sims

  • How to make MDM work?

    Hi Guy,
    I'm newbie for MDM.I already intalled it on my machine(Window Xp)but dunno how to make it work.
    The installed components are MDM/Syndicator/Import server,Console/Import mgr/Data mgr/Syndicator.
    Do I have to install any component else?And Can you guy give me any guides/documents/Posts how to make it work.Cause I have to demo it next week but right now still blank about it...
    Thanks
    Parinya.

    Hi Jack,
    For Demo Purpose,
    1.Create few master records in R/3 Servers [ MM(Tcode MM01) /Employee(PA40) /Vendor(Xk01) /Customer(XD01) according to your MDM Repository(For Example "Products").]
    2.Extract those master datas from R/3 Servers.
    3. You will get the xml file of master datas.
    4.Open the import manager and import the xml file into  the MDM server.
    5.In Import manager ,you need to map the records[Source Fields(Imported records) VS Destination Fields(MDM repository)].
    6.Once you imported the record ,u can see the records in the MDM Data manager.
       We can Create/edit/Delete those records .
       We can merge the records for consolidation purpose.
       We can perform Data enrichments process   like Validation,Workflow,Assignments..etc.
    7.Once cleaned the Master records,it is ready to distribute to R/3 servers.
    8.Syndicator is used for sending data back to the R/3 servers
       Here also we have to do Mapping against R/3 servers.
       Using XI We can connect the R/3 Servers.
    Hope u will understand this.
    This is very simple example for MDC-MDH Scenario.
    For futher learning on how to create a repository/Enrich the mater datas, go through reference documents in the Service Market place.
    Best Regards
    Devaraj PK

  • How to make this work with Firefox, HELP!

    Downloading for Real-player, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. How to make this work with Firefox, I like not to use Microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • SPA3000 FXO to SPA2000 FXS, how to make it work?

    I'd like to create an environment so I can test the dial plan of SPA3000. But when I dial throughgw0 of SPA3000 while connecting FXO to FXS of SPA2000, from SPA2000 configuration I always get Call 1 State Invalid and Call 1 Tone Reorder. It seems that SPA2000 couldn't recognize the DTMF tone sent by SPA3000. Don't know how to make it work. Please advise. Thanks in advance.

    I have a SPA3102 attached thru the FXO port to the FXS port of a SPA1001.  I don't think there is anything special in the configuration.
    On the PSTN Line Tab I have:
    Preferred Codec: G711u
    Use Pref Codec Only: no
    DTMF Tx Method: AVT
    VoIP-To-PSTN Gateway Enable: Yes
    VoIP Caller Auth Method: none
    Line 1 VoIP Caller DP: none
    PSTN Dialing Delay: 1
    VoIP Answer Delay: 0
    If you are having trouble, for troubleshooting I would run the sip debug trace on the SPA3000.  If the failure is in your line 1 dial plan you won't see anything in the trace.  If the dial plan sends the call to gw0 then you will see the sip invite for the internal call inside the adapter and you should see the FXO port go off hook.  If that looks OK you can run a trace on your SPA2000 to see the result there.  The SPA3000 Info tab will also give you troubleshooting information.  You should see the on-hook and off-hook voltage level of the SPA2000.  You may also see information about the last pstn number dialed.
    On the SPA2000, you would need to have it registered with a voip provider, or else have it set to Make Call Without Reg before it will accept an incoming call from the FXS port.
    Message Edited by hw on 02-02-2009 06:02 PM

  • I talk to Siri asking it to call my friend but Siri cannot call. Pls help to advise how to make it work?

    I talk to Siri asking it to call my friend but Siri cannot call. Pls help to advise how to make it work?

    Hello Sonem,
    I found an article with steps you can take to troubleshoot issues with Siri.  I recommend reviewing the full article, but the section titled "Providing Siri with user information" seems particularly useful for the issue you are experiencing:
    iOS: Troubleshooting Siri
    http://support.apple.com/kb/TS4079
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • When I turn on my Macbook pro retina display i get a black screen and i noticed that the machine gets very hot, any clue how to make it work?

    When I turn on my Macbook pro retina display, a black screen show up while I hear the normal start up sound.  I noticed that the machine gets very hot, any clue how to make it work?

    If the Mac is too hot to touch, take it in for service.
    Apple - Find Locations

Maybe you are looking for

  • Native SQL string  in Receiver JDBC

    Hi All, I have a requirement where in i have to make us of message protocol : Native SQL String . SDN explanation is as follow : When inserting a line into a table the corresponding document looks as follows:* "INSERT INTO tableName  (column-name1, c

  • IDOC to WORKFLOW

    Hi All, If the Inbound IDOC fails then how to trigger the Workflow. is there any event in Workflow related to IDOC fails. Regards, Lakshma.

  • LSMW  IDoc error : APPLICATION DOCUMENT NOT POSTED with error 51

    During LSMW matmas04 uploading i m getting error :APPLICATION DOCUMENT NOT POSTED with error 51 Can some one tell why ots coming so.

  • Searching in html pages

    Hi, is available any tool to search for a text in a layout and event handlers of html pages of a BSP application ? Thanks Marian

  • Costing variant/valuation variant

    dear gurus,     can any body explain the costing variants,valuation variant,costing sheet,costing type,how it is integrated in production order in controlling tab.can any body explains the customizing part of product costing and overview. if any body