Maximize the applet window

Hi all. I'm on devsuite 10g. I'm running my form with separateframe=true. I would know if there is something that I can do to maximize the applet window, in which there is my form.
In the formweb.cfg file I have modified the parameters as follow:
width=100%
height=100%
but the window in which there is the form (probably the applet window) is not maximized.
Here is the code of my when-window-activated trigger:
Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
Set_Window_Property('WINDOW1', WINDOW_STATE, MAXIMIZE);
Set_Window_Property('WINDOW2', WINDOW_STATE, MAXIMIZE);
Set_Window_Property('WINDOW3', WINDOW_STATE, MAXIMIZE);
So what can I do???
Thanks all for the collaboration,
Fabrizio

try making width=100%
height=100% in formsweb.cfg
also search this forum for some answers

Similar Messages

  • 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.

  • How to maximize the MDI window in web form.

    Dear all,
    i am new to jdeveloper. i am using form 10g there is a problem which is not handle by me in forms.
    i want to maximize the MDI window in web form.
    can jdeveloper solve my problem.
    i am new please anyone tell me step by step.
    thanks
    Muhammad Nadeem
    [email protected]

    Hi,
    no. Please use the Forms built-in set_window_property maximize
    Forms questions are answered here: Forms
    Frank

  • Closing the applet window

    how to close the applet window using a button on the applet

    ravindra.alld wrote:
    how to close the applet window using a button on the appletIs your applet in a web browser? If so the only way to hide visibility of the applet would be through javascript and css. So you would need an html button outside the applet to do this.

  • Maximizing the Applet window

    I am deploying a forms 5 application over the web. How can I
    have the applet window automatically maximized?
    I know how to do it in the forms runtime with FORMS_MDI_WINDOW
    but that doesn't work in the java deployment.
    any help would be greatly appreciated..
    thanks in advance,
    Dennis Hancock
    null

    Can you not use the same win api to bring up the browser application, since the applet is running within the browser?

  • Forms Server - Unable to  load *.FMX  into the applet window

    We have compilled the following html from JDeveloper :
    <HTML>
    <!-- FILE: main.html -->
    <!-- Oracle Static (Non-Cartridge) HTML File Template -->
    <!-- Rename, and modify tags and parameter values as needed -->
    <HEAD><TITLE>The Developer/2000 Server</TITLE></HEAD>
    <BODY><BR>Please wait while the Forms Client class files download and run.
    <BR>This will take a second or two...
    <P>
    <!-- applet definition (start) -->
    <APPLET CODEBASE="."
    CODE="oracle.forms.engine.Main"
    ARCHIVE="f60web.jar"
    HEIGHT=400
    WIDTH=400>
    <PARAM NAME="serverHost" VALUE="192.168.1.99">
    <PARAM NAME="serverPort" VALUE="80">
    <PARAM NAME="serverArgs"
    VALUE="module=test.fmx userid=tasos/1234@gportal">
    <PARAM NAME="serverApp" VALUE="default">
    </APPLET>
    <!-- applet definition (end) -->
    </BODY>
    </HTML>
    Runtime retunrs the following:
    java.lang.NoClassDefFoundError: java/awt/peer/ActiveEvent      
    void oracle.forms.engine.Main.dispatchEvents(java.awt.EventQueue)      
    void oracle.forms.engine.Main.tryDispatching()      
    void oracle.forms.engine.Main.componentResized(java.awt.event.ComponentEvent)      
    void java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent)      
    void java.awt.Component.processEvent(java.awt.AWTEvent)      
    void java.awt.Container.processEvent(java.awt.AWTEvent)      
    void java.awt.Window.processEvent(java.awt.AWTEvent)      
    void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)      
    void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)      
    void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)      
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)      
    void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)      
    boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)      
    void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)      
    void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)      
    void java.awt.EventDispatchThread.run()
    Finally , the applet main.class initializes but the specified
    FMX file could not be displayed.
    Is it possible to explain us what is going wrong ;

    If your fmx cannot be found try first to have a hard coded path to the fmx in your HTML something like module=c:\temp\a.fmx
    If it works this way then you probably didn't set the FORMS60_PATH entry in the regedit correctly to include the path to the form.
    set it and remove the path from your html.
    Also I would suspect that your jar is not loaded since your codebase is not pointing to it's directory.
    Open the java console to see if it gets downloaded to the client.

  • Raining outside the Applet Window ! HELP

    I have set the coding for an applet 800 pixels by 800 pixels .
    The Mozilla Firefox browser window cannot be modified to be that size and it is raining outside the applet !
    How do I modify the RainCloud class so it only rains within
    800 pixels in the x direction ?
    Below is the RainCloud class and the rest
    Thank you in advance
    //@ applet is from "An Eventful Approach" by Murtagh and Bruce
    import objectdraw.*;
    import java.awt.*;
    public class RainCloud2 extends ActiveObject
        private static final int MAX_DROPS = 1000000;
        private static final int DELAY_TIME = 10;
        private DrawingCanvas canvas;
        private RandomIntGenerator xGenerator;
        public RainCloud2(DrawingCanvas canvas)
            this.canvas = canvas;
            xGenerator = new RandomIntGenerator(0,canvas.getWidth());
            start();
        public void run()
            int dropCount = 0;
            while (dropCount < MAX_DROPS)
                   new FallingBall(new Location(xGenerator.nextValue(), 0), canvas);
                   pause(DELAY_TIME);
                   dropCount++;
    import objectdraw.*;
    import java.awt.*;
    public class FallingBall3 extends ActiveObject
            private static final int BALLSIZE = 4;
            private static final int TOP = 50;
            private static final int BOTTOM = 600;
            private static final int SCREENWIDTH = 400;
            private static final double Y_SPEED = 4;
            private static final int DELAY_TIME = 33;
            private DrawingCanvas canvas;
            private FilledOval ball;
            public FallingBall3(Location startPoint, DrawingCanvas aCanvas)
                    canvas = aCanvas;
                    ball = new FilledOval(startPoint ,
                                          BALLSIZE, BALLSIZE, canvas);
                    start();
            public void run()
                    while (ball.getY() < 240)
                            ball.move(0, Y_SPEED);
                            pause(DELAY_TIME);
                    ball.hide();
    import objectdraw.*;
    import java.awt.*;
    public class Sun2  extends ActiveObject
       private static final int BALLSIZE = 80;
       private static final double PAUSE_TIME = 190;
       private static final int TOP = 50;
       private static final int BOTTOM = 400;
       private static final int SCREENWIDTH = 400;
       private static final double Y_SPEED = -8;
       private DrawingCanvas canvas;
       private FilledOval sun;
        public Sun2(DrawingCanvas aCanvas)
          canvas = aCanvas;
          sun = new FilledOval(SCREENWIDTH/2,BOTTOM,BALLSIZE,BALLSIZE,canvas);
          sun.setColor(Color.yellow);
          start();
        public void run()
           while(sun.getY()  >  30 )
              sun.move(0, Y_SPEED);
              pause(PAUSE_TIME);
            //sun.hide();
    import objectdraw.*;
    import java.awt.*;
    public class Grass extends WindowController{
            private static final int SCREENLEFT = 0;
            private static final int SCREENTOP = 0;
            private static final int SCREENHEIGHT = 400;
            private static final int SCREENWIDTH = 500;
            private static final int SUN_INSET = 50;
            private static final int SUN_SIZE = 70;
            private static final double GRASS_LINE = SCREENHEIGHT*0.63;
            private static final double GRASS_HEIGHT = SCREENHEIGHT*.04;
            private static final double SKY_LINE = GRASS_LINE + GRASS_HEIGHT;
            private static final double GRASS_WIDTH = 2;
            private static final Color SKYBLUE = new Color(100,100,200);
            private static final Color GRASSGREEN = new Color(0,200,0);
            public void begin()
                double bladePosition;  // where to draw next blade of grass
                            // draw solid sky, grass and sun
                    new FilledRect(0,0,SCREENWIDTH,SKY_LINE,
                                    canvas).setColor(SKYBLUE);
                    new FilledRect(0,SKY_LINE,
                                             SCREENWIDTH,SCREENHEIGHT-GRASS_LINE,
                                 canvas).setColor(GRASSGREEN);
                    bladePosition = 0;
                    while ( bladePosition < SCREENWIDTH )
                            new FilledRect(bladePosition,GRASS_LINE,
                                                       GRASS_WIDTH,GRASS_HEIGHT,
                                          canvas).setColor(GRASSGREEN);
                            bladePosition = bladePosition+2*GRASS_WIDTH;
                   new Text("Click to make a rain cloud....",240,290,canvas);
            public void onMouseClick(Location point)
               new RainCloud(canvas);
               new Sun(canvas);
    <html>
    <head>
    <title> Grass.java
    </title>
    <body>
    <applet
    archive = "objectdraw.jar"
    codeBase = "."
    code = "Grass.class" width = 800 height = 800 >
    </applet>
    </body>
    </html>

    you could set clipping on the Graphics object

  • Maximizing the applet window makes the scrollbar visible how do i solve it

    Hi
    I have scrollpane which consists of panel which has gridlayout ..I drag and drop the labels from one panel to this panel but the scrollbar does not appear ..but as soon as i maximize the window scroll bar appears for the panel..How do i solve this problem.?? can anybody help me asap

    the tabs were move to above the navigation bar, where the menu bar was. They hardly look like tabs there, but you may have turned off the tabs bars. View (Alt>V) > Toolbars > Tabs Bar
    I think the solutions would really prefer though would be
    You can make '''Firefox 8.0''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
    <p>There is a lot more beyond those first 10 steps listed, if you want to make Firefox more functional.</p>
    <p><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small></p>

  • Firefox just changed and now it won't let me have multiple windows with the same website open--it just maximizes the first window. How do I stop that?

    For instance, I have PC Gamer opened in one window, and when I tried to set a different window to PC Gamer it maximized the first window.

    If you try to open the same URL in more than one tab then you may have the "Switch to tab" feature preventing that.
    Hold down the Alt or Shift key while an entry in the drop down list is highlighted to disable "Switch to tab" and see the URL of all entries instead.
    * Alt + Enter opens the highlighted URL in a new tab.
    * Shift + Enter opens the highlighted URL in the current tab.
    * Cursor Right copies the highlighted URL to the location bar in case you want to edit it.
    *Switch to Tab no more: https://addons.mozilla.org/firefox/addon/switch-to-tab-no-more/

  • 9i forms_mdi_window maximize doesn't truly maximize Applett window

    When I start a 9i Form it pops up in a separate Applett window, and then the form does a:
    set_window_property(FORMS_MDI_WINDOW,WINDOW_STATE, MAXIMIZE);
    However, this does not exactly maximize the Applett window. It just makes it as big as the whole desktop, which incidentally extends the status bar below the Task Bar/Start Menu on the MS Windows desktop.
    Manually pressing the maximize button on the MDI windows is, however, able to do a maximize. However, setting it programmatically does not work the same as under 6i (which did it correctly).
    Is there a way to actually make it maximize the MDI window programmatically?
    Sincerely,
    Jesper Vad Kristensen
    Aarhus, Denmark.

    I think I have a slightly different problem
    I can still see the staus bar and message bar and the browser window does not obsure the windows task bar.
    The forms window within the java applet does not maximise as it used to in 6i client server.
    Previously the minimise/restore/close buttons were directly under the main runtime window (is that the MDI window?)
    Now there is an extra window bar underneath the menu and toolbar canvas. It is maximised but doesn't integrate itself into the MDI window as previously.

  • How does the jvm handle drawing images outside an applet window?

    I have a question about an applet I want to optimize.
    Essentially the applet allows the user to scroll through a large map while viewing only a small portion of the map through the applet window.
    The map has a large array of circles with coordinates on the map that are drawn in their appropriate place in the applet window when the user scrolls the map.
    As it stands, the paint method loops through every circle in the array to draw them, but most of them are not visible in the window and end up getting drawn in a negative coordinate or a very large coordinate.
    My question is are these circles that are not seen in the applet window but are still calling drawCircle in the paint method putting a strain on the computer's graphics card?
    Would it be better if I looped through all circles and only called the drawCircle method on circles whose coordinates would be visible? Or would the extra step of checking each circle's coordinates before drawing be not worth as efficient?
    Any help would be appreciated.

    If the amount of stuff being rendered outside of the clip rectangle is small then it's usually not worth it to attempt to figure out what's being clipped and not draw it. If the clip rectangle represents only a small portion of the entire canvas that can be drawn, however, it's usually worthwhile to put in some logic to only draw what is necessary.
    Take JTextArea, for example. It could be displaying a text document thousands of lines long. Instead of rendering every line of text on every repaint operation, it contains the following logic:
    1. Get the current clip bounds (i.e. what part of the text area is "dirty" and must be repainted).
    2. Figure out what lines are displayed in the clip bounds. Some lines may be only partially visible (a line "halfway" scrolled down), but they need to be repainted too. If word wrap is disabled this is a very quick and cheap operation, but if word wrap is enabled, it's a little more complex.
    3. Only repaint those lines.
    This way, in the best-case scenario JTextArea only repaints a single line (the line the user is typing in). Worst case, it repaints the number of lines that can fit on the screen. But it never repaints too much.
    Anyway, I guess my advice would be: If it's cheap and easy to determine if something is out of the clip bounds, do it. If it's difficult to determine, do it only if you have a noticeable performance issue in your rendering code.

  • The applet

    Hi. A question about the applet....
    I'm using the follow parameter in the formsweb.cfg file to open my applications in an IE window that won't have all the user's Internet Explorer toolbars and push buttons. My intent is to maximize the amount of canvas displayed during runtime:
    # Forms applet parameter
    separateFrame=true
    A follow up concern about using this setting is that the applet first opens in an separate IE window and remains open even after my application's IE window is closed by the user.
    For our non-technical users here on my project this will likely be confusing. Is there anyway to sync the closing of the applet window along with the closing of my separate application IE window?
    Or better yet - Is there a way to keep the applet IE window running for the user, but in a mode that is minimized or even invisible to the user?
    Any advice would be appreciated. Thanks in advance.

    it can't close itself. You have to manually close it e.g. in your post-form-trigger of your main form.
    then you start some java-script, which closes the window. Many examples of statement can be found in this forum, if you explicitly search for it.

  • JLable components not being displayed in the panel of the applet

    I am having the problem with the display of the JLabel components in the Panel component of the Applet.
    The JLabel components do not appear in the Panel of the applet unless i minimize or maximize the applet.

    hello...
    i just had the same problem... it was solved by using the .updateUI() method.
    in my case several textFields were dynamically added to a jpanel, there we called the method on that panel.
    ptf.updateUI();     
    hope it works.
    ----------++-----+
    ...algun dia todos seremos luz...
    -zoe

  • 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.

  • 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;
         }

Maybe you are looking for