How do you change the size of a JFrame?

I have some code using a jframe for an application creating buttons, but i want to also have some graphics in there, and I was wondering if there was a way to change the size of the jframe.

Use JFrame.setSize().
Check the JavaDocs for the method signatures.
Dave

Similar Messages

  • How do you change the size of pictures?

    Hello,
    I'm a new Mac user. How do you change the size of pictures in iPhoto? Sometimes when sending e-mails, the picture files are extremely large and take a long time to load... Is there any way you can make the picture or file smaller? Like on a PC, you can open the photo in the Paint program and just reduce the size... Is there anything like this for the Mac?
    Thanks!

    Assuming that you're accessing your email package from INSIDE iPhoto, you're given a choice of picture sizes. Personally, I've found "medium" to be a good compromise but you might prefer "small" (iPhoto will tell you the file size).
    If you don't know what I'm talking about, first go iPhoto Preferences > General and select your email client. Then, go to the View menu and select Show in Toolbar > Email.

  • How do you change the size of the font in the menu bar running Maverick?

    On Maverick, how do you change the size of the menu bar font?

    Sent my feedback already:
    Thank you for your feedback on the MacBook Pro.
    We cannot respond to you personally, but please know that your message has been received and will be reviewed by the MacBook Pro Team. If we need to follow up with you on your ideas for improving the MacBook Pro, we will contact you directly.
    We appreciate your assistance in making the MacBook Pro a great computer.
    MacBook Pro Team
    Apple

  • How do you change the size of the font in iMessage?

    How do you change the size of the font in iMessage?

    I'VE DONE IT!
    I found 2 little boxes floating outside of each of the englarge pasteboards.
    i foudn them using select all, and then deleting the boxes.
    FINALLY! Thanks for all your help though Hopefully this will help someone else!

  • How do you change the size of a photo in a document?

    Hello
    I've pasted a photo into a document I'm typing but the photo is too big.  How do I change the size of the photo?
    Thanks

    TextEdit is not a very sophisticated program. As far as I know, there's no way to resize an image on the fly in TextEdit, so you'll have to follow Shotgun00's advice.
    I would advise not using TextEdit for anything real. Buy yourself a copy of Pages from the App Store instead, you'll be much happier with its capabilities if you intend to create complex documents containing images and text.

  • How do you change the size and font of the menu items in iweb.

    as i was working on my website recently i noticed that i could not figure out how to change the automatic menu bar at the top of the screen. i would like to make the font smaller and closer together and even centered so i can put more pages on the same line without it looking silly. please help.

    iweb2 navbar is rendered by javascript widget, therefore you can change navbar font style with javascript; this is an efficient way to change navbar font style.
    Copy and paste the following into your pages using HTML Snippet:
    <script type = 'text/javascript'>
    function changeNavbar() {
    navCSS = parent.document.getElementById('widget0-navbar');
    navCSS.style.fontSize = '0.75em'; // font size, change to less than 1em to change font smaller;
    navCSSbg = parent.document.getElementById('widget0-bg');
    navCSSbg.style.textAlign = 'center'; // navbar list alignment;
    clearInterval(chkNavbar);
    chkNavbar = setInterval('changeNavbar()', 500);
    note: You won't see the changes in iweb, but you will see the change when view the pages online - after publishing.

  • How do you change the size of a photo file?

    I volunteer for an animal rescue organization, and I need to post some digital photos I took of some kittens I am fostering on petfinder.org as soon as possible. The photos I have are too large for the website to handle - I need to reduce the file size before they will accept them. How do I do this? I need to find out as quickly as I can so I can get these little guys posted and work on finding them homes. Any help would be extremely appreciated! (I know I have an old iPhoto program - should I be embarrassed? - and an old computer ... wish I had better equipment, believe me!)

    tinyfoo,
    the fastes and easiest way to reduce the size (pixels) is to go to your:
    iPhoto Menu > Share > Email > you should choose small or medium... and mail it to another account, open email, copy to desktop and you've got a reduced size of photo that will work nicely on most websites... you'll notice that directly below this window, you will see how large or small the file has gotten "Estimated Size", this refers to the same number of 500 in your post...
    You can actually do it another way, is to > Share > Export > choose "Scale No Larger Than:", here you need to ask your webmaster what size is preferred... fill in and export to your desktop...
    Otherwise, you would need to use an image edting software to "Optimize" image... Personally, I would use the email function... Best wishes on your project, Rick

  • How do you change the size of a picture?

    Product name and number: Photosmart Premium Fax e-ALL IN-ONE C410 series, C410a from SusieQ6

    I would be glad to help you out with this, but there is a bit more information i would need.
    Where are you attempting to change the picture from? Is it from the front panel, eprinting, a mobile device, or a windows pc/mac computer?
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • How do you change the size of display in Firefox, I get Hotmail too small and Flikr too big

    I get the font size too small on Hotmail when viewing through Firefox. The screen size and font size is too big when viewing Flickr through Firefox. I am sure it is a simple question of adjusting zoom and I have seen it change while I am online. I just can't work out what I did to change it.

    Use NoSquint: https://addons.mozilla.org/en-US/firefox/addon/nosquint/

  • How do you change the size of an external monitor?

    If I plug my mac into my Samsung monitor and mirror the image it enlarges the image on the Samsung monitor. How do I make it so it is the same resolution of my mac.

    That is how mirrored mode works. Your computer screen, including resolution, is mirrored to your external monitor. So what ever the resolution of your computer screen this is the resolution you will get on your external monitor.
    Turn off mirrored mode and use extended display. When using extended display you can set your computer and external monitor screen resolutions independently. So each can be using its native resolution for best results on each.

  • How do you change the default size of the print batch size for mail merge in Publisher 2010?

    I appended this question to another thread with the same topic but have not received a reply, so I'll try with a new question. Publisher 2010, when doing mail merge, will only merge and print two records at a time. How do you change the default size of
    the print batch size? This is for a 4 page document, 8 1/2 x 11, printed two sides on 11 x 17. I've tried all the suggestions that were in the other thread. The response that was marked as the answer by the moderator is incorrect and does not work. Nothing
    suggested in that thread works. A registry fix that worked for Publisher 2003 won't work because the print batch size key does not exist in the registry for Pub 2010. At least not that I can find. Printing to an XPS document doesn't work. It asks for a filename,
    prints 2 records, asks for new file name, prints 2 records, asks for new file name, and so on. The same for printing to a PDF document. Merging to a new Pub document doesn't work. When I print that job every other sheet is turned over. I.e., sheet one has
    pages 1 & 3 on top, next sheet has 3 & 4 on top, and so on. This makes it impossible to run them through the folder. The same thing happens when I print that complete merged document to XPS or PDF. I have the latest drivers installed for our printer, a Toshiba
    2500C copier/printer connected via network. What do I need to do to to change the batch size to something reasonable, like 100 records?

    It's been two weeks since I posted this question. What does it take to get an answer? I cannot believe it's being ignored, nor can I believe that someone in MS doesn't have an answer.

  • How do you change the ont size

    How do you change the font size for one word ?

    Basically, you need to wrap the word in a <span> tag, and apply either a class or an inline style to the span. Using a class is better because you can reuse it in other pages, or other parts of the same page. Also, changing the font size in the class will apply the changes to all instances of the class. With an inline style, you have to change each one individually.
    To wrap a word in a <span> tag, select the word, then press Ctrl+T (Cmd+T on a Mac) to bring up the Wrap Tag dialog. Type "sp" (without the quotes), and press Enter twice. Then create a class using the CSS Designer. Apply the class to the word by selecting it again, and select the class from the Class drop-down menu in the Property inspector.
    To create an inline style, select the word, and click the CSS button on the left of the Property inspector. Select the font size you want from the Size drop-down menu. If the size you want isn't listed, just type the value in the Size field.

  • HOW DO YOU CHANGE THE WINDOW SIZE OF EBUSINESS SUITE ON STARTUP

    HOW DO YOU CHANGE THE WINDOW SIZE OF EBUSINESS SUITE ON STARTUP
    How do you change the window size for Ebusiness Suite after you log in. Currently it displays at 100% of the screen. I want to set it smaller, at some %

    I don't know if there is a way to set this. Some user's may prefer different sizes of window, depending on their job duties. For example, we have 170 Systems document management integrated with purchasing and payables so users shrink the Oracle window to fill about 60% of the screen while 170 uses the remaining 40% to display the scanned document.

  • How do you change the font size?

    This is a rather simple question.
    How do you change the font size in flex builder 2?
    In the preferences for flex>editors there is no option to
    change any font settings.
    i'm sitting quite far away from my LCD and can hardly make
    out the text.

    Window -> Preferences -> General ->Colors and
    fonts

  • How can you change the font size in the application and system headers?

    How can you change the font size in the application and system headers?  I searched the system and finder prefs to no avail.  Changing the screen density is not a good option.
    Thanks

    I downloaded Tinkertool.  Found the font section and increased the size of most selections.  The only thing that changed that I can see is the window label.  The apple line, bookmarks line, the tool bar in safari are all the same---font size of about 4.  Found the finder "show view options" but that didn't seem to change anything either.  I'll keep working.  Restarted all apps after changes as well.

Maybe you are looking for

  • Itunes Match deletes albums and artwork from the base PC

    I use Windows Seven and have immaculate metadata on all songs.  No albums are broken up and everything works perfectly.  When I tried to use the itunes match feature, a bunch of old albums that I imported from the original CD's were deleted.  In addi

  • Validating XML Payload

    Hi, I have written a document/literal style web service that takes DOM Document as input and returns a DOM Document . In doc/lit style web services the DOM document will be opened and passed as XML payload in the request message. I want to validate t

  • Vendor Master Creation in Background..or by supressing on-line mode..

    Hi, Can anyone tell How to create Vendor Master in  Background OR by suppressing on-line mode. ?

  • IPhone 4S - iMessage & FaceTime not working.

    My FaceTime and iMessages are not working. (iMessages show as "Not Delivered" and will not receive messages either.) Regular texts work fine though. FaceTime loads for ~ 1 second and D/Cs. I'm on the iPhone 4S (White). Verizon. I have done many thing

  • Texts in billing document

    Hi Friends, Where can I set that the texts in the billing document are determined from the corresponding delivery document and not from the sales order? Thanks in advance