Size of an applet window

Is it possible to change the size of an applet window while the applet is
running?
If so, how.
thanks

call resize(); method, it will get resized.

Similar Messages

  • Changing Applet Window Size

    I developed a few forms on 6i and was going to go ahead and migrate to 9i. However, my forms no longer fit in the applet window screen; the user would have to scroll over to see half of it now. The applet window now (not my own window but the window that has "Window" on the left side and "ORACLE" on the right) is only about 2/3 the length of the screen. I can see no way to change it right off...can it be done? if not, jeez, that's a pretty small window...also, I can only assume that the big "ORACLE" advertisement can't be taken off; is that right?
    BTW, I am running Windows 2000.
    Thanks,
    Brian

    To resize the applet just change the width and height parameters in the HTML that invokes your form.
    You can also eliminate the Oracle Logo, its one of the parameters to the applet.

  • Can we set the window size of the applet dynamically

    if we have embeded applet as <applet code="some" height=200 width=200></applet> can we dynamically increase the size of the applet dynamically ie., width and height.

    yes you can with javascript

  • Maximizing a frame or applet window

    When you set the size of an applet using the setSize(int, int) method in a frame window or specify the width and height in an applet's tag or comment in the source code, the applet or application window is always in the "Restored" state (meaning it can be resized). However, how can I maximize the window to make it automatically fill the screen? Similarly, what if I want to minimize the window? And furthermore, if the user maximizes or minimizes the window and in the source code I try to resize it, will I get a runtime error or will it change the window to the restored state?

    // <applet code=mark width=400 height=300></applet>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class mark extends JApplet implements ActionListener {
      JButton smallerButton, largerButton;
      static JFrame frame;
      static boolean isApplet = true;
      public void init() {
        smallerButton = new JButton("Size Smaller");
        smallerButton.addActionListener(this);
        largerButton = new JButton("Resize Larger");
        largerButton.addActionListener(this);
        JPanel buttonPanel = new JPanel();
        buttonPanel.add(smallerButton);
        buttonPanel.add(largerButton);
        JPanel centerPanel = new JPanel();
        centerPanel.setBackground(Color.red);
        Container cp = getContentPane();
        cp.setLayout(new BorderLayout());
        cp.add(buttonPanel, "North");
        cp.add(centerPanel, "Center");
      public void actionPerformed(ActionEvent e) {
        JButton button = (JButton)e.getSource();
        if(isApplet) {
          Frame awtFrame = null;
          Component c = getParent();
          while(c != null) {
            c = c.getParent();
            if(c instanceof Frame) {
              awtFrame = (Frame)c;
              break;
          if(button == smallerButton)
            awtFrame.setExtendedState(Frame.NORMAL);
          if(button == largerButton)
            awtFrame.setExtendedState(Frame.MAXIMIZED_BOTH);
        else {
          if(button == smallerButton)
            frame.setExtendedState(Frame.NORMAL);
          if(button == largerButton)
            frame.setExtendedState(Frame.MAXIMIZED_BOTH);
      public static void main(String[] args) {
        isApplet = false;
        frame = new JFrame("Main Frame");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JApplet applet = new mark();
        frame.getContentPane().add(applet);
        frame.setSize(400,300);
        frame.setLocation(300,200);
        applet.init();
        applet.start();
        frame.setVisible(true);
    }

  • Maximising applet window in explorer

    Hi - New to Forms 9i
    I'm running some forms from Forms Designer locally, once the applet has initialized I can't see the whole of my form / window within the applet.
    How do I increase the size of this applet view?
    Cheers

    Duncan,
    if you start the application from teh Forms Builder environment, then a default width and height is used. To try what Sandu suggested, create a named configuration section in the file he refers to.
    [mytestapp]
    width=100%
    height=100%
    Then in Forms Builder, go to Edit --> Preferences --> Runtime and change the URL shown by appending ?config=mytestapp.
    This way the new settings are picked up.
    Frank

  • Resize Applet Window - How?

    I know how to set a specific size by numbe for an applet window,
    but I would like to know if there is a way of telling the applet window to open in full view mode - like instead of saying open (650, 650) in a separate window, I would like it to take up the entire screen to the exact size of the screen in the internet explorer browser.

    Hi,
    This forum is for discussions related to Sun Java Studio Creator. Please post your query in the appropriate forum. You can try posting your query at:
    http://forum.java.sun.com/forum.jspa?forumID=421
    Cheers
    Girish

  • How can i increase a size of java plugin window in developer10g form?

    Dear Friends,
    I made a master detail form in developer10g form. In the form i m unable to see all the fields in java plugin window bcoz its small.
    how can i increase the size of java plugin window?
    Thanks in advance.
    Regards,
    Kamran

    Hi Kamran
    Just modify width and height values to 100% in the forms\server\formsweb.cfg file:
    # Forms applet parameter
    width=100%
    # Forms applet parameter
    height=100%
    After this restart OC4J instance.
    Hope this helps
    Regards
    Carlos

  • I have updated my iTunes to the newest version, 10-25 on a windows XP system. Now my java virtual machine is not working and I need it to run applet window. My Java is also newest version. What can I do to fix/repair my issue?

    I need help with java on windowsXP after updating iTunes to the latest version. My java will not work and I get error message need java virtual machine to run applet window. Did not have this problem prior to the iTunes update.
    Please help, Thanks

    If your library was working on your computer and then popped up empty all of a sudden then this might be what you need...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Java Applet Window Warning - Appearing through

    Hello
    The warning that is displayed on applet windows now when using java is causing a problem.
    When you bring a fresh web page or word document over the top of the applet window, the java applet warning is still visible as if it has been brought to the front layer. but the rest of the applet is behind the new active window.
    Really weird.
    Ben.

    Our team is also using a signed applet and are having trouble with popup items not being accessible outside of the JFrame.
    In appletviewer the popup (JXDatePicker) is fully accessible. If running in Internet Explorer on Windows 2000 the portion of the popup outside of the JFrame paints correctly but cannot receive click events correctly.
    It would be preferrable that if the popup cannot receive events outside of the applet frame that the popup would be smart enough to pop itself fully in the applet frame.
    Any suggestions?
    Thank you.

  • Java Applet Window

    I'm not a developer,and this is probably the wrong place to post this. It's really a small, silly thing....but I play Literati on Yahoo, and all of a sudden, across the bottom of my screen blocking the chat screen is a bar that says Java Applet Window.....how do I get rid of this???

    See my posting on the JDev Forum :-)

  • Java applet window blocking yahoo games

    not a devloper, but I really need some help handling this java problem. when I log onto yahoo games, bar that says "java applet window" blocks the bottom portion of the screen. how can I get rid of this?

    i found out how to get older verison of java6-7 verison .
    Go to search bar type in OpenOffice.org 3.0 and download this.it will take about 30 minute to download this file.after download this go to add & REMOVE PROGRAM to see if download and if did delete java 6u10 version . email me at [email protected] to see it work

  • Java Applet Window showing on signed applet popups

    I have an applet deployed that is signed, but I'm experiencing a very annoying problem with JPopup windows that cross outside the border of the JFrame created by the Applet.
    Those pop-up windows still show the warning at the bottom "Java Applet Window". That part is pretty annoying and I don't understand why it's doing that since they are coming from a signed, trusted applet.
    Just to be clear, any of the JPopups or JDialogs or anything else we display inside the frame doesn't have this warning since we signed the applet.

    Our team is also using a signed applet and are having trouble with popup items not being accessible outside of the JFrame.
    In appletviewer the popup (JXDatePicker) is fully accessible. If running in Internet Explorer on Windows 2000 the portion of the popup outside of the JFrame paints correctly but cannot receive click events correctly.
    It would be preferrable that if the popup cannot receive events outside of the applet frame that the popup would be smart enough to pop itself fully in the applet frame.
    Any suggestions?
    Thank you.

  • Using separate_frame=true and trying to close the applet window after...

    We are using separate_frame=true and trying to close the applet window (the one with the large gray box) after using the following post-form trigger:
    if :system.last_form = 0 then     
         message('Please wait while Forms closes - '||:system.last_form);     
         web.show_document('/forms/html/close.htm','_self');     
    end if;
    This works fine for the first form we open, but if that same form using Open_Form to open a child form we have a problem. When the child form is closed the user is returned to the parent calling form (which is expected), but then when the parent form is closed the separate applet window fails to close. Any suggestions?

    I guess you mis-interpreted the value of :SYSTEM.LAST_FORM. From the online-help:
    SYSTEM.LAST_FORM represents the form document ID of the previous form in a multi-form application, where multiple forms have been invoked using OPEN_FORM.So LAST_FORM shows always the ID of the last activated form, and this will never be 0 if you issued one OPEN_FORM in your application.

  • Applet window

    Hi everyone, I've got an applet that opens a dialog. These dialogs are displayed as java applet windows.
    I have a problem when using them. If a user clicks a button, they open this applet window (dialog).
    While this dialog is open, if they click on some other application or another browswer window, and then come back to the window that houses the applet, the dialog that was showing is now not showing. The only way to show it again is minimize everything, then maximise browser window containing applet, and then moving it to the side to get the applet window (dialog) showing. Is there an automatic way to say that if any of these applet windows were open when losing focus, show them again when get focus back?
    Thanks everybody
    Graham

    You can fix the problem by using the following method to get a parent Frame for the Dialog. Use this and the dialog will always remain on top of the browser.
         public Frame getDialogFrame()
              /* CREATES AND POSITIONS A FRAME USED BY DIALOGS
                 TO ENSURE THAT DIALOG MODAL AND CENTRED OVER APPLET*/
              Object parent = this.getParent();
              while(!(parent instanceof Frame)) parent=((Component)parent).getParent();
              Frame dialogFrame = (Frame) parent;
              Point p = this.getLocationOnScreen();
              dialogFrame.setLocation(p.x, p.y);
              return dialogFrame;
         }

  • How to increase the size of the applet/ form displayed on the bowser

    kindly guide me how to increase the size of the applet / forms displayed on the browseri.e the width and length of the forms/applet so that i can display all the controls on the form .
    thanks with regards

    i changed the value of width and height in formsweb.cfg file in my devsuite_home/forms/server/formsweb.cfg , i am able to see the result when i compile and run the form in devsuite, whereas the same is not reflected when i run the same form in application server.
    when i tried to change the value of abbovementioned file in oracle_home /forms/server/formsweb.cfg of the application server file , the file does not have the applet wdth and applet height values. in fact this file does not have any applet information..
    pls guide
    thanks with regards.

Maybe you are looking for