Set window max size

Hi all
I have a swing applet which uses aprox 1/4 of my screen. I want to stop the user being able to stretch/ minimise the window making my applet look rubbish! Any idea how i do this? Im assuming it is the window and not the frame i need to stop moving.
Help please!
Thanks in advance.
If i have cross posted i apologies, i put thread in wrong area and dont know how to remove

I m not sure i got your question right, but you can probably set the
frame.setResizable(false);or
dialog.setResizable(false);depending on what you are using. On the other hand, your layout should be handling the resize behavior. in the long run, always better to design your layout correctly

Similar Messages

  • Desperate here- Please help!! Setting a max size on the Photo in a Gallery

    I have a client who has 1,000s of picturea there are MANY of their pictures which are HUGE. So the thumbnail is fine I can alter those ratios, but is there a way to alter the size the picture can be when clicked on and it enters the slideshow/gallery mode? Is there a way to set a max size and make that alteration all at once- instead of resizing every picture? If so, how?
    Also, is there a way to take the PREVIOUS and NEXT buttons off the module under the thumbnail?
    Thanks!

    Hi there,
    Editing the CSS to scale the large images is a real bad idea, especially huge ones as being indicated by you both. These images are large and larger file size and will take a long time to download, especially on mobiles. Changing the CSS so they appear smaller does not change that at all.
    You need upload images that are web optimised and scaled correctly first, this is really a good must for proper management.
    In terms of the thumbnail images you need to just modify the module paramaters to get the size and scale you want so this is done server side and the images served already scaled.

  • Possible to set min/max size to a resizable Stage? If so, how?

    Is it possible to set a minimum and maximum size to a resizable Stage? If so, how would this be done? Do I use some kind of onResize event handler or is there some other way?
    Here is a sample code where I have a 500 x 500 px image in a 300 x 300 px scrollable scene that is in a resizable stage. Right now, I am able to resize the stage to any size, but I would like to limit the resizable minimum width and height to 100 x 100 px and limit the resizable maximum width and height to 600 x 600 px.
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollView;
    import javafx.scene.control.ScrollBarPolicy;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var scene: Scene;
    Stage {
        resizable: true
        scene: scene = Scene {
            width: 300
            height: 300
            content: ScrollView {
                hbarPolicy: ScrollBarPolicy.ALWAYS
                vbarPolicy: ScrollBarPolicy.ALWAYS
                width: bind scene.width
                height: bind scene.height
                node: ImageView {
                    image: Image { url: "{__DIR__}roses.jpg"}
    }

    Hi, I don't understand how WidgetFX is going to allow me to set min/max size to a resizable Stage. After all, it is a desktop widget platform and I'm not trying to build a desktop widget. None of the demos I've tried use a decorated Stage with platform decorations that can be used to drag and resize the Stage.
    I'm just trying to limit the min/max size of a resizable Stage. If you think WidgetFX will address my problem, I think a better solution is the JavaFX Stage Controller class I found available at http://code.google.com/p/memefx/. However, the JavaFX Stage Controller class still doesn't address the problem I have because it doesn't stop the user from dragging the Stage beyond the size restricted by the min/max height. It only reverts the Stage to the max size after the user already dragged and resized the Stage beyond the max resizable width/height.

  • Set frame max size

    hey, is there a way to prevent a JFrame from maximising beyond a certain size? I have a JFrame that is 800 by 400, and i dont want it to be smaller than 700 by 400 and larger than 900 by 400.
    thanks
    Pedge
    Prog2(){
    final Demo demo = new Demo();
    DemoControls demoC;
    demoC = new DemoControls(demo);
    JFrame f = new JFrame("prog 2");
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}
    public void windowDeiconified(WindowEvent e) { demo.start(); }
    public void windowIconified(WindowEvent e) { demo.stop(); }});
    f.getContentPane().add("Center", demo);
    f.getContentPane().add("East", demoC);
    f.pack();
    f.setSize(new Dimension(800,400));
    f.show();
    demo.start();}

    Hi,
    In my programs I use the method update(Graphics g) from JFrame to keep the size of the window within boundaries.
    This method is called each time when the size of the window is changed (and maybe also in other situations), but the way it works can be compared with paint (Graphics g) in applets.
    Just try to compile the following code and see how it works.
    (I know that it is not the best way to wish for, but this is one way of wich I know that it works)
    Good luck,
    Willy
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class testFrame extends JFrame implements WindowListener {
    // Constructor:
    public testFrame () {
    super ("Keeping the size within limits !!!");
    this.setSize (new Dimension (700,400));
    this.addWindowListener (this);
    this.show ();
    } // End of constructor
    public void update (Graphics g) {
    super.update (g);
    Dimension oDim = this.getSize ();
    double dWidth = oDim.getWidth();
    double dHeight = oDim.getHeight();
    if (dWidth > 900)
    dWidth = 900;
    if (dWidth < 700)
    dWidth = 700;
    if (dHeight != 400)
    dHeight = 400;
    oDim.setSize (dWidth,dHeight);
    this.setSize (oDim);
    } // End of method update
    public static void main (String [] args) {
    testFrame oFrame = new testFrame ();
    } // End of method main
    // Implementing methods :
    public void windowClosing (WindowEvent e) {System.exit(1);}
    public void windowDeiconified (WindowEvent e) {}
    public void windowActivated (WindowEvent e) {}
    public void windowOpened (WindowEvent e) {}
    public void windowIconified (WindowEvent e) {}
    public void windowClosed (WindowEvent e) {}
    public void windowDeactivated (WindowEvent e) {}
    } // End class testFrame

  • Can you set a max size for a folder on a file server

    I've got a G5 Xserve that I'm using as a file server running 10.3.9. I need more space on my array so I bought bigger drives and will move the data to the new, larger array.
    For the health of my drives, I want my array to maintain at least 10% free space so I would like for the people using the shares to only see 90% of the larger space. (I don't want to have to be the 'drive space' policeman 6 months from now when the RAID fills up again)
    I know I could create 2 partitions in diskutil but I'd like something more dynamic.
    Ideally I'd like to put my shared folders inside of a main folder and tell Server to only display 90% of the size of the partition when a folder from the partition is mounted remotely. That way people won't know there is a quota which keeps them from trying to copy data into a share that shows 10% free space.
    The shares are used by both macs and PCs so I'd rather not go with a solution based upon network protocol.
    Many Thanks,
    Paul
    G5 Xserve   Mac OS X (10.3.9)  

    There's no way I'm aware of to artificially display a different capacity/available space than what's actually there. If it's a 1TB volume, it's a 1TB volume and the OS isn't going to report that as 900GB.
    The only other solutions I can think of is to either enable quotas which will let you restrict the amount of disk space any user can consume, or attach a folder action to the volume where the script automatically checks the volume size whenever new files are added and takes action at the appropriate time (you need to define what that action is, though).

  • Max Size for a message thru SAP PI 7.0 SPS13

    Hi,
         I have a problem with a very large message. The scenario is a JDBC -> SAP PI -> ABAP Proxy. I'm getting this error:
    ErrorTransmitting the message to endpoint http://<server>:8000/sap/xi/engine?type=entry
    using connection JDBC_http://sap.com/xi/XI/System failed, due to:
    com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server.
         We try to solves it changing the EO_MSG_SIZE_LIMIT parameter in SXMB_ADM but it doesn't help us at all.
         How can we set the max size for a message that going thru SAP PI.
         We have SAP PI 7.0 SPS 13.

    HI Luis
    Whats the message size and whats the value you have given in EO_MSG_SIZE_LIMIT. After saving this parameter did you verified at RWB ->RWB->Component Monitoring->Integration Engine->
    Settings->Tuning
    Add one more EO_INBOUND_TO_OUTBOUND this will allow data not to be placed on Outbound queue and bring to inbound queue. This is having advantage that to process high volume message you will get better performance but disadvantage is when there is no receiver inbound queue is blocked.
    It can be a issue related to connection. Please check with the RFC you have for proxy and IE RFC's
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Nov 22, 2008 11:44 PM

  • How to set a frame size

    Hi
    I am tring to create a window with some menus on it. I have set a size to the window as (400,400). The trouble is when the application is run a small sized window is displayed on the top left corner as opposed to a 400*400 window. Although I can drag the widow to expand it, I was wondering if there was a way to set window's size.
    Any help is greatly appreciated.
    Thanks in advance
    * GUI.java
    package pick;
    import java.awt.Frame;
    import java.awt.Menu;
    import java.awt.MenuBar;
    import java.awt.MenuItem;
    import java.awt.Panel;
    import java.awt.event.ActionEvent;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowListener;
    import Drawing2d.*;
    * @author venkat
    public class GUI{
        public Frame frame = new Frame();
        boolean partButtons = false;
        Pick1 pick1;
         Sketch sketch;
    //   JOptionPane AB = new JOptionPane("sgadfg ",javax.swing.JOptionPane.PLAIN_MESSAGE);
    //   java.awt.Dialog AboutD =new java.awt.Dialog(frame);
        public GUI(){
            //Menubar
            MenuBar mb = new MenuBar();
            //Menus
            Menu File = new Menu("File");
    //      File.setLabel("File");
            mb.add(File);
            Menu Edit = new Menu();
            Edit.setLabel("Edit");
            mb.add(Edit);
            Menu View = new Menu();
            View.setLabel("View");
            mb.add(View);
                Menu Orient = new Menu();
                Orient.setLabel("Orient");
                View.add(Orient);
            Menu Insert = new Menu();
            Insert.setLabel("Insert");
            mb.add(Insert);
            Menu Help = new Menu();
            Help.setLabel("Help");
            mb.add(Help);       
            frame.setSize(400,400);
            frame.pack();
            frame.setVisible(true);
            frame.addWindowListener(new MyWindowListener());
    class MyWindowListener implements WindowListener {
    //Do nothing methods required by interface
    public void windowActivated(WindowEvent e) {}
    public void windowDeactivated(WindowEvent e) {}
    public void windowIconified(WindowEvent e) {}
    public void windowDeiconified(WindowEvent e) {}
    public void windowOpened(WindowEvent e) {}
    public void windowClosed(WindowEvent e) {}
    //override windowClosing method to exit program
    public void windowClosing(WindowEvent e) {
        System.exit(0); //normal exit
    }

            frame.setSize(400,400);
            //frame.pack();//<----------------
            frame.setVisible(true);

  • Sga max size is not changed.

    We use Oracle 11gr2 on win2008R2.
    Our member said that he set sga max size by
    alter system set sga_max_size scope=spfile; max size to 6GB.
    And he restared that OS and DB instance , then
    show parameters sga_max_size was 7.6GB.
    we use  dynamic SGA and automatic memory management.
    Is it natural things ? If so, I would like to explaint about to our customer.
    Why the show parameters sga_max_size was 7.6GB ?

    DUPLICATE POST. please continue with our original post. Please mark this question answered and check the following link:
    sga max size is different

  • Sga max size is different

    We use Oracle 11gr2 on win2008R2.
    Our member set sga max size by
    alter system set sga_max_size scope=spfile; max size to 6GB.
    And we restared that OS and DB instance , then
    show parameters sga_max_size was 7.6GB
    Why is that ?

    If MEMORY_TARGET is set to a non-zero value:
    If SGA_TARGET and PGA_AGGREGATE_TARGET are set, they will be considered the minimum values for the sizes of SGA and the PGA respectively. MEMORY_TARGET values can range from SGA_TARGET + PGA_AGGREGATE_TARGET to MEMORY_MAX_TARGET.
    Now check if your memory_target is set.
    Read this metalink note as well:
    Automatic Memory Management (AMM) on 11g (Doc ID 443746.1)

  • [svn:fx-trunk] 13276: Min/ Max size fixes for AIR Window and WindowedApplication.

    Revision: 13276
    Revision: 13276
    Author:   [email protected]
    Date:     2010-01-05 07:18:31 -0800 (Tue, 05 Jan 2010)
    Log Message:
    Min/Max size fixes for AIR Window and WindowedApplication.
    AIR won?\226?\128?\153t allow you to set the min width greater than the current max width (same is true for height). You also can?\226?\128?\153t set the max width less than the current min width (same is true for height). The code that sets nativeWindow.minSize and nativeWindow.maxSize has been modified to take this into account.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-24566
    Reviewer: Corey
    Tests run: checkintests, apollo/spark/components/Window.as, apollo/spark/components/WindowedApplication.as, apollo/Window, apollo/WindowedApplication
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24566
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/Window.as
        flex/sdk/trunk/frameworks/projects/airspark/src/spark/components/WindowedApplication.as

    THank you , Nancy. Appreciate the input.
    So instead of this:
    <a class="brand" href="index.html"><img src="../img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    Would it be something like this?:
    <a class="brand" href="index.html"><img src="http://ConsumersAdvocate/img/logo-ca.png"alt="Consumers Advocate Review"> </a>
    And if I do that, is there a way to cope with that locally so that DW can still display the images?
    jeff

  • How do I set the Page size default in Adobe Reader using Window 8?

    I need to set the page size everytime I go to print from my Adobe Reader in my windows 8. Is there a way to set the page I want letter (8.5 by 11) as a default? So I do not have to do this everytime I print something?

    I can't help but wonder why Adobe doesn't respond to this - at this point there are 464 views of this item and still no answer. I have the same problem and it's a big irritation to have to set the duplex mode everytime I want to print!

  • HT5639 I am attempting to install windows 7 ultimate on a mid2012 production macbook pro using Bootcamp 5 in Mountain Lion. Whenever I set the partition size and tell it to continue, the program quits unexpectedly. I have done this about 5 times now. Sugg

    The lead-in above pretty much states the problem. I am attempting to install Windows 7 from a disk, but that is not the issue. Boot Camp 5 just quits and reopens. I then repeat. Help.

    I am about to run specialized GIS software that may or may not need the full machine resources. I am an attorney who uses QuickBooks for my accounting. The Mac version does not do as much as the Windows version. This is from both Apple and Quick Books professionals. I am using Parallels Desktop version 8 at this time. It does not support QuickBooks Windows version per Parallels. Any other questions? I am a highly competent PC user who is new to Macs. I am entitled to my own configuration choices. That said, I know when I need help which is now.
    As to the free space issue I have 665.18 GB free space out of 749.3 GB on the drive. I am not trying to run the 32 bit version. I know that it requires the 64 bit version. Besides, it does not get that far in the process. As I said Boot Camp asssitant terminates unexpectedly as soon as you hit the continue button after setting the partition size. Therefore I conclude that it does not have a chance to see which version of Windows that I am using. I am using Windows 7 Ultimate 64 bit version in the virtual engine (to use Parallels speak), but again Boot Camp would not see that since it is not running. It can't run at the momenet because Apple just installed a new hard drive and I have just restored the data from TIme Machine and Parallels needs reactivated, which I have not done yet deliberatley. With all of this addtiional information do you have any further suggestions? Thanks for your time and interest my issue.

  • How to set a fixed size window, so that moving 2D pictures wouldnt go off?

    Hi
    I dont if this question has been asked or no & also not sure if its right to be posted here as my problem is a java 2D graphics problem in swing environment.
    I want to know is how can i set the window to a fixed size with boundaries such that my graphics 2D picture in the swing window will not go off the edges of window when i do some transformations with the 2D picture.
    For e.g:
    so far ive got a frame window of size 350 by 350 with my 2D picture inside it made up of shapes etc...
    when i apply some transformation to it (moving it) for a distance it goes disappeared off window beyond 350 and will come back if i move it back.
    So how do i restrict the window so that when picture reaches the edge, it will not be able to move any further?
    Do i set some specific bounds to the JFrame?
    i hope i've explained it properly
    Thanks

    In a 2D coordinate system the horizontal values are represented by some letter, usually x. In the same coordinate system the vertical values are classically represented by y.
    Note: In your code, if you wish, you can replace x and y with anything you desire--p and q or perhaps jeff and alice or any variable name you wish, but for simplicity, and usually ease of understanding because almost everyone has had 100's of math problems drilled into their head with (x, y), x and y are used as convention.
    In Java the screen coordinates run from 0 to the width-1 for x and 0 to height-1 for y of the component you are using to display.
    So logically when you have a value of x or y that goes beyond the addressable bounds of your display, then you have to make some type of adjustment--when your value dips below 0, you reset it to 0, when your value goes above what ever width-1 or height-1 then you have to set that value to width-1 or height-1.
    This all assumes that when you hit the wall, floor, or ceiling you stick there until you change directions--if you wish to wrap then you set your value to the opposite bound--so if you go below 0, you would then pop out back in on the right side--your appropriate x would be set to width-1 instead of 0 and in the case of y going below 0 your y would be set to height-1. This is also to say that when you descend below your minimum, then you would pop back out on the opposite side you went out on--so x greater then width-1 would get set to 0 and y greater than height-1 would get set to 0.
    That is not even a start on if you want to include elastic collisions, angle of impact, any type of deceleration force, or anything else.
    In any case... I would recommend that you add more math to your studies, I've never met an engineer or computer science grad that said: "Wow, I really regret taking all that math in college (or HS), I never use it."

  • What's the sga max size for a 32bit windows server?

    Hi,
    I have a 32bit Windows Server with 16G of RAM... What is the SGA max size that I can setup?

    Depending on your version of Windows and your version of Oracle there are methods to increase the usuable memory available to Oracle including the MS \3GB and \PAE switches and the AWE memory extention feature.
    Oracle has notes on the subject:
    Windows Memory Configuration: 32-bit and 64-bit 873752.1 plus notes 46053.1 and 46001.1
    How to use Very Large Memory, higher than 4Gb on Windows 2003 32 bit #342080.1
    HTH -- Mark D Powell --

  • How to control/set window size of applications?

    When I press "command-shift-A" my application folder opens on the desktop. However, it always opens in a very small size requiring me to enlarge the window to see the entire folder. How can I set a default size of the entire screen when this window opens? thank you.

    Open the folder and resize it to what you want. Now close it.
    It should open to that size. If it doesn't, you've got some problems which I'll have to search around cuz I can't remember how to fix them.

Maybe you are looking for

  • Error while deploying ADSSAP component

    Hi all, Iam getting the following error while deploying ADSSAP component in Java Stack Failed deployment of SDAs: development component 'PDFManipulation'/'com.adobe'/'Adobe Systems'/'710.20060914230653.122540'/'0' : aborted Please help me out in solv

  • XML FORM  -  How to save read-only controls with a default value

    Hello everybody, I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common i

  • Display of total in Main window in Sapscript

    Hello guys, can you please help me with the following? Working with Standard transaction F.2c standard program RFDUZI00 whereby I have to make a copy of the standard Sapscript F_DUZI_01 for a specific company code and modify its layout. Requirement i

  • Legally valid electronic signatures

    My boss has asked me to research legally valid electronic signatures. I was wondering if Adobe provided these so they can be used to sign certain documents for business and banking?

  • I have os x 10.5.8 and need to upgrade to 10.6 Any suggestions?

    Hello my husband needs snow leopard not mountain lion but I can not find a way to download this software for my mac that has os x 10.5.8 any suggestions? Thank you in advance.