Resizing an Applet window and components.

How can I resize an applet window and not compromise the layout of components in the applet's panel? Can i get the components to resize as the applet's window resize?

Try using GridBagLayout as your LayoutManager. Then use GridBagConstraints to specify the components behaviour on resizing.
Hope that helps.

Similar Messages

  • "Java Applet Window" and keeping PopupMenu inside Applet

    I just added a JPopupMenu to my Applet, and I want to remove the "Java Applet Window" at the bottom. I know this can be done by making sure the PopupMenu stays inside the Applet area. How can I make it stay inside the Applet area?

    Hi Duncan,
    thank you for your answer (on Forms Forum, too :-)
    In the init function I do
    public void init(IHandler handler)
    mHandler = handler;
    super.init(handler);
    // getting the Forms Main class
    formsMain = (Main) mHandler.getApplet();
    // Accessor to the external frame
    formsTopFrame = formsMain.getFrame();
    The constructor does
    optionPane = new JOptionPane( "some text", JOptionPane.INFORMATION_MESSAGE);
    and before the showMessageDialog I put
    formsTopFrame.add(optionPane);
    but with no effect.
    Do you have some more hints?
    Regards,
    Werner

  • Resizing windows and components

    Hi, i've been reading the swing tutorial on springLayout but i still haven't figured out how to do it.
    Basically I want a jTable in a jScrollPane to resize itself whenever i resize the window. The window would also have other buttons, which positions I want to stay relatively constant to the borders (ex: always in the middle, or always to the left, etc. etc.), however i do not want to resize them. any ideas?
    Thnx
    Rickszyr

    Don't use SpringLayout. Assuming what you stated is all you want in the window, my suggestion is to do the following:
    1. The main window's content pane uses BorderLayout. Stick the JScrollPane containing the JTable in BorderLayout.CENTER.
    2. Create a second JPanel that will contain your buttons. Add this JPanel to your content pane wherever you want (e.g. BorderLayout.RIGHT if you want it to the right of the JTable, BorderLayout.SOUTH if you want them below, etc.). The LayoutManager you use for this second JPanel depends on how you want the buttons arranged.
    Basically, don't be afraid to nest JPanels with different LayoutManagers to achieve the layout you want. You'd be amazed with how much you can accomplish with BorderLayout and GridLayout, and sometimes a little bit of BoxLayout.

  • Resizing a movie in a window and it's sprites

    I'm working on a kind-of slide show project. The 'show' runs
    in a resizable window. The projector (created with Director v10)
    has a lot of sprites (>60). Most of them should not be resized
    and should stay at a fixed position (e.g. at the right margin),
    other sprites should be resized (e.g. the 'slide'). It is more or
    less as the Director authoring environment window where windows are
    docked.
    My question is if someone has a concept on how to deal with
    this. I appreciate any help.

    "ArmanIc" <[email protected]> wrote in
    message
    news:fjuiml$mj1$[email protected]..
    > I'm working on a kind-of slide show project. The 'show'
    runs in a
    > resizable
    > window. The projector (created with Director v10) has a
    lot of
    > sprites (>60).
    > Most of them should not be resized and should stay at a
    fixed
    > position (e.g. at
    > the right margin), other sprites should be resized (e.g.
    the
    > 'slide'). It is
    > more or less as the Director authoring environment
    window where
    > windows are
    > docked.
    >
    > My question is if someone has a concept on how to deal
    with this. I
    > appreciate
    > any help.
    Hi,
    I have a set of behaviours for that.
    They make a sprite keep its distance to the edge of the
    stage, and you
    can choose which edge (Left, Right, Top, Bottom). And then
    there is
    one other that sets a sprites position relative to the
    centre.
    I wrote them years ago for Dir 8, and are still in Lingo not
    Javascript.
    I could post them here, but they are not difficult to write,
    and
    besides, what is the fun? ;)
    Basically it goes like this:
    - store the starting position of the sprite or the offset to
    its
    reference (left edge, right edge...etc) on startmovie or
    beginSprite
    - detect the resizing of the window and send all sprites a
    message
    (sendAllSprites()).
    - in the sprites' handler, calculate the new position of the
    sprite
    and put it there.
    If you want to have them anyway, send me an email info
    looping nl.
    Good luck,
    Richard.

  • How to put a little textbox in a regular applet window for user input

    Hi i was just wondering if anybody knows how to draw a text box, (for user input), in a applet window and be able to put it in a specific spot, like when you draw a rectangle.
    I have searched the web and have not found any answers, but i have seen projects that do this but they dont have the source code.

    JTextField?

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

  • Resizing height width of adf  components when maximizing browser window

    Hi All,
    I am using JDeveloper 11.1.1.4. I have one one panelCollection and an af:table inside it in my page. The browser window that contains the page will initially have a width and height of 1030,340. When user maximizes the window i want to stretch both the width and height of the components inside it. While doing maximize i want to increase the height and width of the panelcollection and the table inside it.I am able to stetch the width using stretch layout and AFStretchWidth style. But resizing the height of the components is the problem.
    First of all is it possible ? Please help me to get to a conclusion for this.
    Thanks,
    Priya.

    Hi,
    Even if i use panelstretch layout i need two or more compoennts (table,panelgrouplayout,...etc) need to aligned horizontally inside the stretch layout so it is not stretching the height. To solve this problemm i wrote a javascript which catches the resize event of the window and in that i am setting the height of the compoents depending upon the size of the outer most layout. The javascript that i used is
    $(window).bind('resize', function() {             
    var height = document.getElementById('pt1:pt_psl1').offsetHeight;
    var pcHeight = height - 50;
    document.getElementById('pt1:pgl3').style.height = pcHeight + 'px';
    document.getElementById('pt1:pc1').style.height = pcHeight + 'px';
    This works fine in Firefox and chrome browser, but in IE it is not working. That is in IE the method is not getting invoked while clicking on maximize button of the window. Does anybody have any solution for this ?

  • 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

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

  • Downloading and installing windows media components for quicktime

    I am relatively new to Mac and haven't really installed much other than Handbrake. I was trying to install windows media components for quicktime or even windows media player for quicktime in order to play .wmv files. However, anytime I click to download something, NOTHING HAPPENS. No download appears, nothing goes to my download stack, nothing installs. Is there something I need to know when attempting to download and install something on my Mac that I may not just know coming over from the dark side of windows?
    any help is appreciated

    Yes, good advise...Flip4Mac is essential for WMV content. Here's a list of other things you might need for the various formats out there.
    VLC
    Real Player
    Perian
    Adobe Flash
    Streamclip

  • Sharing a link to Facebook, the "share" button is not available in the window and I can't resize to access it. How do I make it work?

    I have Windows 8.1, touchscreen. When responding to an issues email that then gives me the option to share on Facebook, the resulting share window does not format so that the share button is accessible to click or press. Thus, I cannot share anything. I have tried resizing the share window, but it just jumps around and never makes the button accessible.

    I understand that the share button on Facebook jumps around. Does this also happen in safe mode?
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Resizing Windows and Mac volumes

    Would anyone please be able to give me some direction as to how to downsize my windows volume in order to give me more space on the Mac volume? Thanks in advance...

    Do not even try to use Partition Magic. If you do an operation on your Windows disk using Partition Magic, Partition Expert or any other such program, you will not be able to boot your Windows!
    when bootcamp creates Windows partition, it sets this partition as active. thus, Windows sees this partition as C drive, and can boot without any problem. But, if you use such a program, It will corrupt the MBR, C: drive will disappear for windows, and it will not boot. This can even make bootcamp unable to run anymore!
    I tried to partition my windows partition like that for installing linux, and it screwed up! I could repartition and install windows+linux (triple boot). But this was really a pain! but right now I am unable to use BootCamp. i manually extract the drivers.
    And you talk about resizing OSX partition via Partition Magic. This can even damage hole system! I just tried to divide Windows partition in 2, and I lost Windows and BootCamp. if you try resizing OSX partition, you will lose everything as your MAC does not use old HD partitioning scheme like PCs do!
    I suggest you to not try that... It is easier to reinstall windows. So the best way is to use BootCamp for deleting Windows, and recreating Windows partition afterwards. Try getting the Image of your Windows partition before erasing it. Maybe after resizing, you can use your old Windows image, so you will not have to install Windows from scratch...
    MacBook Pro 2.16,ibook g4 1.33   Mac OS X (10.4.8)   wireless mighty mouse and 1/2 ipod nano black

  • Resizing windows and panels?

    This seems strange to me, but maybe I'm missing something.   I can't resize the panels horizontally if the "inspector/library/file browser" pane is shown.  At the same time, maximizing the window sends the bottom of the motion window behind the dock, and attempts to resize it just cause it to go away instead of resizing.  Is it necessary to hide the dock? or not be able to resize the window and adjust the layout?

    Do not even try to use Partition Magic. If you do an operation on your Windows disk using Partition Magic, Partition Expert or any other such program, you will not be able to boot your Windows!
    when bootcamp creates Windows partition, it sets this partition as active. thus, Windows sees this partition as C drive, and can boot without any problem. But, if you use such a program, It will corrupt the MBR, C: drive will disappear for windows, and it will not boot. This can even make bootcamp unable to run anymore!
    I tried to partition my windows partition like that for installing linux, and it screwed up! I could repartition and install windows+linux (triple boot). But this was really a pain! but right now I am unable to use BootCamp. i manually extract the drivers.
    And you talk about resizing OSX partition via Partition Magic. This can even damage hole system! I just tried to divide Windows partition in 2, and I lost Windows and BootCamp. if you try resizing OSX partition, you will lose everything as your MAC does not use old HD partitioning scheme like PCs do!
    I suggest you to not try that... It is easier to reinstall windows. So the best way is to use BootCamp for deleting Windows, and recreating Windows partition afterwards. Try getting the Image of your Windows partition before erasing it. Maybe after resizing, you can use your old Windows image, so you will not have to install Windows from scratch...
    MacBook Pro 2.16,ibook g4 1.33   Mac OS X (10.4.8)   wireless mighty mouse and 1/2 ipod nano black

  • I erased my windows partition using disk utility then realized I should have used boot camp, because now I can't resize the original partition and seem to be stuck with a ghost unusable space. Boot Camp now doesn't give me the option to install or re

    I erased my windows partition using disk utility then realized I should have used boot camp, because now I can't resize the original partition and seem to be stuck with a ghost unusable space. Boot Camp now doesn't give me the option to install or remove windows partition.

    Hi, Ralph,
    The problem is that I did erase the partition, using disk utility, but I can't go back to my original disk size pre-partition, as disk utility won't let me do it and gives the message "Couldn’t modify partition map because file system verification failed." When I try to use Boot Camp Assistant it won't let me select the third option to remove windows.

  • Problem with JOGL applet on Windows and Linux

    I made a simple test applet using JOGL involving a simple animation and a KeyListener. It put it on a web site, and it loads and runs correctly on my Mac, but it gives a blank box with a red x in it on Windows and Linux. Here is the code that I used to deploy the applet. I based it off the sample from https://jogl-demos.dev.java.net/applettest.html
    <applet code="TestApplet"
    width=300
    height=300
    archive="http://download.java.net/media/applet-launcher/applet-launcher.jar,
    http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
    http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
    http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl-demos.jar">
    <param name="codebase_lookup" value="false">
    <param name="subapplet.classname" value="TestApplet">
    <param name="subapplet.displayname" value="JOGL Applet">
    <param name="noddraw.check" value="true">
    <param name="progressbar" value="true">
    <param name="jnlpNumExtensions" value="1">
    <param name="jnlpExtension1"
    value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
    </applet>
    Does anyone know what I'm doing wrong? Thanks for your help.

    never mind. i figured it out.

Maybe you are looking for

  • Problem with Inbound Idoc

    Hi everybody. I´ve got a problem with an inbound idoc. I've got a standard idoc INOTIF with an extension. To receive this Idoc from external systema I´ve created a Z FM to process this idoc. The problem is that when this idoc get to SAP the FM never

  • Update PA0008 in sap abap hr

    Hi Experts, I want to update the existing record in table PA0008. In table, for one existing pernr, it has wage types(LGA01). I want to add one or two wage for that existing pernr without effecting the  existing wage type and other values. How to get

  • Copy express

    Hello I try to copy data from one data bas eto another and I have the same message displaying I do not know how to fix the issue: "Failed to create default folder for application file. Check option for default folder assignment" what folder does it m

  • Weird problem during synchronization !!!??

    Hi all I came accross a weird problem during synchronization. I am into customizing MAM2.5, and in testing phase. I created 600 local measurement documents and tried to sync. Nearly half of the documents got successfully posted at the back end and go

  • One file to mutliple metadata records ?

    I have a requirement to connect one file for content management to multiple metadata records - for example ... We have a (single) loan document which applied to many properties. Each property has its own associated metadata, such as the development,