How to add scroll function in  the applet launched by  Java Web Start?

I have Java Web Start installed in order for the applet to launch.The applet size: width:700 height:1000
my compuer resolution:800*600
the applet launched by Java Web Start can only be seen partly,especially height.How to add scroll function in the applet launched by Java Web Start?
Thanks for help.
email:[email protected]

You can very easily add a JScrollPane manually between the Applet and your content. Perhaps it would be beter if javaws did this automatically. In the browser, an applet can be any size. In Java Web Start an applet is directly contained within a JFrame, so it cannot be smaller than the minimum size of a JFrame, or Larger than the max.

Similar Messages

  • Refresh an open web page on closing an applet launch from Java Web Start

    Hi
    I launch an aplication via Java Web Start from a link in a web page. I am looking to a solution to refresh my web page when I close my applet.
    Thanks in advance to give me the solution or only to let me know if it's possible or not.

    everything's possible. but this is not trivial. there is no direct connection between the html page that launched the app and the app. You can create an indirect connection by having the app notify a server process when it closes and having the page periodically polling the server for the app's status.

  • Override the launch of Java Web Start

    How can we stop the auto launch of Java web start and prompt the user to enter the desired location to download the jars.
    And then launch the jars from that location.
    Is there any solution for this.
    Please help me in this regard
    Nandita

    The whole idea of WebStart is to relieve the user of the burden of downloading binaries themselves. The whole point is, they just click a link on a web page, some magic happens, and their app starts up.
    Your idea is a complete waste of time.

  • How to Add Partner function in the main screen of the Sales order???????

    Hello All,
    I am working on ECC 6.00 SD module
    I want to add partner function in the main screen of the sales order, that mean add more partner function beside Sold to party and the ship to party to be in the order header, Is it possible and how?
    Regards
    Jacopo Françoise

    Hi
    If you want in the sales order , above the sold to party as the  box then you need to go for enhancements
    Regards
    Srinath
    Edited by: sri nath on Jun 11, 2008 6:56 PM

  • How to solve the certificate problems in Java Web Start

    Hi, All,
    I encounted these two problems recently:
    (1) I have an application which is supposed to be started by Java Web Start. I have written my own code which calls other .jar files from other companies. Since for web start, you need to sign all .jar files if you want more permssions. Now I got the following problem:
    '=================================
    An error occurred while launching/running the application.
    Title: My stuff
    Vendor: UCLA
    Category: Launch File Error
    JAR resources in JNLP file are not signed by same certificate
    =================================
    How to go around this? It seems that the .jar files from that company has been signed already. Then I tried to uncompress those jars and re-archieve again, then sign it again using the keystore I used to sign my own .jar files. It still does not work. Any help on this will be appreciated!
    (2) Afterr I signed a .jar file, when I want to run it again, using command: java -jar abc.jar
    It does not work any more, I am not sure whether it will become a problem if loaded by Web start.
    Thanks a lot!
    David

    In another forum answer, a user named Dietz suggested the following:
    If you have a library signed by another signer, you need to factor it out into a seperate extension jnlp file.
    AJones0131

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • Ask the Experts Session on Java Web Start (April 10-14)

    Got a question about Java Web Start? Post it on the Ask the Experts page (http://java.sun.com/developer/community/askxprt/index.html) during the week of April 10 and get answers from three key members of the Java Deployment team in J2SE: Andy Herrick, Thomas Ng, and Cheng Dan.

    Java Plug-in technology, included as part of the Java
    Runtime Environment, Standard Edition (Java SE),
    establishes a connection between popular browsers and
    the Java platform. This connection enables applets on
    Web sites to be run within a browser on the desktop.
    Got a question about Java Plug-in technology? Submit
    your questions from February 12 through February 16
    and get answers from key members of the Java SE
    Deployment Team.It's just two days since i read an article on developers who write Java Plug-in's for browsers.I just can't remember where!

  • Customize the "update message" for Java Web Start

    For the default value (false) of silentInstallLicenseAcceptance in Java Web Start when an application's server side has changed, the user will be asked with a message box whether he/she wants to update his local application now or quit the application.
    I would like to know if I can manipulate the message that Java Web Start should ask the user. I also would like to know if I can change the button from Yes/No to Upgrade Now and Upgrade Later.
    Any API reference, idea, tutorial or sample code would be appreciated.

    I'm pretty sure that list is not accurate for the Java Web Start released in Update 4 recently. I have an app which attempts to specify heap and stack sizes using java-vm-args="-Xmx1024m -Xms1024m -Xss8m"; when I use the Java console to display memory usage, it shows that the heap is 81MB (which is the default). If I use initial-heap-size="1024m" max-heap-size="1024m" in the same JNLP file, the heap size is set properly.
    Unfortunately I don't think there's any way other than -Xss to set the stack size in a JNLP file, and I need to do that too.
    It's also possible that I screwed something up which caused this problem, but I reproduced it on both my Mac Pro and my Macbook Pro.

  • How at add closd function in the JButton??

    Hi, sir:
    I hope to add a closd function in the JButton, ie, like a JPanel or JFrame, there is a "X" sign icon on the right upper coner, when we click this X sign,
    whole window or JPanel or JFrame will be closed, here I hope to add a "x" sign in JButton, when I click it, itthis button b2 will be vanished.
    I update following code, but looks like not work, I hope Text and its icon on the leading Left, but closed sign is on the extreme end of right.
    Can guru help??
    Thanks
    import javax.swing.AbstractButton;
    import javax.swing.Icon;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import javax.swing.SwingConstants;
    import javax.swing.GroupLayout.Alignment;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    * ButtonDemo.java requires the following files:
    *   images/right.gif
    *   images/middle.gif
    *   images/left.gif
    public class ButtonDemo2 extends JPanel  implements ActionListener {
        protected JButton  b2,bclosed;
        public ButtonDemo2() {
             Icon closedIcon  = new ImageIcon("images/ActionButton/closed.PNG");
            ImageIcon middleButtonIcon = new ImageIcon("images/little.gif");
            JLabel label1 = new JLabel("Image and Text", middleButtonIcon, JLabel.CENTER);
            bclosed = new JButton(closedIcon);
            bclosed.setBorder(null);
            bclosed.setToolTipText("closed");
            b2 = new JButton("Middle button", middleButtonIcon);
            b2.setText("Middle button");
            b2.setVerticalTextPosition(AbstractButton.BOTTOM);
            b2.add(bclosed, -1);
            b2.setIcon(middleButtonIcon);
            b2.setHorizontalTextPosition(AbstractButton.LEFT);
            b2.setAlignmentX(LEFT_ALIGNMENT);
            b2.setMnemonic(KeyEvent.VK_M);
              b2.setToolTipText("This middle button does nothing when you click it.");
            //Add Components to this container, using the default FlowLayout.
            add(label1);
            add(b2);
        public void actionPerformed(ActionEvent e) {
            if ("disable".equals(e.getActionCommand())) {
                b2.setEnabled(false);
            } else {
                b2.setEnabled(true);
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("ButtonDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            ButtonDemo2 newContentPane = new ButtonDemo2();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    Thanks, I add as follows:
    package a.border;
    import javax.swing.AbstractButton;
    import javax.swing.Icon;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import javax.swing.SwingConstants;
    import javax.swing.GroupLayout.Alignment;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    * ButtonDemo.java requires the following files:
    *   images/right.gif
    *   images/middle.gif
    *   images/left.gif
    public class ButtonDemo2 extends JPanel  implements ActionListener {
        protected JButton  b2,bclosed;
        public ButtonDemo2() {
             Icon closedIcon  = new ImageIcon("images/ActionButton/closed.PNG");
            ImageIcon middleButtonIcon = new ImageIcon("images/little.gif");
            JLabel label1 = new JLabel("Image and Text", middleButtonIcon, JLabel.CENTER);
            bclosed = new JButton(closedIcon);
            bclosed.setBorder(null);
            bclosed.setToolTipText("closed");
            bclosed.setActionCommand("closed");
            b2 = new JButton("Middle button", middleButtonIcon);
            b2.setText("Middle button");
            b2.setVerticalTextPosition(AbstractButton.BOTTOM);
            b2.add(bclosed, -1);
            b2.setIcon(middleButtonIcon);
            b2.setHorizontalTextPosition(AbstractButton.LEFT);
            b2.setAlignmentX(LEFT_ALIGNMENT);
            b2.setMnemonic(KeyEvent.VK_M);
            bclosed.addActionListener(this);
            b2.setToolTipText("This middle button does nothing when you click it.");
            //Add Components to this container, using the default FlowLayout.
            add(label1);
            add(b2);
        public void actionPerformed(ActionEvent e) {
            if ("disable".equals(e.getActionCommand())) {
                b2.setEnabled(!b2.isEnabled());
            if             ("closed".equals(e.getActionCommand())) {
                  System.out.println("OK closed is pressed");
                  remove(b2);
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("ButtonDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            ButtonDemo2 newContentPane = new ButtonDemo2();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }But I cannot see the First Image I add in b2 such as little.gif and "Image and Text" on it, only I can see bclosed icon.
    what is wrong here??
    Thanks a lot
    Good weekend

  • How to add items dynamically to the DropDown Ring control in Web UI Builder

    Hi All,
    Is there any way to add the item names to DropDown Ring Control in Web UI Builder?
    Or
    Is there any other control available to make selection in the Front Panel which can be dynamically loaded?
    Thanks,
    Alagar

    DiyaDiya  
    We do not currently have a solution for populating the items in a ring dynamically. 
    Thanks for the clarification.
    Seems incredible after all these years that such functionality (dynamically populating a ring control) is still beyond Labview. I must be missing something.
    However, I'd suggest a combobox is closer than a listbox as a workaround.
    [edit]
    nevermind, it actually can be done (well, maybe not in the webUI), I found the explanation here http://digital.ni.com/public.nsf/allkb/FB0409491FAB16FA86256D08004FCE7E

  • How to add file type fiter in FileUpload component in Java Web Dynpro

    Hi All,
      In FileUpload UI, i want to set file type filter, for example as *.PDF, *.JPG, is that possibel in Java WebDynpro?
    Thanks a lot!
    Huang Jia

    hi!
    you can achieve this filter thing of file type by just taking some strings for diffrent types as extension and assign those to the resource type .
    eg.
    String extension = ".doc";
    WDWebResourceType.getWebResourceTypeForFileExtension(extension));

  • Where can I find the source code of Java web start demos program?

    When I watch these demos, I think this program is very good to start to learn Java. Is there anywhere to find the source code?

    By trawling the approprite forum
    http://forum.java.sun.com/forum.jsp?forum=38

  • How import policy file with Java Web Start

    hi everybody,
    I wrote an application launched by Java Web Start.
    This application encrypt data on the client side and POST them to the server.
    To encrypt I use JCE packages including sunjce_provider.jar, jce1_2_1.jar and
    local_policy.jar and US_export_policy.jar.
    local_policy.jar and US_export_policy.jar are not packages, each of them contains
    a policy file.
    When I test encryption on local no problem, but when I test with Java Web Start
    I've got this exception :
    java.lang.ExceptionInInitializerError:
    java.lang.SecurityException: Cannot set up certs for trusted CAs
    It's because the application launched by Java Web Start doesn't find local_policy.jar
    and US_export_policy.jar.
    There's a problem in my JNLP file :
    <jnlp spec="1.0+" href="http://myserver/sources/test.jnlp" codebase="http://myserver/sources">
         <information>
              <title>Java Web Start TEST</title>
              <vendor>NLE Intech</vendor>
              <description>cryptage then upload</description>
         </information>
         <security>
              <all-permissions/>
         </security>
         <resources>
              <j2se version="1.3" />
              <jar href="sunjce_provider.jar" />
              <jar href="jce1_2_1.jar" />
              <jar href="local_policy.jar" />
              <jar href="US_export_policy.jar" />
         </resources>
         <application-desc main-class="HelloWorldSwing" >
              <argument>c:\myfiletoencrypt</argument>
         </application-desc>
    </jnlp>
    thank you for your answer

    Hi Nicolas,
    If you migrate to JDK1.4 and use the signed Bouncy JAR, you could resolve the problem,
    if you don't want to use unlimited cryptography.
    See my posting on your other question.
    Agnes
    PS. There is a mistake in my other reply, the "local_policy.jar" and the other files must have
    to go into JRE/LIB/SECURITY directory

  • Where's the Applet Launcher in 10.4 ?

    i installed 10.4 today, wiped the disk clean first
    i notice there's no applet launcher but there is Java Web Start, as far as i can tell it's the replacement for Applet Launcher ? well i cant get it lo launch anything
    sea monkey downloads the applet i'm interested in and it executes it so slowly now, it takes forever to start up
    so what now ? i am to paste the applet page URL into Web Start Add Entry window ? if i do so and look in organize entry the URL is where an Entry Name is expected and Entry URL still contains the Java Web Start intro URL, well at least the remove button works i can get rid of the mangled mess
    theoretically if it did work am i then supposed to click on Download Application to get the applet to download into Web Start
    call me what you will but this seems to be a nonworking "feature" and the Web Start apple page doesnt help any either
    what is it with apple ? and always having to muck with disk repairs and permissions before and after updates ? it all seems ridiculous that they cant come up with a cleaner installation process
    anyway thanks for any help

    ok ok
    if found it in the XCode install, didnt do that originally because my old powerbook's disk would be practically maxed out by the developer code
    applet launcher use to be in the utilities/java dirs in the past though but i thought i'd look for it on the xcode install
    but Web Start still seems to hav eth eproblems i discussed earlier

  • How can I check what version of Java Web Start is installed on the client ?

    hi,
    Can anyone tell me how can I check what version of java web start is installed on the client and display a message if the client has not the good version ?
    I mean:
    I'd like all people running my application use java 5 and if someone using java 1.4 try to run the application get a nice screen telling him to download the latest version of Java Web Start.
    Is this possible ?
    Thanks in advance.

    Of course, I put this on my jnlp file,
    <resources>
        <j2se version="1.5+"/>
        <jar href="..... "/>
    </resources> But even with that, it doesn't display a nice message but a kind of exception instead.
    Thanks in advance.

Maybe you are looking for