Question about resizing a window

hi,
i have a null-layout window which is resizable. the origin size is e.g. 500x300. my question: how can i manage it that resizing is only possible up to specific values for height and width, e.g. 300x150? in other words: i want to define the smallest possible size to which my window could be minimized.
thanks for every advice!
kind regards,
reinhold

hi and thanks for your replies!
sorry, i think that the desciption of my problem was not exact enough. here a second attemt: my frame is an input-mask with (for the time being) five buttons on the right side ("add", "edit", "clear", "update" and "close"). the first (upper) three buttons move their x-position dynamic when the frame is enlarged in width. they have a fixed y-pos. the lower two buttons move also dynamic: when the frame is enlarged in width they behave as the upper three buttons but when the frame is enlarged in height they change their y-pos dynamic to the frame's height. so they 'move away' in y-pos from the other three buttons. my first problem was, that when i reduce the frames height then the lower two buttons can be moved over the upper three buttons. i have solved this with the following componentListener:
contentPane.addComponentListener(new ComponentAdapter() {
    public void componentResized(ComponentEvent event) {
         // position of the upper 3 buttons:  x-pos dynamic to frame.width, y-pos. fixed
         addButton.setBounds(event.getComponent().getWidth()-120,15,100,20);
         editButton.setBounds(event.getComponent().getWidth()-120,45,100,20);
         deleteButton.setBounds(event.getComponent().getWidth()-120,75,100,20);
         // position of the lower 2 buttons: x-pos dynamic to frame.width, y-pos dynamic to frame.height
         updateButton.setBounds(event.getComponent().getWidth()-120,event.getComponent().getHeight()-60,100,20);
         closeButton.setBounds(event.getComponent().getWidth()-120,event.getComponent().getHeight()-30,100,20);
         // check minimal frame.height (165). if reached, fix y-pos of the lower two buttons
         // so they cannot be moved over the upper three buttons     
         if (event.getComponent().getHeight() <=165) {
             updateButton.setBounds(event.getComponent().getWidth()-120,105,100,20);
             closeButton.setBounds(event.getComponent().getWidth()-120,135,100,20);
});    that works fine, but my next (and main-) problem is, that i want to make it possible, that -if the height of 165 is reached- the BORDER of the frame could not be downsized anymore so that all 5 buttons remain allways visible. therefor i've found no solution in the forum's threads.
thanks for all tips!
reinhold

Similar Messages

  • My apologies  & question about resizing pic for wallpaper

    Guess what I wrote about resizing wallpaper was removed.  Didn't realize the way I wrote it was not allowed. I apologize to the list.
    What I Want to know is how to resize the wallpaper when trying to use a picture. It seems to blow it up making it unusable.  Can anyone offer a suggestion to get past this issue?
    Thanks

    Guess what I wrote about resizing wallpaper was removed.  Didn't realize the way I wrote it was not allowed. I apologize to the list.
    What I Want to know is how to resize the wallpaper when trying to use a picture. It seems to blow it up making it unusable.  Can anyone offer a suggestion to get past this issue?
    Thanks

  • A Question About Resizing Windows

    I'm a bit new to Mac so please excuse me if my question is a no-brainer. When I open a window in OS X, such as opening the applications folder, the window is always a little too narrow so I stretch it out a bit so that all my app icons are not cut off. However, upon opening it again I find that it has reverted back to its original size and I must resize it once again. This happens with Safari, Firefox, and a few other windows as well. Is there a way on the Mac to set the size and shape that a window will open up to and save it so I don't have to go around resizing everything? Thanks.

    Hi -
    Try minimizing the window (click the little '-' symbol in the upper left window corner) then when it drops into your dock, click on it again and it should open to where you initially minimized it from. Whenever you open a new window it should now open to this preferred size.
    Hope that works.

  • Urgent question about resizing videos in Adobe Premiere

    Hello, forgive me for asking such a noob question but i have a presentation due in about 10 hrs and Adobe Premiere is giving me some headaches with the video i'm trying to make!
    I am trying to alter the dimensions of a movie in the 'monitor' window (the objective being to put 2 different movies side by side in the same timeline, but that's irrelevent). Screenshot is below
    http://s5.largeimagehost.com/display...sXUF&skey=nv28
    I've seen it being done before - their should be a border around the frame in the 'Sequence 01' tab that lets you resize it with your mouse. But It's not appearing for me... . is their some hot key or something..? It's probably something really obvious but i can't find it...

    You will also find links to many free tutorials in the
    Premiere Pro Wiki that will quickly
    show you how things are done in PPro, including picture-in-picture effects.
    Cheers
    Eddie
    Forum FAQ
    Premiere Pro Wiki
    - Over 250 frequently answered questions
    - Over 100 free tutorials
    - Maintained by editors like
    you

  • Question about FireFox Hello - window view

    Hi!
    I have a question concerning FireFox Hello.
    When I invite somebody to a conversation, 'small window' view is enabled (I mean video conversation is shown in small window in the left bottom corner of my browser).
    On the other hand, when I was invited, the conversation was displayed in whole tab.
    Is there an option to choose / change proper view?
    Thank you in advance.
    Greetings!

    When you've got the small window, you can expand it out to a separate window and you can then resize it however you wish. See the image below - its the arrow that sits next to the X and points to the top-right.
    You can't currently put the tab into the small window, although we are currently discussing using the same small window UX in future versions of Firefox so you won't have the tab view (but you will be able to pop-out etc).

  • Questions about using Styles Window for formatting a book in Apple Works.

    Help says "You can create your own styles in any document type." Not clear on how to do that.
    I wish to have one Style or group of Styles associated with one document of say 500 pages for a book. Each chapter Heading. as a single column layout, is separated by Section Breaks from previous and following text in 2 column layout.
    Question 1. How do I make Styles window settings (Edit/Done) specific for this entire document? Can I edit settings in Styles window and have them remain specific and locked to this particular document? Or are the Styles window settings constant across all documents?
    Question 2. (If Styles window settings are not specific and locked to this document) Do I need to make a NEW Style for each purpose within the document, as in Book Heading, Book Subheading, Book Body, Book special paragraph style, and etc.
    Question 3. When importing multiple sections of the work (by copy and paste) from other AW documents how can I have the imported text follow the book’s Style settings (and vice versa how to keep tab settings that are specific in some areas). Sometimes the imported work refuses to conform to the Book document’s style say line spacing for instance.
    Thank you
    Hilary Fish
    iBook G4 Mac OS X (10.4.8) AppleWorks 6.2.9

    Hi Hilary,
    I haven't used styles enough to give definitive answers to your questions, but I'm sure others will join in and correct any errors in what follows.
    A "Style" is essentially a set of paragraph level format settings that can be collectively applied to a paragraph or contiguous set of paragraphs as a set, rather than having to apply each attribute individually. Once a style is applied to various parts of a document, changes made to the style specification will apply to every part of the document to which that style has been applied.
    AppleWorks also includes two other types of Styles—Outline styles (Diamond, Harvard and Legal), used to identify hierarchical levels of paragraphs, and Table styles, used to format tables.
    Question 1: From the Help article "Using Styles":
    You can copy the collection of all the styles available in a document and make them available in another document. This is called exporting and importing a stylesheet.
    I read this as saying that styles you create are specific to the document in which they are created, but may be exported to other documents. "Other documents" would includes documents saved as templates, which could be used to create the various sections of a book.
    Question 2:
    As the set of styles is specific to the document it is created in (or into which it is imported), you can probably leave "Book " off the names of the styles (but may decide that leaving it on makes it easier to know what the styles are for). You will need to use an existing style or create a new one for each purpose within the document.
    Question 3:
    Copy copies the text AND formatting of the selected material.
    Paste pastes the text AND formatting of the selected material.
    Paste also inserts the pasted material into the target document at the insertion point. All of the pasted material goes into the same Section. If the pasted material includes a section break, then a new section will be created in the target document.
    If you export the set of styles from the master document and apply them to the parts of the source document before transferring the material to the master document, I suspect the formatting will be carried over.
    Another possibility is to leave the source document with no formatting at all beyond paragraph breaks, and to apply the formatting (styles) after transferring the text.
    Regards,
    Barry

  • Easy Question about resizing video

    I searched 'Resizing Video' and there was too many unrelated results to a really simple question.
    In my old program "Premiere', to resize and move a video around was very easy. You could adjust the scale and X-Y values numerically, or you could use a Free Transform like in Photoshop. Simply dragging bounding boxes for size and aspect and also dragging the clip to decide it's location.
    The only way I know how to do this in FCP is I double click a clip in the sequence, it loads into the viewer, I go to the Motion Tab and then I can adjust the Scale, which is cool. But then I'm left with the Distort section to adjust position (and aspect if need be). In the Distort section there are 8 numeric fields of info to figure out and fill out just to get one clip in a different position correctly.
    I'm thinking there must be another way to adjust the location (or aspect) of a video clip without spending a bit of time on exact coordinates, I want to eye-ball where I want the clip to go and simply move it there. Is the Distort feature the only way to do this? If not, which is the fastest way to move and change the dimension of a clip.
    Thanks for reading, I hope there is another way, I'm not use to these calculations and they're slowing me down.
    Monty

    I searched 'Resizing Video' and there was too many unrelated results to a really simple question.
    That's because it's not a simple question at all and yet every one of those threads was related to the OP's question. As you discovered, there are lots of ways to interpret "resize," during capture, editing, effects, output, viewing, encoding, printing. But the solution was even simpler than you thought. All you had to do was open the manual or the online help system. Start taking the manuals to the gym with you. FCP is not Premiere. You're going to hate FCP, you're going to love FCP but it will never behave like Premiere beyond the elements of the functional paradigm. Forget Premiere.
    bogiesan

  • Questions about resizing and uploading pictures ...

    I have set up a desktop folder, and can store my resized pictures there through the export function in iPhoto.  When I export though, there doesn't seem to be any way to export directly to that folder.  Instead, I have to export to the desktop, then drag all those files into my desktop folder.  Is there any way to export my resized photos directly into that folder without having to first go to the desktop, then the folder?  It just seems like extra steps.
    Another nuisance I'm encountering is uploading to sites like eBay and PhotoBucket.  If I chose to browse files on my computer, all that opens is the iPhoto icon rather than individual image files.  I know I can drag and drop, but is there any way of directly accessing either the individual images in iPhoto or the desktop shortcut which contains my resized images?
    I am coming off years of working with Windows, and their system of simply opening My Pictures and selecting the images you want to upload seems much simpler than this.
    I am running OS X Mavericks with a MacBook Air 2013.
    Thanks for any help.

    The iPhoto export dialogue is the same as any other. I wonder if you're seeing this:
    When what you want is this:
    Which allows you to access the specific folders you want. You get this by clicking the button indicated.
    As for uploading photos:
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491
    It's the first one you want...
    You can work your photos on your Mac just like you did on Windows, but you've chosen to use a database with lossless processing. So there is a learnign curve if you change not only your OS but you're entire system of managing your photos.

  • File Saving.. question about Mac and Windows..

    Hi all!
    Just a quick question, is there anything that needs to be considered between saving a file from a java application on either Mac or Windows? Or does java "do" the work and I don't have to worry?
    So far I saved some text from using my application on a Mac but havent got to a PC yet, and would rather make the changes now..
    Thanks

    FYI, this is just on my iphone, not when I view through the web or on my iPad. This is how it looks on my iPhone though... 2 iCloud accounts? Please help.

  • Question about resizing a 'decorative' object

    Hi all
    Please bear with me this is tricky to describe.
    I have on a form I have obtained from formcentral an attractive banner: its just a nice colour nothing else but it spans the entire width of the form and is about 2 inches high.
    I wanted to copy & paste this and then shorten the height to 0.5 inches, but I have no height or width handles, just the four corner handles so the resizing maintains the aspect ration and I'm left with a copy which is the correct height but half or less of the width I need.... so I do multiple copies of these just to get coverage across the width of the form.
    This seems daft but I cannot see how to do this slicker....
    Anybody know please?
    thanks
    george

    Hi all
    Please bear with me this is tricky to describe.
    I have on a form I have obtained from formcentral an attractive banner: its just a nice colour nothing else but it spans the entire width of the form and is about 2 inches high.
    I wanted to copy & paste this and then shorten the height to 0.5 inches, but I have no height or width handles, just the four corner handles so the resizing maintains the aspect ration and I'm left with a copy which is the correct height but half or less of the width I need.... so I do multiple copies of these just to get coverage across the width of the form.
    This seems daft but I cannot see how to do this slicker....
    Anybody know please?
    thanks
    george

  • Disregard my previous question about downloading the Windows version onto a disk. My friend was able to download it herself with dial-up.

    Earlier today I asked if it would be possible to download the Windows version of Thunderbird onto a disk using my Mac. My friend just called up and said she successfully downloaded it herself. Sorry for the false alarm.

    all communication on this can be located here:
    https://support.mozilla.org/en-US/questions/1008956?esab=a&s=&r=0&as=s

  • Question about "Apply Now" window in Photoshop CS6

    Is there a way to turn off such warning or notification windows like the "Apply Now" Yes or No window that appears after certain changes, such as resizing an image? Also frustrating that I have to reselect the Select tool in order for the change to take place. thanks for any help. I am a former Elements 8 to CS6 user, so I may be missing something.

    Never having used a discussion board before, I am not sure how to even make a response to yours, but let’s see if this works. If I am in a .psd file, and say I resize an image…a photo. In order to make the resize take effect, I cannot just click my cursor onto another area of the file, as it won’t release that particular layer I am on. I have to go back to my tool box and select the Pointer Tool or select too again. Once I do that, Photoshop sends up a window asking if I want to apply my changes…every time. Does this make sense?

  • Question about pop up windows

    Every time I log onto the solaris system at my college, there are about 25 windows that pop up. I can't do anything else until I've cleared them all off of the screen, because they slow down the computer. If anyone can offer any help to get rid of these things, I would greatly appreciate it. Just remember that I'm not a computer savvy person in the least, so the simpler the explaination, the better.
                             Thanks again!,
                             Heather

    What kind of windows are they? What do they say?

  • Question about 23" ACD, windows XP, Bios & AGP card

    I bought a 23" ACD for my wife's computer, not realizing that an issue with displaying the BIOS existed. ( We Mac users are deprived of messing with BIOS, fortunately).
    Two questions.
    As the last thread about this is nearly a year old, is there anyone out there with an AGP card that successfully sees the BIOS on boot-up and has a card useful for intensive PowerPt use. Could you please post the exact card used.
    And, anyone care to explain why some cards cannot show the BIOS on boot-up while others can.
    thanks in advance.
    PB_G4   Mac OS X (10.4.6)  

    No takers?

  • Question about CS2 on Windows Vista 64 bit

    Hi! I am having the following problem with trying to use CS2 on a new machine running Windows Vista (64bit). Can anyone shed some light or suggest a solution? Thanks!
    I recently tried to install my CS2 suite on an HP G70t, running 64-bit Windows Vista. I installed, uninstalled, and installed again the CS2 suite. The installation goes OK, but when I start the programs, Illustrator simply shuts down, InDesign gives an error message that the serial number is invalid, and Photshop gives the followng error message: "Your Photoshop username, organization, or serial number is missing or invalid. The application
    cannot continue and must now exit. " I verfied my activation and registration with a phone call to HP Customer Service --these are fine. I tried to use the Adobe web support, but they refuse to provide any assistance for CS2.

    Thanks, Michael. I had read in one of the Adobe documents that although CS2
    didn't support Vista, it had been reported that it did upload and work with
    minimal problems. Perhaps that just isn't true.
    Appreciate your response.
    Tom
    Quoting Michael Kazlow <[email protected]>:
    CS2 is not Vista compatible no less Vista 64 compatible.
    >

Maybe you are looking for

  • Role assignment not working

    Hi everyone, I am trying to assign different roles to different users for GRC - Risk Management 10.0; however it seems like standard roles don't have any affect on type of activity. I have maintained various levels of roles (e.g. risk owner, risk exp

  • Splitting to multiple IDoc

    hi,   my scenrio is flie to idoc. i recevie the file and i want to split the message coming from the file to different idoc based on a field(e.g doc. number). i am using BPM..plz suggest me the steps type that is necessary for this process... thanks.

  • Monitoring SNMP Traps from Windows Server

    Hello All im looking for a way to monitor an application that runs with os windows server 2003 and windows 2008 r2 and send its alarms as a snmp traps with system center operations maanger 2012 R2. in the scom 2007 environment i could discover the se

  • Cancel items from CRM order using CRMXIF_ORDER_SAVE

    Hi All, My requirement is to modify an existing crm order through 'CRMXIF_ORDER_SAVE'.  I need to copy this FM and modify so that whenever it is called from XI all the existing items are cancelled and new items from the xml are added. Can anyone give

  • An error occured while creating sales order "Enter sold-to in R/3"

    when creating a sales order using CRM even though we have passed Sold-to ship-to bill-to using partner table we are getting an error Enter Sold-to in R/3