Can anyone tell me how to put text in SEPARATE LINE on a JButton

please help. Thanks

Here you go:
JButton button = new JButton();
button.setLayout(new BorderLayout());
JLabel l1 = new JLabel("Line 1");
JLabel l2 = new JLabel("Line 2");
button.add(BorderLayout.NORTH, l1);
button.add(BorderLayout.SOUTH, l2);Next time please provide the question in your thread, not only in the subject. A good subject woul've been: "Multiple lines on JButton".
Thanks.

Similar Messages

  • Can anyone tell me how to put your backup discs on i tunes

    i have back up discs with songs on it and i cant seem to put them back on my i tunes. can anyone help me

    i have the music already backed up im just trying to restore it, it doesnt work. how can i do this

  • Hi can anyone tel me how to put my compaq presario 58 back to shop settings back

    I need to get my notebook back to shop settings can anyone help please

    Hi:
    If following the instructions provided at the link below do not work, you will need to order a set of recovery disks from HP.
    http://h20565.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c02638587&DocLang=en&docLocale=en_US&...

  • Can anyone tell me how to fix my iPod. I was updating it and I turned it off in the middle of the update. I tried to put it through a recovery on the iTunes but it keeps giving me 3194.When I turn it on it will go to a light blue screen.

    Can anyone tell me how to fix my iPod.I was updating it and I turned it off in the middle of the update. I tried to put it through a recovery on the iTunes but it keeps giving me 3194.When I turn it on it will go to a light blue screen.

    See the action for that error included here:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

  • I've used Firefox for years. 2 days ago it wouldn't open. I uninstalled it using Revo uninstaller and put it back. Its still the same. Can anyone tell me how 2 fix this or change my mail settings for I Explorer. thx

    and now it just wont open can anyone tell me how 2 change my mail going 2 firefox and start going 2 i explorer please

    For gmail there are no settings to change, you can access gmail from any browser just by going to the gmail site and logging in.
    The [[Firefox will not start]] article should help with the problem you are having with Firefox.

  • Can anyone tell me how to I get an old account information and recorded messages from a conversation

    I am totaly confused by eircom and efibre.......last year I was in arrears with eircom to the tune of( as I thought) of €357.66and I was disconnected but in the long run I got a huge bill in my door of  €656.48 , when I had to the money to pay the original amount, I was put through to efibre who told me that remaining amount of €298.77 shouldnt have been on my account and they would take it off I was also given a new account and phone number. I have now got several bills from my old account plus a letter from a company called BCW (debt collectors) who are treathening to take legal proceeding against me...... can anyone tell me how do I get my old account information and that conversation I had that day??

    Thanks Tracey,I got a letter from the debt collectors BCW on Thursday to say if I didn't respond to that letter within 5 days they were going to take legal proceeding against me. 10 minutes from receiving the letter I got a call from BCW to say that eircom had been in touch with them to say the issue has been resolved and that I don't owe the money,I am now waiting on a letter from BCW to tell me same so as I have it in writing. So hopefully that is the end of the issue, Many thanks Confused 1

  • My ipad is no longer syncing automatically when I connect to my macbook pro.  Can anyone tell me how to fix this?

    I've had an ipad since late December 2010.
    In the past, it has always automatically synced when I connect it to my macbook pro.
    Now, when i connect it...nothing happens.
    Can anyone tell me how to fix this?

    The first thing to do is to launch iTunes on your Mac. Go to Preferences - under the iTunes heading in the menu at the top. Click on Devices. Make sure that you uncheck the box next to - Prevent iPods, iPhones and iPads from syncing automatically. Quit iTunes and restart your Mac.
    Connect your iPad to the Mac and launch iTunes. Select your iPad under the Devices heading on the left side of iTunes. Then click on the Summary Tab at the top right side of the iTunes window. Put a checkmark (select) in the box next to  - Open iTunes when this iPad is Connected. Make sure that all of the other boxes are checked as you desire according to what you want to sync. Click - Apply - in the lower right corner to sync.
    Disconnect your iPad after syncing. Quit iTunes. Then connect your iPad again and iTunes should launch and sync automatically.

  • Can anyone tell me how to do a system level deployment using JNLP ?

    Hi All,
    Can anyone tell me how to do a system level deployment using JNLP ?
    Any example or link will be very useful.
    Thanks in advance..

    Thanks for the link. I can now able do configure on system level.
    Uniform for all users.
    However, I have three different environment running ( e.g : production, uat and dev )
    And I want to deploy all of them on system or enterprise configuration.
    I create the file "deployment.config" on jre/lib directory and put the entry as below :
    deployment.system.config=file:/E:/Deployment/XXXX/production/deployment.properties
    deployment.system.config.mandatory=trueNow, when I run other environment it will look on the production deployment. I have different
    version of jars for production , uat and dev.
    How can I archive that ? I want different universal "cache" of jars for all the three different environment.
    e.g ( production - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\prod\cache
    uat - in one loaction for all the users , C:\Documents and Settings\All Users\Application Data\uat\cache
    dev - in one loaction for all the users, C:\Documents and Settings\All Users\Application Data\dev\cache )
    Is that possible ??
    Thanks in advance,

  • Can anyone tell me how to turn off message preview in Lion email? Thank you

    Can anyone tell me how to turn off the message preview in Lion email so that I only have the person's name and the subject line of the email, not the text body.
    thank you for your help.

    First goto preferences
    then click on viewing in the top bar
    then where it says list preview click the drop down then click none
    Hope this helps 

  • Can anyone tell me how to move my email addresses from Mac Mail to Thunderbird

    Hi all.
    I've been having so many problems with Mac Mail that I decided to give Thunderbird v17 a go. It automatically imported my emails and account settings but hasn't imported my email addresses. I know they'll automatically be added as and when I reply to incoming emails but I assumed there would be some way of adding my existing contacts in one go. Searched the net for a solution but came up empty-handed. Any help you can give me will be much appreciated.
    John

    divermrg wrote:
    Can anyone tell me how to move my email pics to my photos on a I-4?  Operating system IOS 7.0.6
    PRESS AND HOLD THE IMAGE IN THE EMAIL UNTIL THE OPTION TO 'SAVE IMAGE' APPEARS THEN TAP ON THAT.
    See how annoying really large text is?  Don't do that next time.

  • Can anyone tell me how to save a picture thats on facebook as a jpg instead of webarchive

    can anyone tell me how to save a picture as a jpg all the time
    when I try to save a picture from facebook it saves as a webarchive and then you can't put it into iphoto

    If you are using Safari, control-click on the image. One of the options in the resulting floating menu should be "Add Image to iPhoto Library."

  • Can anyone tell me how to get rid of tlb search? it unfortunately entered into my mac. Whenever I use safari, a pop-up window opens with some ads. Please help me to find a way to remove this malware.

    Can anyone tell me how to get rid of tlb search? It unfortunately entered into my mac. Whenever I use safari, a pop-up window opens with some ads. Please help me to find a way to remove this malware.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Can anyone tell me how to upgrade to the BT infini...

    Hi, all
    I have an existing BT Total Broadband Option 3.
    can anyone tell me how to upgrade to the BT infinity
    Many thx
    Solved!
    Go to Solution.

    Hi and welcome.
    Enter your telephone (landline) number into the Infinity avaliability checker... scroll down a little on this site.-
    http://www.productsandservices.bt.com/consumerProducts/displayTopic.do?topicId=29017&s_cid=con_FURL_...
    If you receive an available result you can either have a look at the Infinity options and order on line.-
    http://www.productsandservices.bt.com/consumerProducts/displayTopic.do?topicId=25633
    Or ring BT on 150 from a BT Landline  (Contact us 0800 800 150 for non BT landlines).
    I ordered by telephone and changed from BT Total Broadband to BT Infinity option 1 with the 2MB upload cap and 40GB Usage...
    I added an uplift for Anytime UK landilne calls as I had that with my old BT broadband but the new Infinity only offered weekend.
    (They now include evening).
    There is the other Unlimited Infinity option to consider as well.... all info on that website above.
    Example of Infinity available now picture.-
    Please Click On any Text in Blue as that automatically links to information.
    PC (NDEGR)

  • Can anyone tell me how to remove iphoto from screensaver????

    Can anyone tell me how to remove iphoto from screensaver and all photos it has put into screensaver?

    Hi Ann,
    please check this document to determine the correct space for your question:
    Find Topic Spaces on SCN (Forums)
    If you need help moving it, let me know!
    Thanks,
    Kristen

  • Can anyone tell me how to see old devices that I had on my itunes account.

    Well my apartment was broken into and I cant find some of the reciepts to my items like my ipad and my two ipods.  can anyone tell me how i can see old items that were on my itunes account?

    You can change the play order of playlists.
    Put the songs in the order you want.
    Right click on the playlist name and select Copy to Playlist order.
    Then sync the iPod.

Maybe you are looking for