ImageIcon does not fill the whole button

Hi all,
i have a button, and i want an image to fill the whole button (without any space between borders and image).
How i should do it?
private JButton botonEnviar = new JButton(new ImageIcon("send.gif"));
JPanel botonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 0, 0));
botonPanel.add(botonEnviar);Thanks

Try the following.
botonEnviar.setMargins(new Insets(0, 0, 0, 0));
botonEnviar.setBorder(...);

Similar Messages

  • After installing Lion, my log in screen is a square in the upper left hand corner with my log in options.  It does not fill the whole screen.  Why?

    On my MacBook Pro, I install Lion.  Now when I turn on my MacBook Pro, the log on screen is a square in the upper left hand cornor.  It does show
    all my log on names and will work when I sign in, but I don't have this same problem on my IMac so I am assuming something is not right.  Does anyone
    else have this problem?

    You're welcome

  • Dvd burned in premiere pro cc does not fill the screen. Desire a 4:3 aspect ratio

    I am using premiere pro cc. I burned a dvd several times,trying different presets. On each occasion the dvd never fills the screen. It does not lool like letterbox ( 16 x 9 ). There is space all around the picture / video. Need assistance fast,project is already late.Thanks in advance.
    Theo Smith

    I sent the screenshot via an e-mail attachment. I wasn't aware  that
    attachments could not be forwarded this way. I will send it again. First  time
    I've utilized this service.
    In a message dated 3/8/2015 10:15:23 A.M. Eastern Daylight Time, 
    [email protected] writes:
    Dvd  burned in premiere pro cc does not fill the screen. Desire a 4:3
    aspect  ratio
    created by Peru Bob (https://forums.adobe.com/people/Peru+Bob)  in Adobe 
    Media Encoder (AME) - View the full  discussion
    (https://forums.adobe.com/message/7264779#7264779)

  • Firefox does not fully load Barclaycard Authentication site. It loads as far as asking for certain letters in my pasword but does not load the "Submit" button so I cannot continue with my purchase and have to switch to IE8 browser to purchase anything ov

    Firefox does not fully load Barclaycard Authentication site. It loads as far as asking for certain letters in my pasword but does not load the "Submit" button so I cannot continue with my purchase and have to switch to IE8 browser to purchase anything over the internet. Any clues?
    == This happened ==
    A few times a week
    == Couple of weeks ago

    Your UserAgent string in Firefox is totally messed up by another program that you installed, and Barclays doesn't know you are using Firefox 3.6.6 - it probably looks like IE 6.0 to that website.
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • ' delete an app. All apps wiggle incl. the one in questions. However the app I want to delete does not show the x button. I reseted, also restrictions are on with on for apps delete. Suggestions?

    ' delete an app. All apps wiggle incl. the one in questions. However the app I want to delete does not show the x button. I reseted, also restrictions are on with on for apps delete. Suggestions?

    mardemar wrote:
    ... - the only one without an x delete button.
    What is the name of this App and where did you get it...?

  • Photoshop CS4 does not have the extract button.

    Photoshop CS4 does not have the extract button.  I've tried downloading from Adobe but am getting an error message "Photoshop could not complete this request because Photoshop does not recognize this type of file"..  how do i get this plug-in installed?

    Buko. wrote:
    If its a Spanish plugin there's not much you can do about that.
    I suppose you could learn Spanish.
    Hey, Buko, you got the points!  Beautiful system. 

  • My iphone 4 does not ring - the mute button is off - can hear calls coming in but not on the speaker - no music or ringtones

    My iphone 4 does not ring - the mute button is off - can hear calls coming in only by vibrate - cannot talk using speaker - no music not ringtones  - It is not the mute button!

    Sorry this took so long... This sounds hokey, but there is a sensor inside the headset jack on the iPhone that is sticking.
    First; unplug the headset and try.  Then, if does not ring still - do a reset with the headset out.  Reset = hold the Home button and the sleep bottom on top at the same time until you see the Apple (ignore the slide to power off).
    If this does not wor - here comes the hokey part... and you can take it by an Apple store at this point; anyway, use a tooth pick (wooden) and twigged it around in the jack on the gentle side.
    Only try that last "hokey" part because it could be hardware in there sticking.
    After that - have you called Apple Care?... It is a repair issue.
    Good luck

  • After update to IOS 6.0, on the iPhone 4 and 4s, emails can not be forwarded. I tried to resync, but the update does not show the forwarding buttons anymore.

    After update to IOS 6.0, on the iPhone 4 and 4s, emails can not be forwarded. I tried to resync, but the update does not show the forwarding buttons anymore.

    Have the same issues here, 3GS 5.0.1. Did you find any solutions until today ?
    I restored my phone, power up/down but nothing helps with my issues
    greetings
    /Edit:
    Maybe I should read carefully your text so I can give you some more information.
    my phone was updated via itunes.
    some hours ago the phone charged up to 5% but than directly draining to zero...
    can't help me with these issues...

  • Screen does not fill up whole monitor, windows 7 on mac mini

    Hi guys,
    I just installed Windows 7 (32bit) on the new mac Mini (Lion OS) via Bootcamp 4.0. I installed the windows driver after the Windows 7 registration.
    When Windowsd 7 starts, I can see that the screen does not fill out the whole 22" monitor, leaving a half-inch black frame.
    The monitor is a LG IPS225 connected with HDMI to my mac Mini. Booting in mac OS Lion gives me a nice fully stretched screen.
    If I understood it correctly, the graphic card (AMD HD 6750M) is somehow "underscanning" the monitor. Downloading the graphic card application from AMD (Catalyst mobility) does not help, as I get an error message saying that it's wrong adapter.
    I have installed all the Windows 7 updates and Apple software updates, well running the update programs says that my computer is up to date...
    Anyone got the same problem? or have an idea I can try?

    If in device manager, your monitor is defaulting to Plug and Play, you should update with LG driver files for that monitor. My LG Flatron W2753V came with a CD that included the Monitor Driver (.icm, .cat and .inf files).
    If Plug and Play, right click monitor in Device Manager, selecting Update driver software, pointing it to where you have the Monitor Driver files - see pic. 
    If you don't have driver, you can search for it, get it from here at LG,
    http://www.lg.com/ca_en/common/search/controller.jsp?No=15&D=LG%20Flatron&sid=13 5A4A76F710&Ntt=LG%20Flatron&Dx=mode+matchallpartial&Ntk=All&Ntx=mode+matchallpar tial&N=8110&srchLocalCode=ca_en&Nty=1
    LG Flatron IPS225 monitor?
    http://answers.yahoo.com/question/index?qid=20120208062108AACSxdA

  • HP Envy 5530 & Windows 8.1 : Does not print the whole document

    Hello, I cannot seem to print an entire document longer than 3 pages with the HP Envy series & Windows 8.1 from any of my programs.  It will stop after a handful of pages (randomized with which page it stops at), with a simple error message, "Could not print document."  This goes for double sided as well as single sided pages.  It doesn't matter if it is color or b/w.  I first had the Envy 4500 and did everything I could to fix the issue.  I uninstalled/reinstalled the drivers using both CD and online installers and ran the HP Print and Scan Doctor, which could not find any issues.  The Network Configuration page & Test print pages were also fine.  I tried printing immediately & printing once everything has spooled.  Nothing worked. I finally gave up and upgraded to the 5530 in hopes that it was an incompatible driver.  However, I am still having the same issues, despite the "all clear" from the Print & Scan Doctor.  Please help!-ebdsnyder

    Hi there, The only thing I can recommend at the moment would be to setup another instance of the network printer. Firstly I would recommnd setting up the printer with a Fixed IP address as if the IP address were to change later the printer would stop working. Then go into the Control Panel (use Windows Key and X and choose Control Panel from the menu that appears) and choose Devices and Printers. Click in the printers area and choose Add Printer. When the next screen comes up the computer, the system will search the local network and display any printers that are found on the network.  Choose the Envy 5530 and click next The computer will then add a network port and ask you to choose the driver. Choose use driver that is currently installed. The computer will then ask you to Name the printer, choose a descriptive name that will help you identify it later. The computer will then ask you if you want to share the printer, I would recommnd not sharing it for now. The computer will then ask if you want to set this as the default printer, this choice is up to you. Click print a test page to check that the printer works and then click finish. After this you will have an extra printer icon for your device.  I would recommend going into the Printer Properties on this new device and change the printer driver to the one that does not have the words Class driver after it (The Class driver is a cut down in OS version of the complete driver). This can be done from the Printer Properties advanced tab. I hope this all makes sense. Good luck and if you have any question please post them back here and I will try and help you out.  

  • UIView does not fill the screen in Landscapte mode

    Hi,
    I have a XIB and an associated UIViewController class, I set
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceO rientation {
    return YES;
    But I found if I open the view, then rotate the iphone to landscape oriention, the view got rotated too. But the view is not expend to fill the space in horizontal direction, the width of the view does not change. Why?
    Thanks,
    fm

    aquador
    What is the project preset that you have selected for your Premiere Elements 13 project?
    If you do not know, please see readings for Edit Menu/Project Settings/General and the readings for Editing Mode,
    Timebase, Frame Size, and Pixel Aspect Ration.
    What are the properties of your source media? Does your import fill the Edit area screen when imported?
    What file size do you want to import to, 1920 x 1080? If so, is that because your export is not filling your player screen?
    If you want to set frame size higher than 1920 x 1080, please see Publish+Share/Computer/XAVC-S and the Advanced Button/Video
    Tab for customizing the preset. But a lot of details before we get to that.
    Including, what is your player and have you looked at the player settings?
    ATR

  • I have a 27" Viewsonic 1080p monitor connected to an oldish Mac Pro with an ATI Radeon X1900 XT Graphics card.  The problem is that the image does not fill the screen?!?!?

    I know the image can fill the monitor, because at start up, the white Apple logo screen fills it up.  But once the system starts up, there are bands of black framing the image.  I have searched extensively on the internet and found the following clues, none of which solved the problem:
    1) In the Windows world you can get software from ATI called Catalyst Converter that gives you the cpaobility to scale the image.  This software/feature is not available for Mac users.
    2)  Viewsonic's web site has a trouble shooting tool.  This came up in response to the topic "you have recently upgraded to a larger monitor"
         "This could be an issue if you have an older Apple using the system's onboard memory to support both the system and video display. Even if you have enough onboard RAM to support a higher resolution, it will not since the system will use some of the memory. Because the true video RAM available is much smaller than the total onboard amount, the system limits the size of the image. You will need to contact Apple to get an upgrade in onboard RAM or update the complete system."
    I have 2GB of RAM, so lack of RAM memory does not seem to be an issue. I am running OS 10.6.8
    Does anyone have any clue how to solve this problem.  It is frustrating to have a 27" monitor behaving like a 25" monitor. 
    Thanks in advance for sharing any experience on this.
    JD in PA

    http://www.xlr8yourmac.com/Graphics/radeon_X1900XT/X1900XT_dust_buildup.html#sto rytop
    http://www.xlr8yourmac.com/Graphics/X1900XT_Overheating/ATI_X1900_artifacts.html
    http://www.amazon.com/BUFFERED-PC2-5300-FB-DIMM-APPLE-Memory/dp/B002ORUUAC/
    http://www.amazon.com/Apple-ATI-Radeon-5770-MC742ZM/dp/B003Z6QH6M/
    http://www.amazon.com/PCIe-Power-Cable-nVidia-Video/dp/B002UR1654/
    http://www.amazon.com/gp/product/B0036Q7MV0/

  • How do I restore a previous session when the Firefox homepage does NOT have the "restore" button and it is grayed out in the menu? menu

    My Firefox homepage had a "Restore Previous Session" button but it has disappeared. SO when my Firefox crashes I lose all my tabs and tab groups, and this is very inconvenient. I have checked through all the "Options" seeing if there is some button there to enable this feature, but to no avail. I am frustrated as after a crash I spend hours revisiting all my links in my History menu to reset my tabs. Can you help?

    In case you are using "Clear history when Firefox closes":
    *do not clear the Browsing History
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

  • Timeline does not render the whole video.

    Hi,
    my problem is when i want to pre-render a video in my timeline this green line only draws until 10 sec but i want to see the whole video without this lagging. Can someone help me please?
    Thanks for an answer.

    FAQ: Why does RAM preview only play part of my composition?

  • Video image after compressor does not fill the screen

    I am trying to convert some videos from DVD to Apple TV. Frame size is 720 x 480. In FCP 5.1.4 when I view the clip in the viewer it looks fine, widescreen with black bars at the top and the bottom, image touching both the right and left edges of the viewer. In the Canvas, however, with Fit to Window selected it shows as a very small box with a lot of black on all sides.
    After conversion to mp4, it is even worse. In Quicktime player you can see the video window with grey space at the top and the bottom of the image. However, this is just a very small window in a sea of black. I would guestimate that this window is only using 1/9 of the total screen space.
    How can I get the video to fill the screen?

    The issue is the AppleTV setting. I've been working this issue for 4 months and can't figure it out.
    SO...
    I just encode it myself... I use File - Export - QT Conversion - BROADBAND HIGH and set my size in the OPTIONS button to what I want.
    Works great for me. And the AppleTV sees it fine.
    CaptM

Maybe you are looking for