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?

Similar Messages

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

  • 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

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

  • 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's window

    We are converting the forms/reports to run in the Application Server. When you run on the web, an applet starts the forms converted.
    In the older version of forms we use the trigger WHEN-TIMER-EXPIRED to refresh an application, so the user could be working in other task and when the time expired, we were using the win_api to show again the window refreshed.
    Now, when the window that is running the applet is minimized how can I maximize it using the time expired ?
    Urgent,
    Thanks.

    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 MDI window

    Hi,
    From unix OS i am running the forms, can any help me by telling how to maximize the MDI window.
    SET_WINDOW_PROPERTY(FRMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE) works only on Windows OS.
    my mail id is [email protected]

    If you look in the Forms on-line help, all references to the Forms_MDI_Window constant always relate it specifically to Microsoft Windows. I don't think the MDI window exists in any other environment.
    So in your unix system, try maximizing the window defined within the form instead.

  • Maximizing the Sub window

    Hi All,
    When I click OK button in my window, another sub window displayed.After minimizing the sub window
    when i again click ok button in my window, that sub window is not dispayed in front of main window, still it is minimized only....
    Can anybody suggest that ,How can I bring back that sub window.?
    regards,
    Ss

    Use the Frame class setExtendedState method. For example:
    JFrame frame = new JFrame("My Window");
    /* On button click and frame not null */
    frame.setExtendedState(Frame.NORMAL);

  • I used to use a bookmark for maximizing the firefox window, but in FF9 it no longer works.

    Before upgrading, I used the following snippet of code in the "Location" field of a Bookmark:
    javascript:self.resizeTo(screen.availwidth,screen.availheight);self.moveto(0,0);
    However, with FF9 that no longer works. I attempted to change the front portion (before the open parenthesis) to:
    browser.window.resize_to
    but after I remove focus from the text box, it adds the "http://" to the front of the code and a "/" to the end of it. I have two questions:
    #1. Is there a way to stop Firefox from adding the "http://" and "/" to the location box?
    #2. Is there a better way to set up the bookmark (or another quick-access method) to automatically resize the window?

    You can only do that in the Scratchpad if an XUL window like about:addons or about:config is open.
    *Firefox/Tools > Web Developer > Scratchpad (Shift+F4)
    You can no longer run JavaScript code via the location bar in Firefox 6 and later.<br />
    You can see an error message in the Tools > Error Console.<br />
    That code now gets a null principal for security reasons and doesn't have any effect (Bug 656433).<br />
    You need to create a (keyword) bookmarklet and run the code by invoking that bookmark.<br />
    Use the Scratch pad (Firefox > Web Developer > Scratchpad; Shift+F4) to run JavaScript code.<br />
    Open a tab with an XUL page like about:addons (Tools > Addons) to be able to resize or move a window via JavaScript code in the Scratchpad in Firefox 9+.<br />

  • Maximizing the Chart window

    I would like to maximize the 'main layout' window on startup on the Graphics Runtime Engine.
    Any help would be appreciated.
    Thanks
    Nandlal
    [email protected]

    Use the Frame class setExtendedState method. For example:
    JFrame frame = new JFrame("My Window");
    /* On button click and frame not null */
    frame.setExtendedState(Frame.NORMAL);

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

  • 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